web_translate_it 1.8.2.2 → 1.8.2.3
Sign up to get free protection for your applications and to get access to all the features.
data/history.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## Version 1.8.2.3 / 2011-11-09
|
2
|
+
|
3
|
+
* Remove `sanitize_locale`. This method was replacing locale codes like `en_US` by `en-US`.
|
4
|
+
It is now up to the user to make sure they use the correct locale format.
|
5
|
+
* Fix minor display bug during wti pull. See #70.
|
6
|
+
|
1
7
|
## Version 1.8.2.2 / 2011-11-05
|
2
8
|
|
3
9
|
* Add `--low-priority` option to `wti add` command.
|
@@ -147,7 +147,7 @@ module WebTranslateIt
|
|
147
147
|
|
148
148
|
def fetch_locales_to_pull
|
149
149
|
if command_options.locale
|
150
|
-
locales = command_options.locale.split
|
150
|
+
locales = command_options.locale.split
|
151
151
|
else
|
152
152
|
locales = configuration.target_locales
|
153
153
|
configuration.ignore_locales.each{ |locale_to_delete| locales.delete(locale_to_delete) }
|
@@ -158,7 +158,7 @@ module WebTranslateIt
|
|
158
158
|
|
159
159
|
def fetch_locales_to_push(configuration)
|
160
160
|
if command_options.locale
|
161
|
-
locales = command_options.locale.split
|
161
|
+
locales = command_options.locale.split
|
162
162
|
else
|
163
163
|
locales = [configuration.source_locale]
|
164
164
|
end
|
@@ -116,14 +116,6 @@ module WebTranslateIt
|
|
116
116
|
result
|
117
117
|
end
|
118
118
|
|
119
|
-
##
|
120
|
-
# Cleans up a locale name
|
121
|
-
# For instance: passing `fr_FR` will return `fr-FR`
|
122
|
-
|
123
|
-
def self.sanitize_locale(locale)
|
124
|
-
locale.gsub('_', '-')
|
125
|
-
end
|
126
|
-
|
127
119
|
##
|
128
120
|
# Returns whether a terminal can display ansi colors
|
129
121
|
|
data/version.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_translate_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.2.
|
4
|
+
version: 1.8.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multipart-post
|
16
|
-
requirement: &
|
16
|
+
requirement: &70355353286620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.1.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70355353286620
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: trollop
|
27
|
-
requirement: &
|
27
|
+
requirement: &70355353286060 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.16.2
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70355353286060
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sinatra
|
38
|
-
requirement: &
|
38
|
+
requirement: &70355353324140 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.2.6
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70355353324140
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &70355353323660 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 2.6.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70355353323660
|
58
58
|
description:
|
59
59
|
email: edouard@atelierconvivialite.com
|
60
60
|
executables:
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 1.8.
|
120
|
+
rubygems_version: 1.8.11
|
121
121
|
signing_key:
|
122
122
|
specification_version: 3
|
123
123
|
summary: A CLI to sync locale files with webtranslateit.com.
|