sunstone 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sunstone/connection.rb +3 -1
- data/sunstone.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fcccb0a88b158bc24bc53cab4cb73d0a05c0ef1
|
4
|
+
data.tar.gz: 2af3e200c3e9dbdb92528add3cc87b0d43d074d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60f87c572887cb612b3d7f8ba5c28fe896f1ea7f8f5c111d21e68435bb30892ecc50ca924b81306134d1bc898b01e3d4ae566291e967e51373441f6c2814d7ab
|
7
|
+
data.tar.gz: 7a339a60eec91ffc08bfd329a6adcbec1d3ecf271827d98bad692bdc1185eacc4abed7835028ad17a26c216b99804b0e6d32c0e69c26d87b8709f9b902024aee
|
data/lib/sunstone/connection.rb
CHANGED
@@ -35,6 +35,8 @@ module Sunstone
|
|
35
35
|
self.send(:"#{key}=", config[key])
|
36
36
|
end
|
37
37
|
|
38
|
+
@host = host
|
39
|
+
@port = port
|
38
40
|
# @connection = Net::HTTP.new(host, port)
|
39
41
|
# @connection.use_ssl = use_ssl
|
40
42
|
end
|
@@ -116,7 +118,7 @@ module Sunstone
|
|
116
118
|
|
117
119
|
return_value = nil
|
118
120
|
# @connection.request(request) do |response|
|
119
|
-
Net::HTTP.new(host, port).request(request) do |response|
|
121
|
+
Net::HTTP.new(@host, @port).request(request) do |response|
|
120
122
|
|
121
123
|
if response['API-Version-Deprecated']
|
122
124
|
logger.warn("DEPRECATION WARNING: API v#{API_VERSION} is being phased out")
|
data/sunstone.gemspec
CHANGED