web_translate_it 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/history.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Version 1.6.3 /2010-04-02
2
+
3
+ * Bug fix: Don’t rely on active_support only for .blank? Fix issue #23
4
+
1
5
  ## Version 1.6.2 /2010-04-01
2
6
 
3
7
  * Bug fix: ability to run `rake` tasks if Web Translate It is installed as a plugin.
@@ -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'].blank?
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'].blank?
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
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 6
4
- :patch: 2
4
+ :patch: 3
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 6
8
- - 2
9
- version: 1.6.2
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-01 00:00:00 +02:00
17
+ date: 2010-04-02 00:00:00 +02:00
18
18
  default_executable: wti
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency