pixab 2.6.3 → 2.6.6
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 +4 -4
- data/lib/localization/smartcat/LocalizationSmartcat.rb +2 -20
- data/lib/pixab/version.rb +1 -1
- data/lib/projects/MergeRequest.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 131ac3db734f01f15093a4edec421bef603cb2a31d15846a9e4207f46b177764
|
|
4
|
+
data.tar.gz: 6b3237982152999b2d13f0437dac7a8bd249a4dd47a3d750028d345060a022fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c63587b1956656d1b94bd3dbd08a960df01f7cd950734dc2854c66a4c62c0085de02ed786dbf4f6dcecdec4a876827cabec82e9d5427900b20b325b58233d422
|
|
7
|
+
data.tar.gz: 5470e0c82cc65498631069f209d1cb51529458cc9456e5c24d773fc830dc4d9377d206d6c8ed3754cb3e26b6ba07fa7df2be26ca903193897a9616dca91097f6
|
|
@@ -28,12 +28,12 @@ module Pixab
|
|
|
28
28
|
@platform = 'android'
|
|
29
29
|
@tags = 'android'
|
|
30
30
|
@collections = 'AirBrush'
|
|
31
|
-
@languages = 'en,ru,tr,de,fr,zh-Hans,
|
|
31
|
+
@languages = 'en,ru,tr,de,fr,zh-Hans,pt-BR,es,ar'
|
|
32
32
|
when '--ab-iOS'
|
|
33
33
|
@platform = 'iOS'
|
|
34
34
|
@tags = 'iOS'
|
|
35
35
|
@collections = 'AirBrush'
|
|
36
|
-
@languages = 'en,ru,tr,de,fr,zh-Hans,
|
|
36
|
+
@languages = 'en,ru,tr,de,fr,zh-Hans,pt-BR,es,ar'
|
|
37
37
|
when '--abv-iOS'
|
|
38
38
|
@projects = LocalizationSmartcatInfo::Project_AirBrushVideo
|
|
39
39
|
@platform = 'iOS'
|
|
@@ -163,9 +163,6 @@ module Pixab
|
|
|
163
163
|
|
|
164
164
|
def unzip_file_iOS(zip_file)
|
|
165
165
|
zip_file.each do |f|
|
|
166
|
-
if is_ignored_file_path(f.name)
|
|
167
|
-
next
|
|
168
|
-
end
|
|
169
166
|
f_path = extract_localization_file_path(f.name)
|
|
170
167
|
FileUtils.mkdir_p(File.dirname(f_path))
|
|
171
168
|
content = f.get_input_stream.read
|
|
@@ -185,9 +182,6 @@ module Pixab
|
|
|
185
182
|
|
|
186
183
|
def unzip_file_android(zip_file)
|
|
187
184
|
zip_file.each do |f|
|
|
188
|
-
if is_ignored_file_path(f.name)
|
|
189
|
-
next
|
|
190
|
-
end
|
|
191
185
|
f_path = extract_localization_file_path(f.name)
|
|
192
186
|
FileUtils.mkdir_p(File.dirname(f_path))
|
|
193
187
|
content = f.get_input_stream.read
|
|
@@ -329,18 +323,6 @@ module Pixab
|
|
|
329
323
|
return zip_file_path
|
|
330
324
|
end
|
|
331
325
|
|
|
332
|
-
def is_ignored_file_path(file_path)
|
|
333
|
-
case projects
|
|
334
|
-
when LocalizationSmartcatInfo::Project_AirBrush
|
|
335
|
-
return false unless platform == 'android'
|
|
336
|
-
|
|
337
|
-
path = File.dirname(file_path)
|
|
338
|
-
return path == 'zh-rHant' ? true : false
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
return false
|
|
342
|
-
end
|
|
343
|
-
|
|
344
326
|
end
|
|
345
327
|
|
|
346
328
|
end
|
data/lib/pixab/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pixab
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.6.
|
|
4
|
+
version: 2.6.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 廖再润
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colored2
|