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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec3906e79f2ebe67f2f7dc8febbed0ae2d7eec5fa2490df64b5db3c9893ea18b
4
- data.tar.gz: 73ec79db985afcd1d5f432d26ab173f791c846ed44c81930f8b23a9867874c84
3
+ metadata.gz: 131ac3db734f01f15093a4edec421bef603cb2a31d15846a9e4207f46b177764
4
+ data.tar.gz: 6b3237982152999b2d13f0437dac7a8bd249a4dd47a3d750028d345060a022fd
5
5
  SHA512:
6
- metadata.gz: 211e0f3ce4e1cbe14986838a63ac812204953ac0f5709151cdccac5d4fe8557d63ec554977b52110e1ff529a964033f9b2d6218c2291c5a2c59633cd6b22435a
7
- data.tar.gz: 03630d3d4d10cc0c26fb93ae42e9a613694f155da614f77c17c7fc5695d87e42603e0899c3e8f7309e456d3e02f72ec3ed69ebeafd5baeacf64091a006144c5b
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,zh-Hant,pt-BR,es,ar'
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,zh-Hant,pt-BR,es,ar'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pixab
4
- VERSION = "2.6.3"
4
+ VERSION = "2.6.6"
5
5
  end
@@ -52,7 +52,7 @@ module Pixab
52
52
  merge
53
53
  if need_creat_mr
54
54
  push_and_create_mr
55
- elseif need_push_remote
55
+ elsif need_push_remote
56
56
  push_to_remote
57
57
  end
58
58
  end
@@ -175,4 +175,6 @@ module Pixab
175
175
  end
176
176
  end
177
177
 
178
+ end
179
+
178
180
  end
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.3
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-08-27 00:00:00.000000000 Z
11
+ date: 2025-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2