ey-hmac 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ language: ruby
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+
7
+ script: bundle exec rspec
data/ey-hmac.gemspec CHANGED
@@ -16,4 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
+
20
+ gem.add_development_dependency "rake"
21
+ gem.add_development_dependency "bundler", "~> 1.3"
19
22
  end
@@ -3,7 +3,10 @@ require 'rack'
3
3
  class Ey::Hmac::Adapter::Rack < Ey::Hmac::Adapter
4
4
  def initialize(request, options)
5
5
  super
6
- @request = ::Rack::Request.new(request) if request.is_a?(Hash)
6
+ @request = if request.is_a?(Hash)
7
+ ::Rack::Request.new(request)
8
+ else request
9
+ end
7
10
  end
8
11
 
9
12
  def method
@@ -1,3 +1,4 @@
1
+ require 'ey-hmac'
1
2
  require 'faraday'
2
3
 
3
4
  if Faraday.respond_to? :register_middleware
@@ -1,5 +1,5 @@
1
1
  module Ey
2
2
  module Hmac
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey-hmac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-08 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2013-10-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: bundler
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '1.3'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.3'
14
46
  description: Lightweight HMAC signing libraries and middleware for Farday and Rack
15
47
  email:
16
48
  - jlane@engineyard.com
@@ -19,6 +51,7 @@ extensions: []
19
51
  extra_rdoc_files: []
20
52
  files:
21
53
  - .gitignore
54
+ - .travis.yml
22
55
  - Gemfile
23
56
  - Guardfile
24
57
  - LICENSE.txt
@@ -43,20 +76,20 @@ rdoc_options: []
43
76
  require_paths:
44
77
  - lib
45
78
  required_ruby_version: !ruby/object:Gem::Requirement
79
+ none: false
46
80
  requirements:
47
81
  - - ! '>='
48
82
  - !ruby/object:Gem::Version
49
83
  version: '0'
50
- none: false
51
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
+ none: false
52
86
  requirements:
53
87
  - - ! '>='
54
88
  - !ruby/object:Gem::Version
55
89
  version: '0'
56
- none: false
57
90
  requirements: []
58
91
  rubyforge_project:
59
- rubygems_version: 1.8.24
92
+ rubygems_version: 1.8.25
60
93
  signing_key:
61
94
  specification_version: 3
62
95
  summary: Lightweight HMAC signing libraries and middleware for Farday and Rack