faraday_middleware-aws-signers-v4 0.1.4 → 0.1.5

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: 4e3a9bbb3bb93756e5c618ba9638f60e606f6bc6
4
- data.tar.gz: 2ce7743f98050c5dad4dc57e900743d2137b5935
3
+ metadata.gz: ca805894333728713086a6da5e2b110522b46595
4
+ data.tar.gz: 407fe49648944675d5a2f292ac625ebd95f98f5a
5
5
  SHA512:
6
- metadata.gz: e18b946dfcc1b4d5858282549e9c009148fdf111509ec3b72a52d1d75bf70d3bf000197b32046cec8fedec2d94b2a1ca1318797c83798ceb41baf7db458bfeb1
7
- data.tar.gz: d1dd306d49c26656c86e0f42874958fd14ed951511846afa710a813de4d3682ac2f602115ec7880e4fcc01862cc7b4f5fe255503d33c82d224f9786f7924485a
6
+ metadata.gz: 108a665425ce0f7d2b200f57d0de890bbf88433a82826c9a30f27eae9a5a1d5ca373d909ff3ac0776baa96546525be40033c0fe95f956646a34f316b570a9dc6
7
+ data.tar.gz: 355bd3d2f6766ba52aadbfe33b1595bd4b921191ffa56cb57105eaef5c03cb308c7f7e7e1802b158f0a74d16f8b958d5b148459a8874b428da676b1a0db13f68
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = 'faraday_middleware-aws-signers-v4'
4
- spec.version = '0.1.4'
4
+ spec.version = '0.1.5'
5
5
  spec.authors = ['Genki Sugawara']
6
6
  spec.email = ['sgwr_dts@yahoo.co.jp']
7
7
 
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency 'timecop'
25
25
  spec.add_development_dependency 'faraday_middleware'
26
26
  spec.add_development_dependency 'coveralls'
27
+ spec.add_development_dependency 'webmock'
27
28
  end
@@ -44,17 +44,16 @@ class FaradayMiddleware::AwsSignersV4 < Faraday::Middleware
44
44
  def initialize(app, options = nil)
45
45
  super(app)
46
46
 
47
- credentials = options.fetch(:credentials)
48
- service_name = options.fetch(:service_name)
49
- region = options.fetch(:region)
50
- @signer = Aws::Signers::V4.new(credentials, service_name, region)
47
+ @credentials = options.fetch(:credentials)
48
+ @service_name = options.fetch(:service_name)
49
+ @region = options.fetch(:region)
51
50
  @net_http = net_http?(app)
52
51
  end
53
52
 
54
53
  def call(env)
55
54
  normalize_for_net_http!(env)
56
55
  req = Request.new(env)
57
- @signer.sign(req)
56
+ Aws::Signers::V4.new(@credentials, @service_name, @region).sign(req)
58
57
  @app.call(env)
59
58
  end
60
59
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_middleware-aws-signers-v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-02 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: webmock
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  description: Faraday middleware for AWS Signature Version 4.
126
140
  email:
127
141
  - sgwr_dts@yahoo.co.jp