sworn 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +4 -0
- data/README.md +3 -0
- data/lib/sworn/configuration.rb +4 -4
- data/lib/sworn/version.rb +1 -1
- metadata +1 -1
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
[](https://travis-ci.org/masv/sworn)
|
|
2
|
+
[](https://codeclimate.com/github/masv/sworn)
|
|
3
|
+
|
|
1
4
|
# Sworn
|
|
2
5
|
|
|
3
6
|
Sworn is Rack middleware to handle OAuth 1.0a signed requests.
|
data/lib/sworn/configuration.rb
CHANGED
|
@@ -19,10 +19,10 @@ module Sworn
|
|
|
19
19
|
attr_accessor :tokens
|
|
20
20
|
|
|
21
21
|
def initialize
|
|
22
|
-
consumers = Hash.new
|
|
23
|
-
max_drift = 30
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
self.consumers = Hash.new
|
|
23
|
+
self.max_drift = 30
|
|
24
|
+
self.tokens = Hash.new
|
|
25
|
+
self.replay_protector = Sworn::ReplayProtector::Custom, lambda { |_| false }
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
data/lib/sworn/version.rb
CHANGED