web_translate_it 2.4.4 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bbb563a2df9617fbb5579e120e415faa9513a19
4
- data.tar.gz: 36070610d446970fd65874925c8ad009ebfb6454
3
+ metadata.gz: 99eef6a80d69117867ef42b8ef5e3d7ca2c0dfaa
4
+ data.tar.gz: f5f6c872d8eb9bc92cf321828c47ff87085d5101
5
5
  SHA512:
6
- metadata.gz: 00d161f18b42da553e0506ae7e76c7a704d33c4576199fe832d2ce5b4e67983869975b2123f28de5029ec646638c538d14ada53d2c3b943b1e3271396889e383
7
- data.tar.gz: 816da17d99694a60a001ce979e4e2e4fc44c4b1a945daceeaf9074e3b7eb68b980060c90e889ce8000b47910ed3e396e4e6e22def82373531a142d18c91778e9
6
+ metadata.gz: ff4ddbf7ba6592e46f9c13ca1b355b03748e0ffe59da67d307c5f39b7982bdb26217f1baece04698cc78680491e2b6e3e653023d218f7c43bc95cd5f0f92210a
7
+ data.tar.gz: 5ebb65ee1efd0df5b67e8fa8466b7e751f70362c01050d74c55748593a6de99e6db16982328371e6ef3bd8ba191009a42fa9839ca2250ed23383812f0ef5fb6f
data/history.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Version 2.4.5 / 2017-12-21
2
+
3
+ * Fix issue pulling multiple files. #142
4
+
1
5
  ## Version 2.4.4 / 2017-11-27
2
6
 
3
7
  * Fix issue on `wti status` command.
@@ -40,9 +40,11 @@ module WebTranslateIt
40
40
  fetch_locales_to_pull.each do |locale|
41
41
  files |= configuration.files.find_all{ |file| file.locale == locale }
42
42
  end
43
+ found_files = []
43
44
  parameters.each do |parameter|
44
- files = files.find_all{ |file| File.fnmatch(parameter, file.file_path) }
45
+ found_files += files.find_all{ |file| File.fnmatch(parameter, file.file_path) }
45
46
  end
47
+ files = found_files if found_files.any?
46
48
  files = files.uniq.sort{ |a,b| a.file_path <=> b.file_path }
47
49
  if files.size == 0
48
50
  puts "No files to pull."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web_translate_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Briere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-27 00:00:00.000000000 Z
11
+ date: 2017-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post