fastlane-plugin-gs_deliver 0.3.5 → 0.3.6

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
  SHA1:
3
- metadata.gz: 4768a701d7a81f8d7bd7456fcc348541376f7ebf
4
- data.tar.gz: dfbc803633df6fea9fe7ee9b2c37c4b19b933cb7
3
+ metadata.gz: eb4e60e6b37875662ee2589ff470585b884f1fe6
4
+ data.tar.gz: 4e0c2204a3bc2717505ed6ea35b66abfca9d35cf
5
5
  SHA512:
6
- metadata.gz: 244ed5258c14b61bd50171a165bc0d10bca380d1a66775524105a76e7265b130806a8bf60008ba228e180c5896270aa2cf5e236d1ed82a5578229267a16717db
7
- data.tar.gz: b9b90e524e38966920beccb13652cfa16ea6373399a7bf60019cb472886147d2a9c88ce75745db12fa51378a739feadcb711f5507832bb6b32647010abb5d405
6
+ metadata.gz: 29f224ffb842321ba4469f5a4fb71b7f86026ca8b88726b7ec23b32d70bbb405a789c78b3bb6095709de4409602dbfc4821fc0e9d7cd535e010efc4645e658bd
7
+ data.tar.gz: 3df57a407d91050b95178138d5fccc5be2762dd2692f21ea30be2d36b21b7043921720954161b35fd99b625f195bebd51040179fb0087e976766edf6880ba435
@@ -0,0 +1,65 @@
1
+ module Fastlane
2
+ module Actions
3
+ require 'Spaceship'
4
+ require 'pilot'
5
+ class GsGetAppStatusAction < Action
6
+ def self.run(params)
7
+ build_manager = Pilot::BuildManager.new
8
+ platform = build_manager.fetch_app_platform(required: false)
9
+ builds = build_manager.app.all_processing_builds(platform: platform) + app.builds(platform: platform)
10
+ # sort by upload_date
11
+ builds.sort! { |a, b| a.upload_date <=> b.upload_date }
12
+ build = builds.last
13
+ if build.nil?
14
+ UI.user_error!("No builds found.")
15
+ return
16
+ end
17
+ if build.processing
18
+ UI.user_error!("Build #{build.train_version}(#{build.build_version}) is still processing.")
19
+ return
20
+ end
21
+ if build.testing_status == "External"
22
+ UI.user_error!("Build #{build.train_version}(#{build.build_version}) has already been distributed.")
23
+ return
24
+ end
25
+
26
+ build.build_train.update_testing_status!(true, type, uploaded_build)
27
+ end
28
+
29
+ def self.description
30
+ "Gradoservice plugin to rule apps releases"
31
+ end
32
+
33
+ def self.authors
34
+ ["Сергей Веселовский"]
35
+ end
36
+
37
+ def self.return_value
38
+ # If your method provides a return value, you can describe here what it does
39
+ end
40
+
41
+ def self.details
42
+ # Optional:
43
+ "Gradoservice plugin to rule apps releases for our scheme"
44
+ end
45
+
46
+ def self.available_options
47
+ [
48
+ FastlaneCore::ConfigItem.new(key: :app_identifier,
49
+ env_name: "BUNDLE_ID",
50
+ description: "A description of your option",
51
+ optional: false,
52
+ type: String)
53
+ ]
54
+ end
55
+
56
+ def self.is_supported?(platform)
57
+ # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
58
+ # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
59
+ #
60
+ # [:ios, :mac, :android].include?(platform)
61
+ true
62
+ end
63
+ end
64
+ end
65
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GsDeliver
3
- VERSION = "0.3.5"
3
+ VERSION = "0.3.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-gs_deliver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Сергей Веселовский
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-28 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -107,6 +107,7 @@ files:
107
107
  - lib/fastlane/plugin/gs_deliver/actions/gs_move_rc_to_beta_review.rb
108
108
  - lib/fastlane/plugin/gs_deliver/actions/gs_move_to_ready_for_sale.rb
109
109
  - lib/fastlane/plugin/gs_deliver/actions/gs_reject_latest_version.rb
110
+ - lib/fastlane/plugin/gs_deliver/actions/gs_start_external_testing.rb
110
111
  - lib/fastlane/plugin/gs_deliver/helper/gs_deliver_helper.rb
111
112
  - lib/fastlane/plugin/gs_deliver/version.rb
112
113
  - lib/fastlane/plugin/gs_deliver.rb