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 +4 -4
- data/history.md +4 -0
- data/lib/web_translate_it/command_line.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99eef6a80d69117867ef42b8ef5e3d7ca2c0dfaa
|
4
|
+
data.tar.gz: f5f6c872d8eb9bc92cf321828c47ff87085d5101
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff4ddbf7ba6592e46f9c13ca1b355b03748e0ffe59da67d307c5f39b7982bdb26217f1baece04698cc78680491e2b6e3e653023d218f7c43bc95cd5f0f92210a
|
7
|
+
data.tar.gz: 5ebb65ee1efd0df5b67e8fa8466b7e751f70362c01050d74c55748593a6de99e6db16982328371e6ef3bd8ba191009a42fa9839ca2250ed23383812f0ef5fb6f
|
data/history.md
CHANGED
@@ -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
|
-
|
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
|
+
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
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|