pixab 1.7.3 → 1.7.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 +4 -4
- data/lib/LocalizationSmartcat.rb +10 -2
- data/lib/pixab/version.rb +1 -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: 5caf285f26d4a55e734aad944c40ca46b1f8458fc83e73cbdd4e2195ad57afdc
|
4
|
+
data.tar.gz: 8625302238e71910fc595c340fdc99e05d53ebb9465ad27743fc0907c9bbbaa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fffb6152204d9d77677edc3f256e583057f8c594f3cee9b31acc711c4f5a075cfb63b23a51ad07ace23cf83940045499ebf3d66820abb338dc02de03f0418b43
|
7
|
+
data.tar.gz: be6024b8c34ed9e744b95e37a4968d7c3cad1133ea683a1d0eb3117bbdb46005a0287fa160ad9b21dfe4cbd8dc57fb4d7bdbdd013099164f731bfb44c46d40c6
|
data/lib/LocalizationSmartcat.rb
CHANGED
@@ -16,7 +16,7 @@ module Pixab
|
|
16
16
|
Project_AirBrush = '6cd2db15-6325-43ae-9087-f78aca9bec9a'
|
17
17
|
Project_AirBrushVideo = '16cbeffd-bb6e-46e8-a32e-9c79d23a796f'
|
18
18
|
|
19
|
-
attr_accessor :projects, :tags, :platform, :collections
|
19
|
+
attr_accessor :projects, :tags, :platform, :collections, :languages
|
20
20
|
|
21
21
|
def initialize()
|
22
22
|
@projects = Project_AirBrush
|
@@ -31,10 +31,12 @@ module Pixab
|
|
31
31
|
@platform = 'android'
|
32
32
|
@tags = 'android'
|
33
33
|
@collections = 'AirBrush'
|
34
|
+
@languages = 'en,ru,tr,de,fr,zh-Hans,zh-Hant,pt-BR,es,ar'
|
34
35
|
when '--ab-iOS'
|
35
36
|
@platform = 'iOS'
|
36
37
|
@tags = 'iOS'
|
37
38
|
@collections = 'AirBrush'
|
39
|
+
@languages = 'en,ru,tr,de,fr,zh-Hans,zh-Hant,pt-BR,es,ar'
|
38
40
|
when '--abv-iOS'
|
39
41
|
@projects = Project_AirBrushVideo
|
40
42
|
@platform = 'iOS'
|
@@ -57,6 +59,8 @@ module Pixab
|
|
57
59
|
@platform = commands[index + 1]
|
58
60
|
when '--collections'
|
59
61
|
@collections = commands[index + 1]
|
62
|
+
when '--languages'
|
63
|
+
@languages = commands[index + 1]
|
60
64
|
end
|
61
65
|
end
|
62
66
|
|
@@ -115,7 +119,7 @@ module Pixab
|
|
115
119
|
end
|
116
120
|
end
|
117
121
|
|
118
|
-
puts "
|
122
|
+
puts "\nFailed to download after #{max_retries} retries. Export ID: #{export_id}"
|
119
123
|
return false
|
120
124
|
end
|
121
125
|
|
@@ -177,6 +181,10 @@ module Pixab
|
|
177
181
|
'include-default-language' => nil,
|
178
182
|
}
|
179
183
|
|
184
|
+
unless languages.nil?
|
185
|
+
export_params['languages'] = languages
|
186
|
+
end
|
187
|
+
|
180
188
|
if !platform.nil?
|
181
189
|
format = nil
|
182
190
|
template = nil
|
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: 1.7.
|
4
|
+
version: 1.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 廖再润
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored2
|