sworn 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
+
[![Build Status](https://travis-ci.org/masv/sworn.svg?branch=master)](https://travis-ci.org/masv/sworn)
|
2
|
+
[![Code Climate](https://codeclimate.com/github/masv/sworn.png)](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