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 +4 -4
- data/lib/amazon-drs/client.rb +3 -3
- data/lib/amazon-drs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f902912f543efa10b1c721d6fdd269434cdf4cc
|
4
|
+
data.tar.gz: 7a28d74b215e5b3cd29d60d2b71e8ce24e075171
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eadcbf854b6bf1234b211b51debd7067d4514fbb052d53d1c06696f6fe41b782de973e188559152b54a2cd93c30cc674c833d7102fdc9e7ace604cf8e4cada8d
|
7
|
+
data.tar.gz: 2de9412108eec58f8924821842d9911064905da0ec7550f321c9109ed7fb1d8e7f87abc95163b9c56a80570f93e8d61b8e2fd2c26f00bc2cdedcc56c54011b55
|
data/lib/amazon-drs/client.rb
CHANGED
@@ -37,7 +37,7 @@ module AmazonDrs
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def user_agent
|
40
|
-
@user_agent ||= "AdashRubyGem/#{
|
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
|
-
|
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'] =
|
232
|
+
request['User-Agent'] = user_agent
|
233
233
|
headers.each do |key, value|
|
234
234
|
request[key] = value
|
235
235
|
end
|
data/lib/amazon-drs/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|