fastlane-plugin-alioss 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a09acb5a2e00213e57bd51e9a4b06b91ff6ffc1ebf28061330368efb5acd7f14
4
- data.tar.gz: 0cc385feb225a88a9f19b3346b08ca79b16e0142e5d2a099f856da9b20ccc72b
3
+ metadata.gz: c5c0ebb298a69b2fea1825c5914de1929c2552acd3f3ef2d77003bcfb835ba93
4
+ data.tar.gz: ead2a6f4022732505371833941996418e7b02f55f94bffe9f58a9612b1120013
5
5
  SHA512:
6
- metadata.gz: 253674b3e43382c91e7a46cd1927c8630c66c1b5f6b9daa4c472910447276c2992e122e4243208fa6135b616d48564c374da9578ceae866a8be7b2969907908b
7
- data.tar.gz: 820de67e1896e545b728d48bbb3bd7676c397d51e35f292dfd8edde6c9cb489f17d7a2573b6d92705ade954947e40f176884b1c509dc62e05f83cdd1aabec4b1
6
+ metadata.gz: 53cf787ef7eb8974dc6153ee91f061c31788727cbe21942d53b869a8d159ca5bca398c62643702d71217e067b24d9684f211e1914e2dfe69689e98afc9b21731
7
+ data.tar.gz: 5a833ac6d53899667d7d50328d4ed91f870af2c991c5485261adfac5c75d7984e19eaf1cf07f573db26241d5494c512ec58b7f901a5f03b09bd9917fbf47dc6d
@@ -1,3 +1,4 @@
1
+ # -*- coding: UTF-8 -*-
1
2
  require 'fastlane/plugin/alioss/version'
2
3
 
3
4
  module Fastlane
@@ -16,6 +16,7 @@ module Fastlane
16
16
  access_key_secret = params[:access_key_secret]
17
17
  path_for_app_name = params[:app_name]
18
18
  html_header_title = params[:html_header_title]
19
+ list_buckets = params[:list_buckets]
19
20
 
20
21
  build_file = [
21
22
  params[:ipa],
@@ -51,11 +52,13 @@ module Fastlane
51
52
  bucket = client.get_bucket(bucket_name)
52
53
 
53
54
  # list all buckets
54
- UI.message "========== list all buckets =========="
55
- bucket_objects = []
56
- bucket.list_objects.each do |o|
57
- UI.message o.key
58
- bucket_objects.push(o.key)
55
+ unless list_buckets.nil? || %w(NO no false FALSE).include?(list_buckets) || list_buckets == false
56
+ UI.message "========== list all buckets =========="
57
+ bucket_objects = []
58
+ bucket.list_objects.each do |o|
59
+ UI.message o.key
60
+ bucket_objects.push(o.key)
61
+ end
59
62
  end
60
63
  UI.message "======================================"
61
64
 
@@ -332,7 +335,12 @@ module Fastlane
332
335
  env_name: "ALIOSS_UPDATE_DESCRIPTION",
333
336
  description: "设置app更新日志,描述你修改了哪些内容。",
334
337
  optional: true,
335
- type: String)
338
+ type: String),
339
+ FastlaneCore::ConfigItem.new(key: :list_buckets,
340
+ env_name: "ALIOSS_LIST_BUCKETS",
341
+ description: "是否列出已经上传的所有的buckets",
342
+ default_value: nil,
343
+ optional: true)
336
344
  ]
337
345
  end
338
346
 
@@ -1,3 +1,4 @@
1
+ # -*- coding: UTF-8 -*-
1
2
  require 'fastlane_core/ui/ui'
2
3
 
3
4
  module Fastlane
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Alioss
3
- VERSION = "0.1.9"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-alioss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - woodwu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2020-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.3.0
145
+ version: 0.7.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 0.3.0
152
+ version: 0.7.0
153
153
  description:
154
154
  email: woodwu@dotdotbuy.com
155
155
  executables: []
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.0.6
185
+ rubygems_version: 3.1.2
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: upload ipa/apk to aliyun oos server, and scan QRcode to install app on mobile