sunstone 1.7.11 → 1.7.12
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: 639ccca9f61f13b5503f4d3557b1cdeff1cad9bc
|
|
4
|
+
data.tar.gz: acd3fd748c78d4a5a91273e98774ccf8459871ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3790ab0d8753649934fcf2c41f078fecc83e73090028f04f162df45678171159583cd94f87b1cc7c0d9a409a73685bf7ffe8e1f135021ae42b5b9c52cfd59a9
|
|
7
|
+
data.tar.gz: 492ad87d420d3ef99c0edca902fbfd76c73f9de11c978b1dc67fcc96cdd3ef3478934f8496db2b6651ae7155b3e8b5b61f0b1a79509d31806d4407952e370344
|
data/lib/sunstone/connection.rb
CHANGED
|
@@ -100,7 +100,8 @@ module Sunstone
|
|
|
100
100
|
def send_request(request, body=nil, &block)
|
|
101
101
|
request_uri = "http#{use_ssl ? 's' : ''}://#{host}#{port != 80 ? (port == 443 && use_ssl ? '' : ":#{port}") : ''}#{request.path}"
|
|
102
102
|
request_headers.each { |k, v| request[k] = v }
|
|
103
|
-
|
|
103
|
+
request['Content-Type'] ||= 'application/json'
|
|
104
|
+
|
|
104
105
|
if Thread.current[:sunstone_cookie_store]
|
|
105
106
|
request['Cookie'] = Thread.current[:sunstone_cookie_store].cookie_header_for(request_uri)
|
|
106
107
|
end
|
|
@@ -111,7 +112,7 @@ module Sunstone
|
|
|
111
112
|
elsif body.is_a?(String)
|
|
112
113
|
request.body = body
|
|
113
114
|
elsif body
|
|
114
|
-
|
|
115
|
+
|
|
115
116
|
request.body = Wankel.encode(body)
|
|
116
117
|
end
|
|
117
118
|
|
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.12
|
|
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-05-
|
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|