fastlane-plugin-taiwan_number_one 1.1.2 → 1.1.3

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: d96498468a5871d8e612adb663a7f446ce026e9dfb1ba3ee6a6df3689d2ac786
4
- data.tar.gz: 285b7cb87df61d33b387690f9d06c06e9834e078d6948ee46c7a1388eea342b9
3
+ metadata.gz: 1c5ccf4c9522f758764660d86f7faf7fd084922efff188b493bf3b5467732783
4
+ data.tar.gz: 9d437678f413a529a6f1644bfc8a7d988b74e8d4e460e4ac784343b96adcd4e1
5
5
  SHA512:
6
- metadata.gz: 12ce29515257361ae7f814ca0fc93dd026a456c211457085071b353bf241ef10631b28ce1569bc3d20307e583e7f0b7dffb09da73a4e5619dfba6669d6c0b812
7
- data.tar.gz: 8558a7f279b12c8e4efe192700cccd08ba2867903c71c60ecd346487e93143dfa2b032a9a8d775bb0a5fedd5efb3d9966a57db22ad2ceecefd85c6edf29e4ffc
6
+ metadata.gz: 32a3f59ae71f9436841279b95d0d3bc34181bd35c2952565703fd7a01552b15eadfef2798b97eed2526ad46a37005ee19083127761e3eb1ad5ebc7612634ac4b
7
+ data.tar.gz: a58410635d23aa6f37d7757ef78acd4e1d0fe4009cef686c78e6bb7b44312d8a5840611682c87f06a5462ce2d22ed5b6168cefb8cd5ceff7fd1421b0f7c9da49
@@ -80,7 +80,7 @@ module Fastlane
80
80
  case decision
81
81
  when DecisionType::RELEASE
82
82
  UI.message("decision is release")
83
- result = release_version_if_possible(client: client, app_store_version: app_store_version, token: token)
83
+ result = release_version_if_possible(app: app, app_store_version: app_store_version, token: token)
84
84
  when DecisionType::REJECT
85
85
  UI.message("decision is reject")
86
86
  result = reject_version_if_possible(client: client, app_store_version: app_store_version)
@@ -126,23 +126,13 @@ module Fastlane
126
126
  return ActionResult::DO_NOTHING
127
127
  end
128
128
 
129
- begin
130
- if token
131
- now = Time.now
132
- release_date_string = now.strftime("%Y-%m-%dT%H:00%:z")
133
- app_store_version.update(attributes: {
134
- earliest_release_date: release_date_string,
135
- release_type: Spaceship::ConnectAPI::AppStoreVersion::ReleaseType::SCHEDULED
136
- })
137
- return ActionResult::SUCCESS
138
- else
139
- app_store_version.create_app_store_version_release_request
140
- UI.message("release version #{app_store_version.version_string} successfully!")
141
- return ActionResult::SUCCESS
142
- end
143
- rescue => e
144
- UI.user_error!("An error occurred while releasing version #{app_store_version}, #{e.message}\n#{e.backtrace.join("\n")}")
145
- return ActionResult::DO_NOTHING
129
+ version = app.get_pending_release_app_store_version
130
+ if version.nil? == false
131
+ Spaceship::ConnectAPI.post_app_store_version_release_request(app_store_version_id: version.id)
132
+ UI.message("release version #{app_store_version} successfully!")
133
+ return ActionResult::SUCCESS
134
+ else
135
+ UI.user_error!("version not found while releasing version #{app_store_version}, #{e.message}\n#{e.backtrace.join("\n")}")
146
136
  end
147
137
  end
148
138
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TaiwanNumberOne
3
- VERSION = "1.1.2"
3
+ VERSION = "1.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-taiwan_number_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - andrew54068
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry