fastlane 2.26.1 → 2.27.0.beta.20170407010056

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/cert/lib/cert/options.rb +10 -0
  3. data/cert/lib/cert/runner.rb +9 -2
  4. data/credentials_manager/lib/credentials_manager/appfile_config.rb +1 -1
  5. data/deliver/lib/deliver/setup.rb +1 -1
  6. data/fastlane/lib/fastlane/action.rb +1 -1
  7. data/fastlane/lib/fastlane/actions/badge.rb +1 -1
  8. data/fastlane/lib/fastlane/actions/copy_artifacts.rb +1 -1
  9. data/fastlane/lib/fastlane/actions/ensure_git_status_clean.rb +1 -1
  10. data/fastlane/lib/fastlane/actions/git_branch.rb +1 -1
  11. data/fastlane/lib/fastlane/actions/gradle.rb +1 -1
  12. data/fastlane/lib/fastlane/actions/hg_ensure_clean_status.rb +1 -1
  13. data/fastlane/lib/fastlane/actions/pod_lib_lint.rb +2 -2
  14. data/fastlane/lib/fastlane/actions/slack.rb +1 -1
  15. data/fastlane/lib/fastlane/plugins/plugin_manager.rb +1 -1
  16. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +1 -1
  17. data/fastlane/lib/fastlane/setup/setup_android.rb +1 -1
  18. data/fastlane/lib/fastlane/version.rb +1 -1
  19. data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +1 -1
  20. data/fastlane_core/lib/fastlane_core/helper.rb +1 -1
  21. data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +2 -2
  22. data/fastlane_core/lib/fastlane_core/ui/ui.rb +1 -1
  23. data/gym/lib/gym/error_handler.rb +1 -1
  24. data/sigh/lib/assets/resign.sh +1 -1
  25. data/sigh/lib/sigh/runner.rb +1 -1
  26. data/snapshot/lib/snapshot/runner.rb +2 -2
  27. data/spaceship/lib/spaceship/tunes/language_converter.rb +2 -2
  28. metadata +17 -20
  29. data/fastlane/lib/.DS_Store +0 -0
  30. data/fastlane/lib/assets/.DS_Store +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47e42ebb924cb29d6e9b5b4cb3883e5aa38e1d48
4
- data.tar.gz: 0f8319c2f3fcf9c6adcffc3585fd3d2e426c7a05
3
+ metadata.gz: 6502a7c316054d2b6b5f35a4e1269a6a4208a5a7
4
+ data.tar.gz: dff21654e7928f0921921d3b1dbacfa6139df6fe
5
5
  SHA512:
6
- metadata.gz: 8dfaf944648a8b236959c526ff963fec16d4b85c673b8d00bed14d6a3d4b08e026c81ca2ae2b29de85ec11ecf77acb40be638720ac42c2f8662c5e534d6e22bc
7
- data.tar.gz: 786b84b3a96be5ac63697ebf77d14a64dd7d5afe9f0797e9b6f7753a2c6bfd63e5183a0300c9e599bf9d3e8aabdf09c926c7b402b41756703342abdc1a9ea763
6
+ metadata.gz: bdfe08b7f4ed7b1cd30d1bce2426f577ef65ea198e41024023741a21695c6111f5abc646c598d1f201599385794872602d7c9f631d9fca5b69262b432b0790f0
7
+ data.tar.gz: fbaa8c38e35c9e0de0b221e1851569e13efaaf63141cf679348256d136fdb0a2d04898dd487b505319902fa42a175841106aa403f03bdba9709b6551e2f6d3ff
@@ -13,6 +13,16 @@ module Cert
13
13
  description: "Create a development certificate instead of a distribution one",
14
14
  is_string: false,
15
15
  default_value: false),
16
+ FastlaneCore::ConfigItem.new(key: :generate_p12,
17
+ env_name: "CERT_GENERATE_P12_FILE",
18
+ description: "Generate a p12 file additionally to a PEM file",
19
+ is_string: false,
20
+ default_value: false),
21
+ FastlaneCore::ConfigItem.new(key: :p12_password,
22
+ env_name: "CERT_P12_PASSWORD",
23
+ sensitive: true,
24
+ description: "The password that is used for your p12 file",
25
+ default_value: ""),
16
26
  FastlaneCore::ConfigItem.new(key: :force,
17
27
  env_name: "CERT_FORCE",
18
28
  description: "Create a certificate even if an existing certificate exists",
@@ -109,7 +109,7 @@ module Cert
109
109
  UI.error "Certificate #{certificate.id} (#{certificate.name}) can't be found on your local computer"
110
110
  end
111
111
 
112
- File.delete(path) # as apparently this certificate is pretty useless without a private key
112
+ File.delete(path) # as apparantly this certificate is pretty useless without a private key
113
113
  end
114
114
 
115
115
  UI.important "Couldn't find an existing certificate... creating a new one"
@@ -160,11 +160,18 @@ module Cert
160
160
  request_path = File.expand_path(File.join(Cert.config[:output_path], "#{certificate.id}.certSigningRequest"))
161
161
  File.write(request_path, csr.to_pem)
162
162
 
163
- private_key_path = File.expand_path(File.join(Cert.config[:output_path], "#{certificate.id}.p12"))
163
+ private_key_path = File.expand_path(File.join(Cert.config[:output_path], "#{certificate.id}.pkey"))
164
164
  File.write(private_key_path, pkey)
165
165
 
166
166
  cert_path = store_certificate(certificate)
167
167
 
168
+ if Cert.config[:generate_p12]
169
+ p12_cert_path = File.expand_path(File.join(Cert.config[:output_path], "#{certificate.id}.p12"))
170
+ p12 = OpenSSL::PKCS12.create(Cert.config[:p12_password], type_name, pkey, certificate.download)
171
+ File.write(p12_cert_path, p12.to_der)
172
+ UI.success "p12 certificate: #{p12_cert_path}"
173
+ end
174
+
168
175
  # Import all the things into the Keychain
169
176
  keychain = File.expand_path(Cert.config[:keychain_path])
170
177
  password = Cert.config[:keychain_password]
@@ -168,7 +168,7 @@ module CredentialsManager
168
168
  # platform_name - Symbol representing a platform name.
169
169
  # block - Block to execute to override configuration values.
170
170
  #
171
- # Discussion If received platform name does not match the platform name available as environment variable, no changes will
171
+ # Discussion If received paltform name does not match the platform name available as environment variable, no changes will
172
172
  # be applied.
173
173
  def for_platform(platform_name)
174
174
  if ENV["FASTLANE_PLATFORM_NAME"] == platform_name.to_s
@@ -21,7 +21,7 @@ module Deliver
21
21
  UI.success("Successfully created new Deliverfile at path '#{file_path}'")
22
22
  end
23
23
 
24
- # This method takes care of creating a new 'deliver' folder, containing the app metadata
24
+ # This method takes care of creating a new 'deliver' folder, containg the app metadata
25
25
  # and screenshots folders
26
26
  def generate_deliver_file(deliver_path, options)
27
27
  v = options[:app].latest_version
@@ -98,7 +98,7 @@ module Fastlane
98
98
  Fastlane::Actions.sh_control_output(command, print_command: print_command, print_command_output: print_command_output, error_callback: error_callback)
99
99
  end
100
100
 
101
- # Documentation category, available values defined in AVAILABLE_CATEGORIES
101
+ # Documentation category, availabe values defined in AVAILABLE_CATEGORIES
102
102
  def self.category
103
103
  :undefined
104
104
  end
@@ -124,7 +124,7 @@ module Fastlane
124
124
  is_string: true),
125
125
  FastlaneCore::ConfigItem.new(key: :shield_no_resize,
126
126
  env_name: "FL_BADGE_SHIELD_NO_RESIZE",
127
- description: "Shield image will no longer be resized to aspect fill the full icon. Instead it will only be shrunk to not exceed the icon graphic",
127
+ description: "Shield image will no longer be resized to aspect fill the full icon. Instead it will only be shrinked to not exceed the icon graphic",
128
128
  optional: true,
129
129
  is_string: false,
130
130
  verify_block: proc do |value|
@@ -25,7 +25,7 @@ module Fastlane
25
25
  missing = artifacts.reject { |a| File.exist?(a) }
26
26
  UI.user_error! "Not all files were present in copy artifacts. Missing #{missing.join(', ')}" unless missing.empty?
27
27
  else
28
- # If we don't fail on non-existent files, don't try to copy non-existent files
28
+ # If we don't fail on non-existant files, don't try to copy non-existant files
29
29
  artifacts.select! { |artifact| File.exist?(artifact) }
30
30
  end
31
31
 
@@ -13,7 +13,7 @@ module Fastlane
13
13
  UI.success('Git status is clean, all good! 💪')
14
14
  Actions.lane_context[SharedValues::GIT_REPO_WAS_CLEAN_ON_START] = true
15
15
  else
16
- UI.user_error!("Git repository is dirty! Please ensure the repo is in a clean state by committing/stashing/discarding all changes first.")
16
+ UI.user_error!("Git repository is dirty! Please ensure the repo is in a clean state by commiting/stashing/discarding all changes first.")
17
17
  end
18
18
  end
19
19
 
@@ -15,7 +15,7 @@ module Fastlane
15
15
  #####################################################
16
16
 
17
17
  def self.description
18
- "Returns the name of the current git branch, possibly as managed by CI ENV vars"
18
+ "Returns the name of the current git branch, possibly as controled by CI ENV vars"
19
19
  end
20
20
 
21
21
  def self.details
@@ -127,7 +127,7 @@ module Fastlane
127
127
  is_string: false),
128
128
  FastlaneCore::ConfigItem.new(key: :serial,
129
129
  env_name: 'FL_ANDROID_SERIAL',
130
- description: 'Android serial, which device should be used for this command',
130
+ description: 'Android serial, wich device should be used for this command',
131
131
  is_string: true,
132
132
  default_value: ''),
133
133
  FastlaneCore::ConfigItem.new(key: :print_command,
@@ -12,7 +12,7 @@ module Fastlane
12
12
  UI.success('Mercurial status is clean, all good! 😎')
13
13
  Actions.lane_context[SharedValues::HG_REPO_WAS_CLEAN_ON_START] = true
14
14
  else
15
- UI.user_error!('Mercurial repository is dirty! Please ensure the repo is in a clean state by committing/stashing/discarding all changes first.')
15
+ UI.user_error!('Mercurial repository is dirty! Please ensure the repo is in a clean state by commiting/stashing/discarding all changes first.')
16
16
  end
17
17
  end
18
18
 
@@ -50,7 +50,7 @@ module Fastlane
50
50
  is_string: false,
51
51
  default_value: true),
52
52
  FastlaneCore::ConfigItem.new(key: :verbose,
53
- description: "Allow output detail in console",
53
+ description: "Allow ouput detail in console",
54
54
  optional: true,
55
55
  is_string: false),
56
56
  FastlaneCore::ConfigItem.new(key: :allow_warnings,
@@ -101,7 +101,7 @@ module Fastlane
101
101
  def self.example_code
102
102
  [
103
103
  'pod_lib_lint',
104
- '# Allow output detail in console
104
+ '# Allow ouput detail in console
105
105
  pod_lib_lint(verbose: true)',
106
106
  '# Allow warnings during pod lint
107
107
  pod_lib_lint(allow_warnings: true)',
@@ -46,7 +46,7 @@ module Fastlane
46
46
  UI.success('Successfully sent Slack notification')
47
47
  else
48
48
  UI.verbose(result)
49
- UI.user_error!("Error pushing Slack message, maybe the integration has no permission to post on this channel? Try removing the channel parameter in your Fastfile, this is usually caused by a misspelled or changed group/channel name or an expired SLACK_URL")
49
+ UI.user_error!("Error pushing Slack message, maybe the integration has no permission to post on this channel? Try removing the channel parameter in your Fastfile, this is usually caused by a mispelled or changed group/channel name or an expired SLACK_URL")
50
50
  end
51
51
  end
52
52
 
@@ -220,7 +220,7 @@ module Fastlane
220
220
  UI.important("fastlane will create a new Gemfile at path '#{path_to_gemfile}'")
221
221
  end
222
222
 
223
- UI.important("This change is necessary for fastlane plugins to work")
223
+ UI.important("This change is neccessary for fastlane plugins to work")
224
224
 
225
225
  unless UI.confirm("Should fastlane modify the Gemfile at path '#{path_to_gemfile}' for you?")
226
226
  UI.important("Please add the following code to '#{path_to_gemfile}':")
@@ -56,7 +56,7 @@ Style/NumericLiteralPrefix:
56
56
  Style/TernaryParentheses:
57
57
  Enabled: false
58
58
 
59
- # sometimes it is useful to have those empty methods
59
+ # sometimes it is usefull to have those empty methods
60
60
  Style/EmptyMethod:
61
61
  Enabled: false
62
62
 
@@ -1,7 +1,7 @@
1
1
  module Fastlane
2
2
  class SetupAndroid < Setup
3
3
  def run
4
- response = UI.confirm('Do you have everything committed in version control? If not please do so now!')
4
+ response = UI.confirm('Do you have everything commited in version control? If not please do so now!')
5
5
  return unless response
6
6
 
7
7
  FastlaneCore::FastlaneFolder.create_folder! unless Helper.is_test?
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.26.1'.freeze
2
+ VERSION = '2.27.0.beta.20170407010056'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -156,7 +156,7 @@ module FastlaneCore
156
156
  # Take a look at how `gym` uses this method
157
157
  #
158
158
  # @param config_file_name [String] The name of the configuration file to use (optional)
159
- # @param block_for_missing [Block] A ruby block that is called when there is an unknown method
159
+ # @param block_for_missing [Block] A ruby block that is called when there is an unkonwn method
160
160
  # in the configuration file
161
161
  def load_configuration_file(config_file_name = nil, block_for_missing = nil)
162
162
  return unless config_file_name
@@ -178,7 +178,7 @@ module FastlaneCore
178
178
  end
179
179
 
180
180
  def self.keychain_path(name)
181
- # Existing code expects that a keychain name will be expanded into a default path to Library/Keychains
181
+ # Existing code expects that a keychain name will be expanded into a default path to Libary/Keychains
182
182
  # in the user's home directory. However, this will not allow the user to pass an absolute path
183
183
  # for the keychain value
184
184
  #
@@ -306,7 +306,7 @@ module FastlaneCore
306
306
  # @param dir [String] the path in which the package file should be stored
307
307
  # @return (Bool) True if everything worked fine
308
308
  # @raise [Deliver::TransporterTransferError] when something went wrong
309
- # when transferring
309
+ # when transfering
310
310
  def download(app_id, dir = nil)
311
311
  dir ||= "/tmp"
312
312
 
@@ -340,7 +340,7 @@ module FastlaneCore
340
340
  # @param dir [String] the path in which the package file is located
341
341
  # @return (Bool) True if everything worked fine
342
342
  # @raise [Deliver::TransporterTransferError] when something went wrong
343
- # when transferring
343
+ # when transfering
344
344
  def upload(app_id, dir)
345
345
  actual_dir = File.join(dir, "#{app_id}.itmsp")
346
346
 
@@ -7,7 +7,7 @@ module FastlaneCore
7
7
  end
8
8
 
9
9
  def self.method_missing(method_sym, *args, &_block)
10
- # not using `responds` because we don't care about methods like .to_s and so on
10
+ # not using `responds` beacuse we don't care about methods like .to_s and so on
11
11
  interface_methods = Interface.instance_methods - Object.instance_methods
12
12
  UI.user_error!("Unknown method '#{method_sym}', supported #{interface_methods}") unless interface_methods.include?(method_sym)
13
13
 
@@ -108,7 +108,7 @@ module Gym
108
108
  UI.error("You enabled the legacy build API in _gym_")
109
109
  UI.error("This option has been deprecated for about a year")
110
110
  UI.error("and was removed with Xcode 8.3")
111
- UI.error("Please update your Fastfile to include the export_method too")
111
+ UI.error("Please update your Fastfile to include the export_type too")
112
112
  UI.error("more information about how to migrate away: https://github.com/fastlane/fastlane/releases/tag/2.24.0")
113
113
  UI.user_error!("Build failed. Please remove the `use_legacy_build_api` option in your Fastfile and try again", error_info: output)
114
114
  end
@@ -493,7 +493,7 @@ function resign {
493
493
  log "Profile team identifier is '$TEAM_IDENTIFIER'"
494
494
  fi
495
495
 
496
- # Make a copy of old embedded provisioning profile for further use
496
+ # Make a copy of old embedded provisioning profile for futher use
497
497
  cp -f "$APP_PATH/embedded.mobileprovision" "$TEMP_DIR/old-embedded.mobileprovision"
498
498
 
499
499
  # Replace embedded provisioning profile with new file
@@ -101,7 +101,7 @@ module Sigh
101
101
  return results.find_all do |current_profile|
102
102
  installed = false
103
103
 
104
- # Attempts to download all certificates from this profile
104
+ # Attempts to download all certificats from this profile
105
105
  # for checking if they are installed.
106
106
  # `cert.download_raw` can fail if the user is a
107
107
  # "member" and not an a "admin"
@@ -71,7 +71,7 @@ module Snapshot
71
71
  end
72
72
 
73
73
  # This is its own method so that it can re-try if the tests fail randomly
74
- # @return true/false depending on if the tests succeeded
74
+ # @return true/false depending on if the tests succeded
75
75
  def run_for_device_and_language(language, locale, device, launch_arguments, retries = 0)
76
76
  return launch(language, locale, device, launch_arguments)
77
77
  rescue => ex
@@ -133,7 +133,7 @@ module Snapshot
133
133
  puts ""
134
134
  end
135
135
 
136
- # Returns true if it succeeded
136
+ # Returns true if it succeded
137
137
  def launch(language, locale, device_type, launch_arguments)
138
138
  screenshots_path = TestCommandGenerator.derived_data_path
139
139
  FileUtils.rm_rf(File.join(screenshots_path, "Logs"))
@@ -20,7 +20,7 @@ module Spaceship
20
20
  (result || {}).fetch('name', nil)
21
21
  end
22
22
 
23
- # Converts the language "UK English" (user facing) to "English_UK" (value)
23
+ # Converts the langauge "UK English" (user facing) to "English_UK" (value)
24
24
  def from_itc_readable_to_itc(from)
25
25
  readable_mapping.each do |key, value|
26
26
  return key if value == from
@@ -28,7 +28,7 @@ module Spaceship
28
28
  nil
29
29
  end
30
30
 
31
- # Converts the language "English_UK" (value) to "UK English" (user facing)
31
+ # Converts the langauge "English_UK" (value) to "UK English" (user facing)
32
32
  def from_itc_to_itc_readable(from)
33
33
  readable_mapping[from]
34
34
  end
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.26.1
4
+ version: 2.27.0.beta.20170407010056
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2017-04-08 00:00:00.000000000 Z
17
+ date: 2017-04-07 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: slack-notifier
@@ -753,8 +753,6 @@ files:
753
753
  - deliver/lib/deliver/upload_price_tier.rb
754
754
  - deliver/lib/deliver/upload_screenshots.rb
755
755
  - fastlane/README.md
756
- - fastlane/lib/.DS_Store
757
- - fastlane/lib/assets/.DS_Store
758
756
  - fastlane/lib/assets/Actions.md.erb
759
757
  - fastlane/lib/assets/AppfileTemplate
760
758
  - fastlane/lib/assets/AppfileTemplateAndroid
@@ -1299,23 +1297,23 @@ metadata:
1299
1297
  post_install_message:
1300
1298
  rdoc_options: []
1301
1299
  require_paths:
1302
- - cert/lib
1303
- - credentials_manager/lib
1304
- - deliver/lib
1305
- - fastlane/lib
1300
+ - supply/lib
1306
1301
  - fastlane_core/lib
1307
- - frameit/lib
1308
- - gym/lib
1309
1302
  - match/lib
1310
- - pem/lib
1311
- - pilot/lib
1303
+ - cert/lib
1312
1304
  - produce/lib
1313
- - scan/lib
1314
- - screengrab/lib
1315
- - sigh/lib
1316
1305
  - snapshot/lib
1306
+ - sigh/lib
1307
+ - deliver/lib
1308
+ - screengrab/lib
1317
1309
  - spaceship/lib
1318
- - supply/lib
1310
+ - pilot/lib
1311
+ - pem/lib
1312
+ - fastlane/lib
1313
+ - scan/lib
1314
+ - credentials_manager/lib
1315
+ - gym/lib
1316
+ - frameit/lib
1319
1317
  required_ruby_version: !ruby/object:Gem::Requirement
1320
1318
  requirements:
1321
1319
  - - ">="
@@ -1323,15 +1321,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
1323
1321
  version: 2.0.0
1324
1322
  required_rubygems_version: !ruby/object:Gem::Requirement
1325
1323
  requirements:
1326
- - - ">="
1324
+ - - ">"
1327
1325
  - !ruby/object:Gem::Version
1328
- version: '0'
1326
+ version: 1.3.1
1329
1327
  requirements: []
1330
1328
  rubyforge_project:
1331
- rubygems_version: 2.6.10
1329
+ rubygems_version: 2.4.5.2
1332
1330
  signing_key:
1333
1331
  specification_version: 4
1334
1332
  summary: The easiest way to automate beta deployments and releases for your iOS and
1335
1333
  Android apps
1336
1334
  test_files: []
1337
- has_rdoc:
Binary file
Binary file