gengo 0.2.0 → 0.2.1
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/Gemfile.lock +1 -1
- data/lib/gengo-ruby/api_handler.rb +6 -3
- data/lib/gengo-ruby/version.rb +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: 8473dd99c47b8aa72ebd8c67a8fc55b3baadc1c2
|
|
4
|
+
data.tar.gz: a721219575cbefdbf3cf3ed11293581fdafed8d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 383e635e2209d71968ae3d311320f4fd1b7baf15b3da2227737047435d15860af1b3097b1cc16e8820ceb4beac558174e372716dcae346b2aaa0aa51346c879b
|
|
7
|
+
data.tar.gz: 24e4da60a4fac1334e0501a4848cbd909387b66ee831159ed4074316e9de1ef823b1e8ea87eaecf76b6f512c25715c47e0a53acdfbc2a8c9d93696833a96371c
|
data/Gemfile.lock
CHANGED
|
@@ -101,7 +101,8 @@ module Gengo
|
|
|
101
101
|
req = Net::HTTP::Get.new(uri, headers)
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
url = URI.parse("https://#{@api_host}")
|
|
105
|
+
http = Net::HTTP.start(url.host, url.port, use_ssl: true)
|
|
105
106
|
if @debug
|
|
106
107
|
http.set_debug_output($stdout)
|
|
107
108
|
end
|
|
@@ -146,9 +147,10 @@ module Gengo
|
|
|
146
147
|
:ts => Time.now.gmtime.to_i.to_s
|
|
147
148
|
}
|
|
148
149
|
|
|
149
|
-
url = URI.parse("
|
|
150
|
+
url = URI.parse("https://#{@api_host}/v#{@opts[:api_version]}/#{endpoint}")
|
|
150
151
|
http = Net::HTTP.new(url.host, url.port)
|
|
151
152
|
http.read_timeout = 5*60
|
|
153
|
+
http.use_ssl = true
|
|
152
154
|
if is_put
|
|
153
155
|
request = Net::HTTP::Put.new(url.path)
|
|
154
156
|
else
|
|
@@ -208,10 +210,11 @@ module Gengo
|
|
|
208
210
|
hash_thus_far
|
|
209
211
|
end
|
|
210
212
|
|
|
211
|
-
url = URI.parse("
|
|
213
|
+
url = URI.parse("https://#{@api_host}/v#{@opts[:api_version]}/#{endpoint}")
|
|
212
214
|
|
|
213
215
|
http = Net::HTTP.new(url.host, url.port)
|
|
214
216
|
http.read_timeout = 5*60
|
|
217
|
+
http.use_ssl = true
|
|
215
218
|
|
|
216
219
|
call_timestamp = Time.now.gmtime.to_i.to_s
|
|
217
220
|
|
data/lib/gengo-ruby/version.rb
CHANGED