web_translate_it 1.8.0.0 → 1.8.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/history.md +4 -0
- data/lib/web_translate_it/util.rb +5 -1
- data/version.yml +1 -1
- metadata +3 -3
data/history.md
CHANGED
@@ -31,7 +31,11 @@ module WebTranslateIt
|
|
31
31
|
http = Net::HTTP::Proxy(proxy.host, proxy.port, proxy.user, proxy.password).new('webtranslateit.com', 443)
|
32
32
|
http.use_ssl = true
|
33
33
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
34
|
-
|
34
|
+
if File.exists?('/etc/ssl/certs') # Ubuntu
|
35
|
+
http.ca_path = '/etc/ssl/certs'
|
36
|
+
else
|
37
|
+
http.ca_file = File.expand_path('cacert.pem', __FILE__)
|
38
|
+
end
|
35
39
|
http.open_timeout = http.read_timeout = 30
|
36
40
|
yield http.start
|
37
41
|
end
|
data/version.yml
CHANGED
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 8
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.8.0.
|
9
|
+
- 1
|
10
|
+
version: 1.8.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "\xC3\x89douard Bri\xC3\xA8re"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-01 00:00:00 +02:00
|
19
19
|
default_executable: wti
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|