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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## Version 1.8.0.1 / 2011-06-01
2
+
3
+ * Fix: SSL certificate verification wasn’t working on some systems (at least Ubuntu).
4
+
1
5
  ## Version 1.8.0.0 / 2011-05-31
2
6
 
3
7
  * New: Faster file transfers using KeepAlive’d connection.
@@ -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
- http.ca_file = File.expand_path('cacert.pem', __FILE__)
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
@@ -2,4 +2,4 @@
2
2
  :major: 1
3
3
  :minor: 8
4
4
  :tiny: 0
5
- :patch: 0
5
+ :patch: 1
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 8
8
8
  - 0
9
- - 0
10
- version: 1.8.0.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-05-31 00:00:00 +02:00
18
+ date: 2011-06-01 00:00:00 +02:00
19
19
  default_executable: wti
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency