amazon-drs 0.0.2 → 0.0.3

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: f6dddd1e7901f7b68d205c6c434eaf426b3bd4c1
4
- data.tar.gz: df15a2b0f9de225a50e87dd1e84833d97862c4b2
3
+ metadata.gz: 9f902912f543efa10b1c721d6fdd269434cdf4cc
4
+ data.tar.gz: 7a28d74b215e5b3cd29d60d2b71e8ce24e075171
5
5
  SHA512:
6
- metadata.gz: 6372c95d4bbc790017082fffbb0fb722ec9a37aaa1268085634dde811310e8b77240a5002840286426797566ad7e6fbf1da4412633a9beffed1b00eb1f24f203
7
- data.tar.gz: b7e54e17b3f5ee8cd6f5928fc9987c54ecff4ad47e1030dcdddf97917fc4e994625afb1c20f73ece70bc70e8e767299c769e9b083399eccf0eb2a129e585c14e
6
+ metadata.gz: eadcbf854b6bf1234b211b51debd7067d4514fbb052d53d1c06696f6fe41b782de973e188559152b54a2cd93c30cc674c833d7102fdc9e7ace604cf8e4cada8d
7
+ data.tar.gz: 2de9412108eec58f8924821842d9911064905da0ec7550f321c9109ed7fb1d8e7f87abc95163b9c56a80570f93e8d61b8e2fd2c26f00bc2cdedcc56c54011b55
@@ -37,7 +37,7 @@ module AmazonDrs
37
37
  end
38
38
 
39
39
  def user_agent
40
- @user_agent ||= "AdashRubyGem/#{Adash::VERSION}/#{RUBY_DESCRIPTION}"
40
+ @user_agent ||= "AdashRubyGem/#{AmazonDrs::VERSION}/#{RUBY_DESCRIPTION}"
41
41
  end
42
42
 
43
43
  def deregistrate_device
@@ -157,7 +157,7 @@ module AmazonDrs
157
157
  raise 'Authorization Code is not set'
158
158
  end
159
159
  if @access_token.nil?
160
- token = get_token
160
+ get_token
161
161
  if resp.kind_of?(AmazonDrs::Error)
162
162
  raise 'Failed to get token'
163
163
  end
@@ -229,7 +229,7 @@ module AmazonDrs
229
229
  request.body = URI.encode_www_form(params)
230
230
  end
231
231
  request['Content-Type'] = 'application/x-www-form-urlencoded'
232
- request['User-Agent'] = @user_agent
232
+ request['User-Agent'] = user_agent
233
233
  headers.each do |key, value|
234
234
  request[key] = value
235
235
  end
@@ -1,3 +1,3 @@
1
1
  module AmazonDrs
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-drs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Ass
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-10 00:00:00.000000000 Z
11
+ date: 2017-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler