ey-hmac 0.1.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0094fa18946db8e6cd7ea46ce5963a890ef3cc36
4
- data.tar.gz: 11d3c418d5fc5443ff15f51c25d702a0cbda5269
3
+ metadata.gz: 4701be0a713277cd0ad6813838340929d9914728
4
+ data.tar.gz: 616a0673853d637b92c53c9d2c8d9e68ed820ab7
5
5
  SHA512:
6
- metadata.gz: bcc4602c4b046d925238fbb1d4e405275242bd32ab413f752ec96a042c51d5e9e759176b894f0d36f6ca86c6c798b370052c7dab0049d2aacecb4161f1cd6e3f
7
- data.tar.gz: 8fef1ea990200f6646517d78a970ce26a061a17b4b4c5b00efba50ca5961efec993dc11381398d5cfb3736d7c39c91a3835c2197e749217e743ce5d9d67cc736
6
+ metadata.gz: 07abea674ae77af416e7cf69caeab71c8a5e249a8fd2dc073f6f8966096428a4caaa373c904072f5579d28aad798ea9bc32270f5da05654c3b34e63a96be43f7
7
+ data.tar.gz: 80c00e2ef84e5c56bf99971eaa2301dde1e1e7811dc94b78f2d38be331c5e8f3b72c438b6b89a5b2f20ebd7c82e5e7c771088d0fcfaf34d2f875f42de4614828
data/Gemfile CHANGED
@@ -18,5 +18,5 @@ end
18
18
 
19
19
  group(:faraday) do
20
20
  gem 'faraday'
21
- gem 'faraday_middleware'
21
+ gem 'faraday_middleware', "~> 0.9.0"
22
22
  end
data/LICENSE.txt CHANGED
@@ -1,22 +1,19 @@
1
- Copyright (c) 2013 Josh Lane & Jason Hansen
1
+ Copyright (c) 2014 Josh Lane & Jason Hansen
2
2
 
3
- MIT License
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
4
9
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
12
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/ey-hmac.gemspec CHANGED
@@ -16,6 +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
+ gem.license = "MIT"
19
20
 
20
21
  gem.add_development_dependency "rake"
21
22
  gem.add_development_dependency "bundler", "~> 1.3"
@@ -6,7 +6,9 @@ if Faraday.respond_to? :register_middleware
6
6
  end
7
7
 
8
8
  # Request middleware that performs HMAC request signing
9
- class Ey::Hmac::Faraday < Faraday::Middleware
9
+ require 'faraday_middleware/response_middleware'
10
+
11
+ class Ey::Hmac::Faraday < FaradayMiddleware::ResponseMiddleware
10
12
  dependency do
11
13
  require 'ey-hmac' unless defined?(Ey::Hmac)
12
14
  end
@@ -24,3 +26,5 @@ class Ey::Hmac::Faraday < Faraday::Middleware
24
26
  @app.call(env)
25
27
  end
26
28
  end
29
+
30
+ Faraday::Request.register_middleware(:hmac => lambda { Ey::Hmac::Faraday })
@@ -1,5 +1,5 @@
1
1
  module Ey
2
2
  module Hmac
3
- VERSION = "0.1.3"
3
+ VERSION = "1.0.0"
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.1.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lane & Jason Hansen
@@ -65,7 +65,8 @@ files:
65
65
  - spec/shared/authenticated.rb
66
66
  - spec/spec_helper.rb
67
67
  homepage: ''
68
- licenses: []
68
+ licenses:
69
+ - MIT
69
70
  metadata: {}
70
71
  post_install_message:
71
72
  rdoc_options: []