fastlane-plugin-shuttle 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
  SHA1:
3
- metadata.gz: 602fcbb57374635eb54413662526bb1cbb5eb92e
4
- data.tar.gz: 1337002082164db30a5e3dfe6a1edbd6d32497b7
3
+ metadata.gz: 9492c10290e30c6559803712506930fa272600c1
4
+ data.tar.gz: b5002587a8a6718f6166105567da7947646ff3ba
5
5
  SHA512:
6
- metadata.gz: ac11b3760899ffb20832691a6e1b61967b93e74ad07d950a219298fadfd1542134eaf0bc15629630c059544c53c94f7f301ded0488ce5f8cf75d5721ff8fdfc9
7
- data.tar.gz: cce1ed5253fbae930f1b660403f6e6b6325eaec4b71ab2846641d09dde957eade498f239c62f124ab7552069f54f1a43a70ff8a3b1ae025c91a709f421f89680
6
+ metadata.gz: fa7e6ea386c1ee6000e3582215285db0332c66b54816506f0bb4eaccc5dc64ce592d16a854a592b0bb6a352600ce0caa585bbb2a30c526b9145efffa3060998f
7
+ data.tar.gz: 421714cd3c7937b6457bbc4ce55840a70a25c296791de170e78e1870eda981ef1a5267679bce12a10771f7908d5edfd5e11afaa27df3a4290ea5594d2dc35bf2
data/README.md CHANGED
@@ -24,7 +24,7 @@ To get started, first, [obtain an API access token](https://docs.shuttle.tools/a
24
24
  url = shuttle(
25
25
  access_token: <shuttle access token>,
26
26
  package_path: <path to your IPA or APK binary file>,
27
- release_name: <release name displayed in shuttle>,
27
+ release_name: <release name displayed in Shuttle>,
28
28
  release_notes: <release notes>,
29
29
  base_url: "https://<your instance name>.shuttle.tools/")
30
30
  ```
@@ -32,8 +32,8 @@ url = shuttle(
32
32
  The action parameters `access_token` can be omitted when its value is [set as environment variables](https://docs.fastlane.tools/advanced/#environment-variables). Below a list of all available environment variables:
33
33
 
34
34
  - `SHUTTLE_ACCESS_TOKEN` - API Access Token for Shuttle API
35
- - `SHUTTLE_BASE_URL` - Shuttle instance URL (eg. https://<your instance name>.shuttle.tools/)
36
- - `SHUTTLE_RELEASE_NAME` - The name of the release (eg. MyApp v3)
35
+ - `SHUTTLE_BASE_URL` - Shuttle instance URL (eg. `https://<your instance name>.shuttle.tools/`)
36
+ - `SHUTTLE_RELEASE_NAME` - The name of the release (eg. `Sprint #14`)
37
37
  - `SHUTTLE_PACKAGE_PATH` - Build release path for android or ios build (if not provided, it'll check in shared values `GRADLE_APK_OUTPUT_PATH` or `IPA_OUTPUT_PATH`)
38
38
  - `SHUTTLE_ENV_ID` - The uniq ID of the app's environment you want to publish the build to (if not provided, it will try to guess it or ask to select/create it interactively then display the value so you can set it definitively)
39
39
  - `SHUTTLE_RELEASE_NOTES` - Release notes
@@ -91,7 +91,7 @@ module Fastlane
91
91
  type: String),
92
92
  FastlaneCore::ConfigItem.new(key: :release_name,
93
93
  env_name: "SHUTTLE_RELEASE_NAME",
94
- description: "The name of the release (eg. MyApp v3)",
94
+ description: "The name of the release (eg. Sprint #14)",
95
95
  optional: true,
96
96
  type: String),
97
97
  FastlaneCore::ConfigItem.new(key: :release_notes,
@@ -120,7 +120,7 @@ module Fastlane
120
120
  base_url: "https://myInstance.shuttle.tools",
121
121
  package_path: "./app.ipa",
122
122
  env_id: "UD6VCR-2X7TME-XSMZW6-MNXIR7",
123
- release_name: "My App v5.0-1",
123
+ release_name: "Sprint #14",
124
124
  release_notes: "Changelog"
125
125
  )'
126
126
  ]
@@ -49,7 +49,7 @@ module Fastlane
49
49
  return AppEnvironment.new(app, environment) if environment.package_id == package_info.id && app.platform_id == package_info.platform_id
50
50
 
51
51
  UI.important("App #{app.name} doesn't match the given build platform #{package_info.platform_id}, please check that #{env_id} is the correct environment ID.") unless app.platform_id == package_info.platform_id
52
- UI.important("Environement #{environment.name} with ID #{env_id} doesn't match the build's package ID #{package_info.id}, please check that you set the correct environment ID") unless environment.package_id == package_info.id
52
+ UI.important("Environment #{environment.name} with ID #{env_id} doesn't match the build's package ID #{package_info.id}, please check that you set the correct environment ID") unless environment.package_id == package_info.id
53
53
  return nil
54
54
  end
55
55
 
@@ -26,19 +26,11 @@ module Fastlane
26
26
  PackageInfo.new(app_info.identifier, app_info.name, package_path, app_info.os.downcase, app_info.release_version, app_info.build_version)
27
27
  end
28
28
 
29
- def self.get_release_name(params, app_environment, package_info)
30
- return params[:release_name] unless params[:release_name].to_s.empty?
31
- release_name = "#{app_environment.shuttle_app.name} v#{package_info.release_version}"
32
- if app_environment.shuttle_environment.versioning_id == "version_and_build"
33
- return "#{release_name}-#{package_info.build_version}"
34
- end
35
- return release_name
36
- end
37
-
38
29
  def self.get_release_info(params, app_environment, package_info)
39
- release_name = self.get_release_name(params, app_environment, package_info)
30
+ name = params[:release_name]
31
+ notes = params[:release_notes]
40
32
  commit_id = Helper.backticks("git show --format='%H' --quiet").chomp
41
- ReleaseInfo.new(release_name, params[:release_notes], nil, app_environment.shuttle_environment, commit_id)
33
+ ReleaseInfo.new(name, notes, nil, app_environment.shuttle_environment, commit_id)
42
34
  end
43
35
 
44
36
  def self.connection(shuttle_instance, endpoint, is_multipart = false)
@@ -46,6 +38,7 @@ module Fastlane
46
38
  # builder.response :logger, Logger.new(STDOUT), bodies: true
47
39
  builder.headers["Authorization"] = "Bearer #{shuttle_instance.access_token}"
48
40
  builder.headers["Accept"] = "application/vnd.api+json"
41
+ builder.options.timeout = 120
49
42
  if is_multipart
50
43
  builder.request :multipart
51
44
  else
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Shuttle
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-shuttle
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
  - Shuttle Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-15 00:00:00.000000000 Z
11
+ date: 2019-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: app-info