oo_auth 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oo_auth.rb +3 -3
- data/lib/oo_auth/request_proxy.rb +3 -2
- data/lib/oo_auth/version.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe4f72cf83013da415eb05cc8290d49e6c3843d2
|
4
|
+
data.tar.gz: d5c7bbc222785702e4a8f9a31ef1ec6643d449e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5af4e5b5e6f7199d347c4649839b06322474eaf4beffb999b7561735c8e067dc9e60011840fdc62bbb29d3367ed713a0c1dd47fe07b05da057d3b62c25a66ade
|
7
|
+
data.tar.gz: d2858ce8aba4946e5d002652b97965ac8ed4ec2ec21d4c6b71b4d0b4e70b3b3b8c805f5b24831cec6f1b42596019d670f7a0c91c119f8efb7ed554fa80fa85af
|
data/lib/oo_auth.rb
CHANGED
@@ -15,8 +15,8 @@ require 'oo_auth/signature'
|
|
15
15
|
module OoAuth
|
16
16
|
|
17
17
|
class << self
|
18
|
-
|
19
|
-
|
18
|
+
# Initialize with instance of store
|
19
|
+
# OoAuth.nonce_store = OoAuth::Nonce::RedisStore.new(namespace: 'foo')
|
20
20
|
attr_accessor :nonce_store
|
21
21
|
|
22
22
|
|
@@ -91,4 +91,4 @@ module OoAuth
|
|
91
91
|
|
92
92
|
end
|
93
93
|
|
94
|
-
end
|
94
|
+
end
|
@@ -88,7 +88,8 @@ module OoAuth
|
|
88
88
|
|
89
89
|
PARAMETERS.each do |parameter|
|
90
90
|
define_method "#{parameter[6..-1]}" do
|
91
|
-
oauth_params
|
91
|
+
params = oauth_params
|
92
|
+
params && params[parameter]
|
92
93
|
end
|
93
94
|
end
|
94
95
|
|
@@ -132,4 +133,4 @@ module OoAuth
|
|
132
133
|
end
|
133
134
|
|
134
135
|
end
|
135
|
-
end
|
136
|
+
end
|
data/lib/oo_auth/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module OoAuth
|
2
|
-
VERSION = '0.0
|
3
|
-
end
|
2
|
+
VERSION = '0.1.0'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oo_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Grosser
|
@@ -86,16 +86,16 @@ executables: []
|
|
86
86
|
extensions: []
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
|
-
- lib/oo_auth
|
89
|
+
- lib/oo_auth.rb
|
90
|
+
- lib/oo_auth/request_proxy.rb
|
90
91
|
- lib/oo_auth/constants.rb
|
92
|
+
- lib/oo_auth/configuration_error.rb
|
93
|
+
- lib/oo_auth/version.rb
|
91
94
|
- lib/oo_auth/credentials.rb
|
92
|
-
- lib/oo_auth/nonce/abstract_store.rb
|
93
|
-
- lib/oo_auth/nonce/redis_store.rb
|
94
95
|
- lib/oo_auth/nonce.rb
|
95
|
-
- lib/oo_auth/request_proxy.rb
|
96
96
|
- lib/oo_auth/signature.rb
|
97
|
-
- lib/oo_auth/
|
98
|
-
- lib/oo_auth.rb
|
97
|
+
- lib/oo_auth/nonce/abstract_store.rb
|
98
|
+
- lib/oo_auth/nonce/redis_store.rb
|
99
99
|
- LICENSE
|
100
100
|
- README.md
|
101
101
|
- CHANGELOG
|