web_translate_it 2.0.7 → 2.0.8

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 2.0.8 / 2013-04-04
2
+
3
+ * Update CA cert of the WebTranslateit’s issuer (Rapid SSL). #95.
4
+
1
5
  ## Version 2.0.7 / 2013-04-04
2
6
 
3
7
  * A new version of WebTranslateIt brings instant statistics generation. Statistics are never stale,
@@ -107,13 +111,13 @@
107
111
  * Fix `wti status` command.
108
112
  * Improvement: truncate `wti pull` performance statistics (`Pulled 10 files in 0.7 seconds at 13.4 files/sec`).
109
113
  * Fix: Configuration file lookup improvements. Configuration files can now be located in another directory, and `wti` commands don’t have to be executed in the root directory. It is now possible to execute:
110
-
111
- ```
112
- wti pull
113
- wti pull -c /Users/edouard/code/test/.wti
114
- wti pull -c ../.wti
115
- wti pull -c ~/code/.wti
116
- ```
114
+
115
+ ```
116
+ wti pull
117
+ wti pull -c /Users/edouard/code/test/.wti
118
+ wti pull -c ../.wti
119
+ wti pull -c ~/code/.wti
120
+ ```
117
121
 
118
122
  ## Version 1.9.1 / 2011-12-08
119
123
 
@@ -1,27 +1,20 @@
1
1
  -----BEGIN CERTIFICATE-----
2
- MIIEozCCA4ugAwIBAgIQWrYdrB5NogYUx1U9Pamy3DANBgkqhkiG9w0BAQUFADCB
3
- lzELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2Ug
4
- Q2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExho
5
- dHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xHzAdBgNVBAMTFlVUTi1VU0VSRmlyc3Qt
6
- SGFyZHdhcmUwHhcNMDgxMDIzMDAwMDAwWhcNMjAwNTMwMTA0ODM4WjBBMQswCQYD
7
- VQQGEwJGUjESMBAGA1UEChMJR0FOREkgU0FTMR4wHAYDVQQDExVHYW5kaSBTdGFu
8
- ZGFyZCBTU0w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iG9w0BAQUFAAOCAQEANeMpauUvXVSOKVCUn5kaFOSPeCpilKIn
15
+ Z57QzxpeR+nBsqTP3UEaBU6bS+5Kb1VSsyShNwrrZHYqLizz/Tt1kL/6cdjHPTfS
16
+ tQWVYrmm3ok9Nns4d0iXrKYgjy6myQzCsplFAMfOEVEiIuCl6rYVSAlk6l5PdPcF
17
+ PseKUgzbFbS9bZvlxrFUaKnjaZC2mqUPuLk/IH2uSrW4nOQdtqvmlKXBx4Ot2/Un
18
+ hw4EbNX/3aBd7YdStysVAq45pmp06drE57xNNB6pXE0zX5IJL4hmXXeXxx12E6nV
19
+ 5fEWCRE11azbJHFwLJhWC9kXtNHjUStedejV0NxPNO3CBWaAocvmMw==
27
20
  -----END CERTIFICATE-----
@@ -3,6 +3,7 @@ module WebTranslateIt
3
3
  class Connection
4
4
  require 'net/http'
5
5
  require 'net/https'
6
+ require 'openssl'
6
7
  require 'uri'
7
8
  require 'ostruct'
8
9
 
@@ -35,7 +36,7 @@ module WebTranslateIt
35
36
  if File.exists?('/etc/ssl/certs') # Ubuntu
36
37
  http.ca_path = '/etc/ssl/certs'
37
38
  else
38
- http.ca_file = File.expand_path('cacert.pem', __FILE__)
39
+ http.ca_file = File.expand_path('../cacert.pem', __FILE__)
39
40
  end
40
41
  @@http_connection = http.start
41
42
  yield @@http_connection if block_given?
data/license CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-2011 Atelier Convivialité
1
+ Copyright (c) 2009-2013 Atelier Convivialité
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
metadata CHANGED
@@ -1,97 +1,101 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web_translate_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
5
- prerelease:
4
+ prerelease:
5
+ version: 2.0.8
6
6
  platform: ruby
7
7
  authors:
8
- - Édouard Brière
9
- autorequire:
8
+ - "Édouard Brière"
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-04 00:00:00.000000000 Z
12
+ date: 2013-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multipart-post
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
16
+ version_requirements: !ruby/object:Gem::Requirement
18
17
  requirements:
19
- - - ~>
18
+ - - "~>"
20
19
  - !ruby/object:Gem::Version
21
20
  version: 1.1.3
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
21
  none: false
22
+ requirement: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 1.1.3
27
+ none: false
28
+ prerelease: false
29
+ type: :runtime
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: trollop
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
32
+ version_requirements: !ruby/object:Gem::Requirement
34
33
  requirements:
35
- - - ~>
34
+ - - "~>"
36
35
  - !ruby/object:Gem::Version
37
36
  version: '2.0'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
37
  none: false
38
+ requirement: !ruby/object:Gem::Requirement
42
39
  requirements:
43
- - - ~>
40
+ - - "~>"
44
41
  - !ruby/object:Gem::Version
45
42
  version: '2.0'
43
+ none: false
44
+ prerelease: false
45
+ type: :runtime
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: multi_json
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
48
+ version_requirements: !ruby/object:Gem::Requirement
50
49
  requirements:
51
- - - ! '>='
50
+ - - ">="
52
51
  - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
52
+ version: !binary |-
53
+ MA==
57
54
  none: false
55
+ requirement: !ruby/object:Gem::Requirement
58
56
  requirements:
59
- - - ! '>='
57
+ - - ">="
60
58
  - !ruby/object:Gem::Version
61
- version: '0'
59
+ version: !binary |-
60
+ MA==
61
+ none: false
62
+ prerelease: false
63
+ type: :runtime
62
64
  - !ruby/object:Gem::Dependency
63
65
  name: rspec
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
+ version_requirements: !ruby/object:Gem::Requirement
66
67
  requirements:
67
- - - ! '>='
68
+ - - ">="
68
69
  - !ruby/object:Gem::Version
69
70
  version: 2.6.0
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
71
  none: false
72
+ requirement: !ruby/object:Gem::Requirement
74
73
  requirements:
75
- - - ! '>='
74
+ - - ">="
76
75
  - !ruby/object:Gem::Version
77
76
  version: 2.6.0
77
+ none: false
78
+ prerelease: false
79
+ type: :development
78
80
  - !ruby/object:Gem::Dependency
79
81
  name: guard-rspec
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
+ version_requirements: !ruby/object:Gem::Requirement
82
83
  requirements:
83
- - - ! '>='
84
+ - - ">="
84
85
  - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
86
+ version: !binary |-
87
+ MA==
89
88
  none: false
89
+ requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ! '>='
91
+ - - ">="
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
94
- description:
93
+ version: !binary |-
94
+ MA==
95
+ none: false
96
+ prerelease: false
97
+ type: :development
98
+ description:
95
99
  email: edouard@atelierconvivialite.com
96
100
  executables:
97
101
  - wti
@@ -104,6 +108,7 @@ files:
104
108
  - license
105
109
  - readme.md
106
110
  - examples/locale.rb
111
+ - lib/web_translate_it.rb
107
112
  - lib/web_translate_it/auto_fetch.rb
108
113
  - lib/web_translate_it/cacert.pem
109
114
  - lib/web_translate_it/command_line.rb
@@ -115,51 +120,52 @@ files:
115
120
  - lib/web_translate_it/term_translation.rb
116
121
  - lib/web_translate_it/translation.rb
117
122
  - lib/web_translate_it/translation_file.rb
123
+ - lib/web_translate_it/util.rb
118
124
  - lib/web_translate_it/util/array_util.rb
119
125
  - lib/web_translate_it/util/hash_util.rb
120
126
  - lib/web_translate_it/util/string_util.rb
121
- - lib/web_translate_it/util.rb
122
- - lib/web_translate_it.rb
123
- - generators/webtranslateit/lib/insert_commands.rb
124
127
  - generators/webtranslateit/webtranslateit_generator.rb
128
+ - generators/webtranslateit/lib/insert_commands.rb
125
129
  - bin/wti
126
130
  - man/wti.1
127
131
  - man/wti.1.html
128
132
  - man/wti.1.ron
129
- - spec/examples/config/translation.yml
130
- - spec/examples/en.yml
131
133
  - spec/spec_helper.rb
134
+ - spec/examples/en.yml
135
+ - spec/examples/config/translation.yml
132
136
  - spec/web_translate_it/string_spec.rb
133
137
  - spec/web_translate_it/term_spec.rb
134
138
  homepage: https://webtranslateit.com
135
139
  licenses: []
136
- post_install_message:
140
+ post_install_message:
137
141
  rdoc_options:
138
- - --main
142
+ - "--main"
139
143
  - readme.md
140
144
  require_paths:
141
145
  - lib
142
146
  required_ruby_version: !ruby/object:Gem::Requirement
143
- none: false
144
147
  requirements:
145
- - - ! '>='
148
+ - - ">="
146
149
  - !ruby/object:Gem::Version
147
- version: '0'
148
- required_rubygems_version: !ruby/object:Gem::Requirement
150
+ version: !binary |-
151
+ MA==
149
152
  none: false
153
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
154
  requirements:
151
- - - ! '>='
155
+ - - ">="
152
156
  - !ruby/object:Gem::Version
153
- version: '0'
157
+ version: !binary |-
158
+ MA==
159
+ none: false
154
160
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 1.8.25
157
- signing_key:
161
+ rubyforge_project:
162
+ rubygems_version: 1.8.24
163
+ signing_key:
158
164
  specification_version: 3
159
165
  summary: A CLI to sync locale files with webtranslateit.com.
160
166
  test_files:
161
- - spec/examples/config/translation.yml
162
- - spec/examples/en.yml
163
167
  - spec/spec_helper.rb
168
+ - spec/examples/en.yml
169
+ - spec/examples/config/translation.yml
164
170
  - spec/web_translate_it/string_spec.rb
165
171
  - spec/web_translate_it/term_spec.rb