babelyoda 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/bin/babelyoda +7 -0
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.6.0
data/bin/babelyoda CHANGED
@@ -297,6 +297,7 @@ def pack_tmp_lproj
297
297
  FileUtils.cp $config['src_lang_code_strings_file'],
298
298
  File.join(tmp_lproj_dir_for_lang($config['src_lang']), mangled_name('Localizable.strings', $config['src_lang'])),
299
299
  :verbose => true
300
+
300
301
  src_xib_files.each do |xib|
301
302
  strings = strings_file_for_xib_lang(xib, $config['src_lang'])
302
303
  strings_filename = File.split(strings).last
@@ -309,6 +310,12 @@ def pack_tmp_lproj
309
310
  all_languages.sort.each do |lang|
310
311
  status "PACKING RESOURCES FOR '#{lang}'"
311
312
  FileUtils.cd(tmp_lproj_dir_for_lang(lang), :verbose => true) do |dir|
313
+
314
+ # Get rid of empty files
315
+ Dir.glob(File.join(dir, '**', '*.strings')).flatten.sort.each do |tmp_strings_file|
316
+ FileUtils.rm_rf(tmp_strings_file, :verbose => true) unless File.size?(tmp_strings_file) > 2
317
+ end
318
+
312
319
  rc = exe "zip -r -9 -y '../zips/#{zipname_for_lang(lang)}' *"
313
320
  error "Failed to pack resources for '#{lang}'" unless rc
314
321
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 5
7
+ - 6
8
8
  - 0
9
- version: 1.5.0
9
+ version: 1.6.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andrey Subbotin
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-15 00:00:00 -04:00
17
+ date: 2010-08-21 00:00:00 -04:00
18
18
  default_executable:
19
19
  - babelyoda
20
20
  dependencies: