fastlane-plugin-taiwan_number_one 0.2.3 → 0.2.4

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: 359821e6b701c5b2dab9f8da4638677242b7291a16f00f4746ce61e06c8c1af6
4
- data.tar.gz: 1064960c97b3c0f4b1b41bf73151b87dccbaace13a85de31fabdda343a455ba1
3
+ metadata.gz: 3f6eb09f64dd7bf6465761f674f378f6ea3d4a912976cd38f600a29a6a4752f1
4
+ data.tar.gz: b033ac75e5eb986c6902c857c9ea9fcfd125bb8513616f3a39100d1b8f5188ad
5
5
  SHA512:
6
- metadata.gz: e97f0c3d12f350869f175f728e05dcc1b2ebedf7b91ad2898543415b26ebf0fb538eafea889b6959982825d3bf34aa0be39362bb57e6045add9f5a55a924a3c8
7
- data.tar.gz: a26924113675bea5bfae2d7cf683e50e2f4e849dcbd8ccb894361b8a8bdc9cd2edfde5ae9bb2513ef47bb6ef3db11543504dfe8ac58c5aa94dc69d61aa562fd9
6
+ metadata.gz: fe2c9f523df133975f0bcca2b00a8f099b984add55edade12febf3dffd0227ee54fb080b46e50b0708f1b378f34561c99b93b8334d76d84752882797ea15cd7f
7
+ data.tar.gz: 15e3641963bb2568d9b0853dc24704450d04c797e405c2ff0137135e7501a97867a485c2446cb5e96752a7530ea15bb3dc5a66cdb760af38f7423a7df60370d3
@@ -65,8 +65,7 @@ module Fastlane
65
65
  UI.message("🇹🇼 Taiwan helps you do nothing!")
66
66
  return
67
67
  end
68
- decision = params[:app_decision]
69
- decision ||= fetch_decision
68
+ decision ||= fetch_decision(param)
70
69
 
71
70
  result = ActionResult::DO_NOTHING
72
71
  case decision
@@ -97,10 +96,10 @@ module Fastlane
97
96
  end
98
97
  end
99
98
 
100
- def self.fetch_decision
101
- decision = nil
99
+ def self.fetch_decision(param)
100
+ decision = params[:app_decision]
102
101
  until ["release", "reject"].include?(decision)
103
- UI.user_error!("App's decision must be release or reject")
102
+ UI.user_error!("App's decision must be release or reject.")
104
103
  return
105
104
  end
106
105
  # return decision
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TaiwanNumberOne
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-taiwan_number_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - andrew54068