pixab 2.6.0 → 2.6.1

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: 33b23dbba4b6ae53666ba3ff936c868143cc3a7926d7bf61738a3cc0709a092b
4
- data.tar.gz: 86b9a0d5878707673ba300b87ae77837d7ff22cba239ab012598f0ae30e6c8e4
3
+ metadata.gz: 2bd7c2f70afda370b52d1053f29c31cf57de92b8b83773d2274062faa8ec7444
4
+ data.tar.gz: 5b708bdf573d20c2e8dd7386f706fd70e10674f28bdf51057d4c612ee8753d49
5
5
  SHA512:
6
- metadata.gz: e418e5acf0a57ece9ccc811a460c58b97a8105dc67ba70a92826af07f9d8883e0816099cbf6a0e97b03318a48282234335a9ce4de7eb9fc6627db77bc10e4df3
7
- data.tar.gz: 79536dd5536769dfc6392eaf7ebc17ade6129a3add815776d562f78fd9b0ad400b1b3755d1463805a1d72f2ca8f4f92eb6e164fe2ce8ba8f94507bcea938160c
6
+ metadata.gz: 0ce7a74b7b42ee05dd4db01ad342ccb4b0183926a92e450b20915fdf49bb063251536eca8e8964acb7e37dcc8d0b71c1b002e73f7d79a49618e0e35b38581eb1
7
+ data.tar.gz: 3aaa2d852128c0cbdc8fc1a9623dd37d3031e03926d2a823e626dea4ba059fabc56d02c38bd908505807b793dfe97deeeebdc59e48ba337c2295dd321603787f
@@ -16,6 +16,10 @@ module Pixab
16
16
  smartcat = Pixab::LocalizationSmartcat.new
17
17
  new_commands = commands.nil? ? [] : commands
18
18
  collections.each_with_index do |collection, index|
19
+ if is_skipped_collection(collection)
20
+ next
21
+ end
22
+
19
23
  new_commands.push('--collections', collection)
20
24
  if index > 0
21
25
  new_commands.push('--mode', 'a')
@@ -24,6 +28,19 @@ module Pixab
24
28
  end
25
29
  end
26
30
 
31
+ # 判断合集后缀为-debug, -ongoing, -bug时。忽略此合集拉取
32
+ def is_skipped_collection(collection)
33
+ if collection.nil?
34
+ return true
35
+ end
36
+
37
+ if collection.end_with?('-debug', '-ongoing', '-bug')
38
+ return true
39
+ end
40
+
41
+ return false
42
+ end
43
+
27
44
  end
28
45
 
29
46
  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.0"
4
+ VERSION = "2.6.1"
5
5
  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.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 廖再润
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-12 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2