fastlane 2.51.0.beta.20170804010003 → 2.51.0.beta.20170805010003

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: 57c9884308f495d707942d16b436d4d0172037c2
4
- data.tar.gz: e7a1892b749733a8d963298da84a4f614b5527a6
3
+ metadata.gz: c80a60da667579980bad460738cbe5b059919917
4
+ data.tar.gz: 4357bd33a339313330880af387993c43f2f28c6f
5
5
  SHA512:
6
- metadata.gz: ee578a32307a0944d05cff1271695ab3f43207276ae37545129d81f5c7a73e294bc09e0f79b9063a6e1ae60abefd05f38012e4456558cd933d9d5888be9250db
7
- data.tar.gz: 4bad8baa4c401007a1f4fc9a23c5a6913c7089a6a0933fc14c9e62052ff91047235d9d97f3c41eed74b2c43b554446f2cc1873d1ad201572dad84434f475133f
6
+ metadata.gz: de777b2403bdd92db984ea1b8515a9183e13cfcea5430045956e486488a323a35ba50894add2fe7142dfd8f39c19bcbb3443d98afdbc54673f998a82c20384c6
7
+ data.tar.gz: 89d84c143b3b6838946a2a17c5e84f3db7b964a28bf40381feffb0ac0baccdf1ddc7646f3f70ad6c0f838954a54aeb4b9b8db8a401b4646f2cb01ecb43d22675
data/deliver/README.md CHANGED
@@ -153,7 +153,7 @@ Already using `deliver` and just updated to 1.0? Check out the [Migration Guide]
153
153
 
154
154
  A detailed description about how your credentials are handled is available in a [credentials_manager](https://github.com/fastlane/fastlane/tree/master/credentials_manager).
155
155
 
156
- ### How does this thing even work? Is magic involved? 🎩###
156
+ ### How does this thing even work? Is magic involved? 🎩
157
157
 
158
158
  Your password will be stored in the macOS keychain, but can also be passed using environment variables. (More information available on [CredentialsManager](https://github.com/fastlane/fastlane/tree/master/credentials_manager))
159
159
 
@@ -5,7 +5,7 @@ module Fastlane
5
5
 
6
6
  class AppetizeViewingUrlGeneratorAction < Action
7
7
  def self.run(params)
8
- link = "https://appetize.io/embed/#{params[:public_key]}"
8
+ link = "#{params[:base_url]}/#{params[:public_key]}"
9
9
 
10
10
  if params[:scale].nil? # sensible default values for scaling
11
11
  case params[:device].downcase.to_sym
@@ -27,6 +27,8 @@ module Fastlane
27
27
  url_params << "launchUrl=#{params[:launch_url]}" if params[:launch_url]
28
28
  url_params << "language=#{params[:language]}" if params[:language]
29
29
  url_params << "osVersion=#{params[:os_version]}" if params[:os_version]
30
+ url_params << "params=#{CGI.escape params[:params]}" if params[:params]
31
+ url_params << "proxy=#{CGI.escape params[:proxy]}" if params[:proxy]
30
32
 
31
33
  return link + "?" + url_params.join("&")
32
34
  end
@@ -57,6 +59,12 @@ module Fastlane
57
59
  UI.user_error!("You provided a private key to appetize, please provide the public key")
58
60
  end
59
61
  end),
62
+ FastlaneCore::ConfigItem.new(key: :base_url,
63
+ env_name: "APPETIZE_VIEWING_URL_GENERATOR_BASE",
64
+ description: "Base URL of Appetize service",
65
+ is_string: true,
66
+ default_value: "https://appetize.io/embed",
67
+ optional: true),
60
68
  FastlaneCore::ConfigItem.new(key: :device,
61
69
  env_name: "APPETIZE_VIEWING_URL_GENERATOR_DEVICE",
62
70
  description: "Device type: iphone4s, iphone5s, iphone6, iphone6plus, ipadair, iphone6s, iphone6splus, ipadair2, nexus5, nexus7 or nexus9",
@@ -103,6 +111,16 @@ module Fastlane
103
111
  env_name: "APPETIZE_VIEWING_URL_GENERATOR_OS_VERSION",
104
112
  description: "The operating system version on which to run your app, e.g. 10.3, 8.0",
105
113
  is_string: true,
114
+ optional: true),
115
+ FastlaneCore::ConfigItem.new(key: :params,
116
+ env_name: "APPETIZE_VIEWING_URL_GENERATOR_PARAMS",
117
+ description: "Specifiy params value to be passed to Appetize",
118
+ is_string: true,
119
+ optional: true),
120
+ FastlaneCore::ConfigItem.new(key: :proxy,
121
+ env_name: "APPETIZE_VIEWING_URL_GENERATOR_PROXY",
122
+ description: "Specify a HTTP proxy to be passed to Appetize",
123
+ is_string: true,
106
124
  optional: true)
107
125
  ]
108
126
  end
@@ -4,7 +4,7 @@ module Fastlane
4
4
  module Actions
5
5
  class ImportCertificateAction < Action
6
6
  def self.run(params)
7
- keychain_path = FastlaneCore::Helper.keychain_path(params[:keychain_name])
7
+ keychain_path = params[:keychain_path] || FastlaneCore::Helper.keychain_path(params[:keychain_name])
8
8
 
9
9
  FastlaneCore::KeychainImporter.import_file(params[:certificate_path], keychain_path, keychain_password: params[:keychain_password], certificate_password: params[:certificate_password], output: params[:log_output])
10
10
  end
@@ -19,6 +19,10 @@ module Fastlane
19
19
  env_name: "KEYCHAIN_NAME",
20
20
  description: "Keychain the items should be imported to",
21
21
  optional: false),
22
+ FastlaneCore::ConfigItem.new(key: :keychain_path,
23
+ env_name: "KEYCHAIN_PATH",
24
+ description: "Path to the Keychain file to which the items should be imported",
25
+ optional: true),
22
26
  FastlaneCore::ConfigItem.new(key: :keychain_password,
23
27
  env_name: "FL_IMPORT_CERT_KEYCHAIN_PASSWORD",
24
28
  description: "The password for the keychain. Note that for the login keychain this is your user's password",
@@ -118,10 +118,7 @@ module Fastlane
118
118
  require 'addressable/template'
119
119
  file_name = File.basename(file)
120
120
  expanded_url = Addressable::Template.new(url_template).expand(name: file_name).to_s
121
- headers = {}
122
- if File.extname(file_name).to_s.casecmp('.zip').zero?
123
- headers['Content-Type'] = 'application/zip'
124
- end
121
+ headers = { 'Content-Type' => 'application/zip' } # works for all binary files
125
122
  UI.important("Uploading #{file_name}")
126
123
  GithubApiAction.run(
127
124
  api_token: api_token,
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.51.0.beta.20170804010003'.freeze
2
+ VERSION = '2.51.0.beta.20170805010003'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  end
@@ -16,11 +16,11 @@ module PEM
16
16
  if existing_certificate
17
17
  remaining_days = (existing_certificate.expires - Time.now) / 60 / 60 / 24
18
18
  UI.message "Existing push notification profile for '#{existing_certificate.owner_name}' is valid for #{remaining_days.round} more days."
19
- if remaining_days > 30
19
+ if remaining_days > PEM.config[:active_days_limit]
20
20
  if PEM.config[:force]
21
21
  UI.success "You already have an existing push certificate, but a new one will be created since the --force option has been set."
22
22
  else
23
- UI.success "You already have a push certificate, which is active for more than 30 more days. No need to create a new one"
23
+ UI.success "You already have a push certificate, which is active for more than #{PEM.config[:active_days_limit]} more days. No need to create a new one"
24
24
  UI.success "If you still want to create a new one, use the --force option when running PEM."
25
25
  return false
26
26
  end
@@ -18,9 +18,16 @@ module PEM
18
18
  description: "Generate a p12 file additionally to a PEM file",
19
19
  is_string: false,
20
20
  default_value: true),
21
+ FastlaneCore::ConfigItem.new(key: :active_days_limit,
22
+ env_name: "PEM_ACTIVE_DAYS_LIMIT",
23
+ description: "If the current certificate is active for less than this number of days, generate a new one. Default value is 30 days",
24
+ default_value: 30,
25
+ verify_block: proc do |value|
26
+ UI.user_error!("Value of active_days_limit must be a positive integer or left blank") unless value.kind_of?(Integer) && value > 0
27
+ end),
21
28
  FastlaneCore::ConfigItem.new(key: :force,
22
29
  env_name: "PEM_FORCE",
23
- description: "Create a new push certificate, even if the current one is active for 30 more days",
30
+ description: "Create a new push certificate, even if the current one is active for 30 (or PEM_ACTIVE_DAYS_LIMIT) more days",
24
31
  is_string: false,
25
32
  default_value: false),
26
33
  FastlaneCore::ConfigItem.new(key: :save_private_key,
@@ -38,9 +38,10 @@ module Pilot
38
38
  def find_tester(options)
39
39
  start(options)
40
40
 
41
- tester = Spaceship::Tunes::Tester::Internal.find(config[:email])
42
- tester ||= Spaceship::Tunes::Tester::External.find(config[:email])
41
+ app_filter = (config[:apple_id] || config[:app_identifier])
42
+ app = find_app(app_filter: app_filter)
43
43
 
44
+ tester = find_app_tester(email: config[:email], app: app)
44
45
  UI.user_error!("Tester #{config[:email]} not found") unless tester
45
46
 
46
47
  describe_tester(tester)
@@ -50,11 +51,12 @@ module Pilot
50
51
  def remove_tester(options)
51
52
  start(options)
52
53
 
53
- tester = Spaceship::Tunes::Tester::External.find(config[:email])
54
- tester ||= Spaceship::Tunes::Tester::Internal.find(config[:email])
55
- UI.user_error!("Tester not found: #{config[:email]}") if tester.nil?
54
+ app_filter = (config[:apple_id] || config[:app_identifier])
55
+ app = find_app(app_filter: app_filter)
56
+
57
+ tester = find_app_tester(email: config[:email], app: app)
58
+ UI.user_error!("Tester #{config[:email]} not found") unless tester
56
59
 
57
- app = find_app(app_filter: config[:apple_id] || config[:app_identifier])
58
60
  unless app
59
61
  tester.delete!
60
62
  UI.success("Successfully removed tester #{tester.email} from Users and Roles")
@@ -223,7 +225,7 @@ module Pilot
223
225
  rows << ["Last name", tester.last_name]
224
226
  rows << ["Email", tester.email]
225
227
 
226
- if tester.groups.length > 0
228
+ if tester.groups.to_s.length > 0
227
229
  rows << ["Groups", tester.groups_list]
228
230
  end
229
231
 
@@ -232,7 +234,7 @@ module Pilot
232
234
  rows << ["Latest Install Date", tester.pretty_install_date]
233
235
  end
234
236
 
235
- if tester.devices.length == 0
237
+ if tester.devices.to_s.length == 0
236
238
  rows << ["Devices", "No devices"]
237
239
  else
238
240
  rows << ["#{tester.devices.count} Devices", ""]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.51.0.beta.20170804010003
4
+ version: 2.51.0.beta.20170805010003
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-08-04 00:00:00.000000000 Z
18
+ date: 2017-08-05 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier