fastlane-plugin-browserstack 0.3.0 → 0.3.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: 55584378299e9edec8b0e2982d7c9f66941554625689d41af193718fa87d5440
4
- data.tar.gz: 115f1239640f5283712744662793952532c10300542038f4b90e84250515ccaf
3
+ metadata.gz: 0285ca4594a863c425e781f25bfbf4b438d205cd11610f54aae33a5fe0c81542
4
+ data.tar.gz: 2d0f0637ad9baa0364deded8cb3422f243f7440c52138dd236713042892a3315
5
5
  SHA512:
6
- metadata.gz: fbd5d95f8b12bacf1af867d90e24a72c859346ad38139530c60f741967b76034faa1fd9624fdcef0e636d806ff5478c94a7dc7479ac174d0154052d4028f6878
7
- data.tar.gz: f3bc87d0b59893d2dcae92af2cf934986033fc01c2d561ad80c83cc2b08e4d406763791a35aa7c26098ad7feb4f28c34fb215bda0c57d2119f2e336ab7a6f4a4
6
+ metadata.gz: 25d647f2033714ac168ec1d304244ac36d2c9b2e753852cc3032703d4749e441525c07540d9b58fb113e559794ceb6264b6ef7149aa5f5c917787d70de61054f
7
+ data.tar.gz: 0f2c887e47055200e0ad48717e7b3d2e61e66018494652afddeda70588e06237646e202c64113c9f0fed847c6e5bad326c8d5d9c7e0e3c8b83aad65dad695e7e
data/README.md CHANGED
@@ -10,10 +10,15 @@ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To
10
10
  fastlane add_plugin browserstack
11
11
  ```
12
12
 
13
- ## About browserstack
13
+ ## About
14
14
 
15
15
  Uploads IPA and APK files to BrowserStack for automation and manual testing.
16
16
 
17
+ ## Documentation
18
+
19
+ Refer [App Automate](https://www.browserstack.com/app-automate/appium/fastlane) and [App Live](https://www.browserstack.com/app-live/fastlane) for more information on using this plugin.
20
+
21
+
17
22
  ## Example
18
23
 
19
24
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by including that in your project's Fastfile, running `fastlane install_plugins` and `bundle exec fastlane test`.
@@ -14,14 +14,14 @@ module Fastlane
14
14
  def self.run(params)
15
15
  browserstack_username = params[:browserstack_username] # Required
16
16
  browserstack_access_key = params[:browserstack_access_key] # Required
17
- browserstack_custom_id = params[:browserstack_custom_id]
17
+ custom_id = params[:custom_id]
18
18
  file_path = params[:file_path].to_s # Required
19
19
 
20
20
  validate_file_path(file_path)
21
21
 
22
22
  UI.message("Uploading app to BrowserStack AppAutomate...")
23
23
 
24
- browserstack_app_id = Helper::BrowserstackHelper.upload_file(browserstack_username, browserstack_access_key, file_path, UPLOAD_API_ENDPOINT, browserstack_custom_id)
24
+ browserstack_app_id = Helper::BrowserstackHelper.upload_file(browserstack_username, browserstack_access_key, file_path, UPLOAD_API_ENDPOINT, custom_id)
25
25
 
26
26
  # Set 'BROWSERSTACK_APP_ID' environment variable, if app upload was successful.
27
27
  ENV['BROWSERSTACK_APP_ID'] = browserstack_app_id
@@ -90,8 +90,8 @@ module Fastlane
90
90
  verify_block: proc do |value|
91
91
  UI.user_error!("No browserstack_access_key given.") if value.to_s.empty?
92
92
  end),
93
- FastlaneCore::ConfigItem.new(key: :browserstack_custom_id,
94
- description: "BrowserStack's custom id",
93
+ FastlaneCore::ConfigItem.new(key: :custom_id,
94
+ description: "Custom id",
95
95
  optional: true,
96
96
  is_string: true),
97
97
  FastlaneCore::ConfigItem.new(key: :file_path,
@@ -17,17 +17,17 @@ module Fastlane
17
17
  # Params :
18
18
  # +browserstack_username+:: BrowserStack's username.
19
19
  # +browserstack_access_key+:: BrowserStack's access key.
20
- # +browserstack_custom_id+:: BrowserStacks's custom id.
20
+ # +custom_id+:: Custom id for app upload.
21
21
  # +file_path+:: Path to the file to be uploaded.
22
22
  # +url+:: BrowserStack's app upload endpoint.
23
- def self.upload_file(browserstack_username, browserstack_access_key, file_path, url, browserstack_custom_id = nil)
23
+ def self.upload_file(browserstack_username, browserstack_access_key, file_path, url, custom_id = nil)
24
24
  payload = {
25
25
  multipart: true,
26
26
  file: File.new(file_path, 'rb')
27
27
  }
28
28
 
29
- unless browserstack_custom_id.nil?
30
- payload[:data] = '{ "custom_id": "' + browserstack_custom_id + '" }'
29
+ unless custom_id.nil?
30
+ payload[:data] = '{ "custom_id": "' + custom_id + '" }'
31
31
  end
32
32
 
33
33
  headers = {
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Browserstack
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-browserstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BrowserStack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-23 00:00:00.000000000 Z
11
+ date: 2019-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client