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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8f5ba12cef68d528bec916b6184ec53d65928d2
4
- data.tar.gz: 9dbcb23a310b674bb0e1630de51df58e6758eec2
3
+ metadata.gz: bc4c4a2c799eeba6be57f68864703bddb3aa2f5a
4
+ data.tar.gz: a775eafe73b3e5cb6e40b72865992ad8951d82a9
5
5
  SHA512:
6
- metadata.gz: 48677b2b7a83a34da56cf8fef3f5a756ea010ba914de48925fe6eb477bc9e6b6dc29e82e29f49befe770c03fd2ed32741a808d6454ebe55db30136d5771468ed
7
- data.tar.gz: 4905994af30e60840b48d1932d9c656c6ce56e8ccdc69a61c873e0b1595a0bc69ae320e8acda16d9f2e73d222d50729f5e6561bb2e23b12f15108e11b13a10fe
6
+ metadata.gz: cd664aa0ecac65d5f0461fad00f07600908f801d5a94fc10f6c4af735f249cb9639467b2e30a29360b7c5545a51bd067c2093102e9049a4a34d74860d9f5655d
7
+ data.tar.gz: f19862d223562ae95bdf449eb3c57333a921ba32b4ce81a31caf899467f98aff5af4f52e0b20927467f6036e5f5f5ae6d3ad5c9e32c4eb357d80999c53e50b18
@@ -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
- 'Content-Type' => 'application/json',
290
- 'User-Agent' => 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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sunstone"
3
- s.version = '1.7.9'
3
+ s.version = '1.7.10'
4
4
  s.authors = ["Jon Bracy"]
5
5
  s.email = ["jonbracy@gmail.com"]
6
6
  s.homepage = "http://sunstonerb.com"
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.9
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-04-28 00:00:00.000000000 Z
11
+ date: 2015-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake