sunstone 1.7.9 → 1.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sunstone/connection.rb +3 -2
- data/sunstone.gemspec +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: bc4c4a2c799eeba6be57f68864703bddb3aa2f5a
|
|
4
|
+
data.tar.gz: a775eafe73b3e5cb6e40b72865992ad8951d82a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd664aa0ecac65d5f0461fad00f07600908f801d5a94fc10f6c4af735f249cb9639467b2e30a29360b7c5545a51bd067c2093102e9049a4a34d74860d9f5655d
|
|
7
|
+
data.tar.gz: f19862d223562ae95bdf449eb3c57333a921ba32b4ce81a31caf899467f98aff5af4f52e0b20927467f6036e5f5f5ae6d3ad5c9e32c4eb357d80999c53e50b18
|
data/lib/sunstone/connection.rb
CHANGED
|
@@ -111,6 +111,7 @@ module Sunstone
|
|
|
111
111
|
elsif body.is_a?(String)
|
|
112
112
|
request.body = body
|
|
113
113
|
elsif body
|
|
114
|
+
request['Content-Type'] = 'application/json'
|
|
114
115
|
request.body = Wankel.encode(body)
|
|
115
116
|
end
|
|
116
117
|
|
|
@@ -286,8 +287,8 @@ module Sunstone
|
|
|
286
287
|
|
|
287
288
|
def request_headers
|
|
288
289
|
headers = {
|
|
289
|
-
'
|
|
290
|
-
'User-Agent'
|
|
290
|
+
'Accept' => 'application/json',
|
|
291
|
+
'User-Agent' => user_agent,
|
|
291
292
|
'Api-Version' => '0.1.0'
|
|
292
293
|
}
|
|
293
294
|
request_api_key = Thread.current[:sunstone_api_key] || api_key
|
data/sunstone.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sunstone
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jon Bracy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|