web_translate_it 1.6.2 → 1.6.3
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/command_line.rb +1 -1
- data/lib/web_translate_it/configuration.rb +1 -1
- data/version.yml +1 -1
- metadata +3 -3
data/history.md
CHANGED
@@ -80,7 +80,7 @@ OPTION
|
|
80
80
|
File.open(path, 'w'){ |file| file << generate_configuration(api_key, project_info) }
|
81
81
|
error = false
|
82
82
|
project_info['project_files'].each do |file|
|
83
|
-
if file['name'].
|
83
|
+
if file['name'].nil? or file['name'].strip == ''
|
84
84
|
puts "Project File #{file['id']} doesn’t seem to be set up."
|
85
85
|
error = true
|
86
86
|
elsif !File.exists?(file['name'])
|
@@ -41,7 +41,7 @@ module WebTranslateIt
|
|
41
41
|
def set_files(project)
|
42
42
|
self.files = []
|
43
43
|
project['project_files'].each do |project_file|
|
44
|
-
if project_file['name'].
|
44
|
+
if project_file['name'].nil? or project_file['name'].strip == ''
|
45
45
|
puts "File #{project_file['id']} not set up"
|
46
46
|
else
|
47
47
|
self.files.push TranslationFile.new(project_file['id'], project_file['name'], project_file['locale_code'], self.api_key)
|
data/version.yml
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 1.6.
|
8
|
+
- 3
|
9
|
+
version: 1.6.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "\xC3\x89douard Bri\xC3\xA8re"
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-02 00:00:00 +02:00
|
18
18
|
default_executable: wti
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|