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 CHANGED
@@ -1,3 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
6
+ - jruby-19mode # JRuby in 1.9 mode
7
+ - rbx
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.
@@ -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
- replay_protector = Sworn::ReplayProtector::Custom, lambda { |_| false }
25
- tokens = Hash.new
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
@@ -1,3 +1,3 @@
1
1
  module Sworn
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sworn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: