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 +4 -4
- data/Gemfile +1 -1
- data/LICENSE.txt +16 -19
- data/ey-hmac.gemspec +1 -0
- data/lib/ey-hmac/faraday.rb +5 -1
- data/lib/ey-hmac/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4701be0a713277cd0ad6813838340929d9914728
|
4
|
+
data.tar.gz: 616a0673853d637b92c53c9d2c8d9e68ed820ab7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07abea674ae77af416e7cf69caeab71c8a5e249a8fd2dc073f6f8966096428a4caaa373c904072f5579d28aad798ea9bc32270f5da05654c3b34e63a96be43f7
|
7
|
+
data.tar.gz: 80c00e2ef84e5c56bf99971eaa2301dde1e1e7811dc94b78f2d38be331c5e8f3b72c438b6b89a5b2f20ebd7c82e5e7c771088d0fcfaf34d2f875f42de4614828
|
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,22 +1,19 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2014 Josh Lane & Jason Hansen
|
2
2
|
|
3
|
-
|
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
|
-
|
6
|
-
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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"
|
data/lib/ey-hmac/faraday.rb
CHANGED
@@ -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
|
-
|
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 })
|
data/lib/ey-hmac/version.rb
CHANGED
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.
|
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: []
|