fastlane-plugin-setapp 0.1.0 → 0.1.2

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: 613aa7d761c259aca8e1f76481c55071004b502dcb1fdfe6bb55b4a034a84d8f
4
- data.tar.gz: 417ac731d88fee7060ee3b9b8ac58e90f433a3d010418fcb61690ffc9a6b58ee
3
+ metadata.gz: fc1024c8f31f8dd627ada9cc4bdd870f5b8ae5525898e72e393a13f6b67323ef
4
+ data.tar.gz: 3bc2703302d421779a968d298b218f47aca8f5c913848811a947c4fbb5293f3d
5
5
  SHA512:
6
- metadata.gz: 69293e53ca18d3007dac41d5998beb3d181ef323424612b0178d74f241e82aaa1ff53f10f4f5b1da8d4e7bc9e7543bdbfcc10689f46b61f33d56856e6518081e
7
- data.tar.gz: f3b7f81ba6f0d091f80a0be5b80c5f3fc340ee269f42bcd8b717031c16a2fa18dbfbe0c96574a7338ed191701c59f85080d17ddf162a907aad9a70c33832668d
6
+ metadata.gz: 6805b3d1c4c709b2fd50896d346bb135ed6a3bc5d24935ceef5e3792fbbdaca4635934087fee6d693e8b76f6ee0d601d79e74ee0e0f7e02a927bf4fe5d9dee1e
7
+ data.tar.gz: f16a61cb882858f8337a54ae2a2681a29d773f206b2f4b6cb1766f55bb4d46d9f15581a12611c36ac3db0bdabc52f411520c2327f70dd86fc5c0c9508a23b8d0
data/README.md CHANGED
@@ -49,7 +49,7 @@ upload_setapp_build(
49
49
  api_token: '...', # Your Setapp API token
50
50
  build_path: '...', # The path to archive with a new Setapp build
51
51
  release_notes: '...', # Text or path to a file that contains release notes for a new version
52
- version_status: review, # Version status. It can be `draft` or `review`
52
+ version_status: 'review', # Version status. It can be `draft` or `review`
53
53
  release_on_approval: true # Indicates whether Setapp must publish a new version after review
54
54
  )
55
55
  ```
@@ -12,7 +12,6 @@ module Fastlane
12
12
  release_on_approval = params[:release_on_approval]
13
13
  file_dir = File.dirname(__FILE__)
14
14
  UI.user_error!("Available options for version_status: [draft, review].") unless ['draft', 'review'].include?(version_status)
15
- UI.user_error!("Available options for release_on_approval: [true, false].") unless ['true', 'false'].include?(release_on_approval)
16
15
  UI.message("The build at path #{build_path} will be uploaded to Setapp")
17
16
  exit_code = system("bash #{file_dir}/../helper/setapp_build_uploader.sh --token #{api_token} --path #{build_path} --notes #{release_notes} --status #{version_status} --release-on-approval #{release_on_approval}")
18
17
  UI.user_error!("Uploading error occured. Try again.") if exit_code != true
@@ -73,7 +72,7 @@ module Fastlane
73
72
  env_name: "SETAPP_RELEASE_ON_APPROVAL",
74
73
  description: "Indicate whether Setapp must release new version automatically after review. Available options: `true`, `false`",
75
74
  optional: false,
76
- type: String
75
+ type: Boolean
77
76
  )
78
77
  ]
79
78
  end
@@ -99,7 +99,7 @@ function validate_server_response() {
99
99
  local response_code=${server_response##*HTTPSTATUS:}
100
100
  local response_body=$(echo ${server_response%%HTTPSTATUS*})
101
101
 
102
- if [ $response_code -eq 200 ]; then
102
+ if [ "$response_code" -ge 200 ] && [ "$response_code" -lt 300 ]; then
103
103
  echo "✅ The app version is uploaded. All checks are passed."
104
104
  elif [ $response_code -eq 401 ]; then
105
105
  die "⚠️ Something went wrong with your API token.\n${response_body}"
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Setapp
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-setapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Setapp Limited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-16 00:00:00.000000000 Z
11
+ date: 2023-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler