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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84d54a1ab3a12281357538f78851d2b729803cf110e51570a17f2ee0e1c480de
4
- data.tar.gz: 2223cb8f2541517bcde9f0490cc064061043ddfc964d42d93d4ea953eaf2e417
3
+ metadata.gz: 5caf285f26d4a55e734aad944c40ca46b1f8458fc83e73cbdd4e2195ad57afdc
4
+ data.tar.gz: 8625302238e71910fc595c340fdc99e05d53ebb9465ad27743fc0907c9bbbaa0
5
5
  SHA512:
6
- metadata.gz: feb82c51f413c5a117ef86728574aa5498f9d5a13181eef65c555fc10b525af202f94dddbbf13f08b5b56c105dbb9fa0eb7e2fa376a1d95b8706b36ee0767c62
7
- data.tar.gz: 43ad564e1d758c1ed30bc929207af08c25e5426b33f8a59f80b731d8d055881f93afb37a0017428759ae511a37b00feaf140924c358594e15b6a3ca339b85390
6
+ metadata.gz: fffb6152204d9d77677edc3f256e583057f8c594f3cee9b31acc711c4f5a075cfb63b23a51ad07ace23cf83940045499ebf3d66820abb338dc02de03f0418b43
7
+ data.tar.gz: be6024b8c34ed9e744b95e37a4968d7c3cad1133ea683a1d0eb3117bbdb46005a0287fa160ad9b21dfe4cbd8dc57fb4d7bdbdd013099164f731bfb44c46d40c6
@@ -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 "Failed to download after #{max_retries} retries. Export ID: #{export_id}"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pixab
4
- VERSION = "1.7.3"
4
+ VERSION = "1.7.5"
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: 1.7.3
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-09 00:00:00.000000000 Z
11
+ date: 2023-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2