fastlane-plugin-setapp 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 613aa7d761c259aca8e1f76481c55071004b502dcb1fdfe6bb55b4a034a84d8f
4
- data.tar.gz: 417ac731d88fee7060ee3b9b8ac58e90f433a3d010418fcb61690ffc9a6b58ee
3
+ metadata.gz: 2ebcd0329e2cf88ee87fa50ba0bd11552e56071cba874314e3261b74690ccbbf
4
+ data.tar.gz: 7279088098b1a1169b8e37c758143cf6300f7bd58c2f2f10c8458b57e1f9b1d0
5
5
  SHA512:
6
- metadata.gz: 69293e53ca18d3007dac41d5998beb3d181ef323424612b0178d74f241e82aaa1ff53f10f4f5b1da8d4e7bc9e7543bdbfcc10689f46b61f33d56856e6518081e
7
- data.tar.gz: f3b7f81ba6f0d091f80a0be5b80c5f3fc340ee269f42bcd8b717031c16a2fa18dbfbe0c96574a7338ed191701c59f85080d17ddf162a907aad9a70c33832668d
6
+ metadata.gz: 5eefc26ef409d9186720eb309877ac32c22907012eec7290298c2669ff070dffb7252cab22a24c8af292d7e54e0a5048c7fdf675e3785b9052d290cb1edf2bc4
7
+ data.tar.gz: 610b515fa89f178a13f77ea2609bb32684be716222b4fd25bc3c3c6d0166b2a0d585a07a0b3c5eb0ae25f5cb4dec7c6e9619a155af224cc892edca5440852a24
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 -eq 202 ]; 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.1"
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.1
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-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler