crowdin-cli 0.1.4 → 0.1.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a2b8da800c4eb8b7ac83fae71c4f5a367e2957f
4
- data.tar.gz: f20547149f0303af7281561df18d4553ee588999
3
+ metadata.gz: 8c8c5c019062f19c359479358118e10573fddc1d
4
+ data.tar.gz: d6889a079c07e20094d36f257ce151c113a5545c
5
5
  SHA512:
6
- metadata.gz: 65f49b368609972c0f7fd26f92b96fa194ea105eb681fb766f2232f40e178a9e2b190ddbbfa40c121881d58e13c76a6ca52b682665f2396b803a6aafcd50273f
7
- data.tar.gz: e2ddd67bca8e0786add4e9f23f98bf81299b8dab6cb8bf3cea7e04300c647ff0cb8fcb5bb1cc7c8a4ac0cc849c05fdcc3d11415499696404c16738377df55351
6
+ metadata.gz: 713ece1d9226a909ce6a4a9325aebc7fafc32e7e335b4a39339109c21f807b88ec5d6f6afd9e0d20d63c119186286a2293e514e5c2d7349f1024509c4161a60d
7
+ data.tar.gz: 25f10f64608b8ca072882ed73dbcd4b652b21a104718a1dd02d8f06aab9ba15c11259fa3d59178af6bc9291c2e953684a33387841aaa30b9fcd9e4872798b415
@@ -256,7 +256,7 @@ EOS
256
256
 
257
257
  local_files << local_file
258
258
  else
259
- Dir.glob("#{@base_path}#{file['source']}").each do |source|
259
+ Dir.glob("#{@base_path}#{file['source']}").select{ |fn| File.file?(fn) }.each do |source|
260
260
  dest = source.sub("#{@base_path}", '') # relative path in Crowdin
261
261
  dest_files << dest
262
262
 
@@ -397,7 +397,7 @@ EOS
397
397
  translated_files[lang['crowdin_code']] << { source: "#{@base_path}#{source}", dest: dest }
398
398
  end
399
399
  else
400
- Dir.glob("#{@base_path}#{file['source']}").each do |source|
400
+ Dir.glob("#{@base_path}#{file['source']}").select{ |fn| File.file?(fn) }.each do |source|
401
401
  dest = source.sub("#{@base_path}", '') # relative path in Crowdin
402
402
  dest_files << dest
403
403
 
@@ -496,7 +496,7 @@ command :download do |c|
496
496
  downloadable_files[zipped_file] = local_file
497
497
  end
498
498
  else
499
- Dir.glob("#{@base_path}#{file['source']}").each do |source|
499
+ Dir.glob("#{@base_path}#{file['source']}").select{ |fn| File.file?(fn) }.each do |source|
500
500
  dest = source.sub("#{@base_path}", '') # relative path in Crowdin
501
501
 
502
502
  export_pattern = construct_export_pattern(dest, file['source'], file['translation'])
@@ -1,5 +1,5 @@
1
1
  module Crowdin
2
2
  module CLI
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowdin-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Crowdin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-19 00:00:00.000000000 Z
11
+ date: 2013-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake