fastlane 2.39.0.beta.20170614010012 → 2.39.0.beta.20170615010031

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 295c2d8d4545f7f8c59a6f90160ea85260312d44
4
- data.tar.gz: cdbcd96a54341a4861d359a8092360098ac4aaae
3
+ metadata.gz: c8992068d4d8b4e37fb8ae171302c6ffe3609e03
4
+ data.tar.gz: 2b726ed31014dd7194bef1eb15b59bf7d0c15a98
5
5
  SHA512:
6
- metadata.gz: d3ae3cdc1be6c4c7c0130db181e842685408edfd0344dc1b92bbdd6ac0ec2d1e1c40fc2a778549fb50318bf088a8952e1cb9cc120abe4cfef5912eb0674ed723
7
- data.tar.gz: 95e5cc12d9711a2baea78e22b69bb433fb6a6282bfc808eb7f28ccdb63fa4c9d192983e853f012a8c110c39216d51a23940ca8d457dcebdb9906d8aced376271
6
+ metadata.gz: 283fd2fb8bb64aa9c5b659c1baac08ff1d06f648f4f83fa6f7bfa346b82b2e6dec5bdafe48ebb8b2d47a1aadd64c7b333dbb9a98778dde80da023c96db30db59
7
+ data.tar.gz: 16c95ff265ccbbf79bff1d8ebd517f512c28bc574f89180a1b7e3ae6e3a379a0ece1a498eaaf8dd88aa452297a23c58ed7293d09fe5e9b75713a013e50415d93
@@ -35,7 +35,6 @@ module Deliver
35
35
  res
36
36
  end
37
37
 
38
- # rubocop:disable Metrics/PerceivedComplexity
39
38
  def run
40
39
  program :name, 'deliver'
41
40
  program :version, Fastlane::VERSION
@@ -135,7 +134,7 @@ module Deliver
135
134
  options = FastlaneCore::Configuration.create(deliverfile_options(skip_verification: true), options.__hash__)
136
135
  options.load_configuration_file("Deliverfile")
137
136
  Deliver::Runner.new(options, skip_version: true) # to login...
138
- containing = FastlaneCore::Helper.fastlane_enabled? ? FastlaneCore::FastlaneFolder.path : '.'
137
+ containing = FastlaneCore::Helper.fastlane_enabled_folder_path
139
138
  path = options[:screenshots_path] || File.join(containing, 'screenshots')
140
139
  Deliver::DownloadScreenshots.run(options, path)
141
140
  end
@@ -151,7 +150,7 @@ module Deliver
151
150
  options = FastlaneCore::Configuration.create(deliverfile_options(skip_verification: true), options.__hash__)
152
151
  options.load_configuration_file("Deliverfile")
153
152
  Deliver::Runner.new(options) # to login...
154
- containing = FastlaneCore::Helper.fastlane_enabled? ? FastlaneCore::FastlaneFolder.path : '.'
153
+ containing = FastlaneCore::Helper.fastlane_enabled_folder_path
155
154
  path = options[:metadata_path] || File.join(containing, 'metadata')
156
155
  res = Deliver::CommandsGenerator.force_overwrite_metadata?(options, path)
157
156
  return 0 unless res
@@ -1,7 +1,9 @@
1
+ require 'fastlane_core'
2
+
1
3
  module Deliver
2
4
  class Setup
3
5
  def run(options)
4
- containing = (File.directory?("fastlane") ? 'fastlane' : '.')
6
+ containing = FastlaneCore::Helper.fastlane_enabled_folder_path
5
7
  file_path = File.join(containing, 'Deliverfile')
6
8
  data = generate_deliver_file(containing, options)
7
9
  setup_deliver(file_path, data, containing, options)
@@ -75,6 +75,7 @@ module Fastlane
75
75
  FastlaneCore::ConfigItem.new(key: :path,
76
76
  env_name: "FL_PROJECT_SIGNING_PROJECT_PATH",
77
77
  description: "Path to your Xcode project",
78
+ default_value: Dir['*.xcodeproj'].first,
78
79
  verify_block: proc do |value|
79
80
  UI.user_error!("Path is invalid") unless File.exist?(File.expand_path(value))
80
81
  end),
@@ -190,6 +190,15 @@ module Fastlane
190
190
  'commit_version_bump(
191
191
  message: "Version Bump", # create a commit with a custom message
192
192
  xcodeproj: "./path/to/MyProject.xcodeproj", # optional, if you have multiple Xcode project files, you must specify your main project here
193
+ )',
194
+ 'commit_version_bump(
195
+ settings: true # Include Settings.bundle/Root.plist
196
+ )',
197
+ 'commit_version_bump(
198
+ settings: "About.plist" # Include Settings.bundle/About.plist
199
+ )',
200
+ 'commit_version_bump(
201
+ settings: %w[About.plist Root.plist] # Include more than one plist from Settings.bundle
193
202
  )'
194
203
  ]
195
204
  end
@@ -216,8 +225,7 @@ module Fastlane
216
225
  settings_bundle = project.files.find { |f| f.path =~ /Settings.bundle/ }
217
226
  raise "No Settings.bundle in project" if settings_bundle.nil?
218
227
 
219
- project_parent = File.dirname project.path
220
- File.join(project_parent, settings_bundle.path, settings_file_name)
228
+ File.join(settings_bundle.real_path, settings_file_name)
221
229
  end
222
230
  end
223
231
  end
@@ -22,6 +22,8 @@ module Fastlane
22
22
  escaped_path = keychain_path.shellescape
23
23
  escaped_password = params[:password].shellescape
24
24
 
25
+ # Log the full path, useful for troubleshooting
26
+ UI.message("Unlocking keychain at path: #{escaped_path}")
25
27
  # unlock given keychain and disable lock and timeout
26
28
  commands << Fastlane::Actions.sh("security unlock-keychain -p #{escaped_password} #{escaped_path}", log: false)
27
29
  commands << Fastlane::Actions.sh("security set-keychain-settings #{escaped_path}", log: false)
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.39.0.beta.20170614010012'.freeze
2
+ VERSION = '2.39.0.beta.20170615010031'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -208,7 +208,7 @@ module FastlaneCore
208
208
  keychain_paths << "#{location}.keychain"
209
209
  end
210
210
 
211
- keychain_path = keychain_paths.find { |path| File.exist?(path) }
211
+ keychain_path = keychain_paths.find { |path| File.file?(path) }
212
212
  UI.user_error!("Could not locate the provided keychain. Tried:\n\t#{keychain_paths.join("\n\t")}") unless keychain_path
213
213
  keychain_path
214
214
  end
@@ -240,6 +240,11 @@ module FastlaneCore
240
240
  @enabled ||= !FastlaneCore::FastlaneFolder.path.nil?
241
241
  end
242
242
 
243
+ # Checks if fastlane is enabled for this project and returns the folder where the configuration lives
244
+ def self.fastlane_enabled_folder_path
245
+ fastlane_enabled? ? FastlaneCore::FastlaneFolder.path : '.'
246
+ end
247
+
243
248
  # <b>DEPRECATED:</b> Use the `ROOT` constant from the appropriate tool module instead
244
249
  # e.g. File.join(Sigh::ROOT, 'lib', 'assets', 'resign.sh')
245
250
  #
@@ -46,7 +46,7 @@ module Gym
46
46
  c.syntax = "fastlane gym init"
47
47
  c.description = "Creates a new Gymfile for you"
48
48
  c.action do |_args, options|
49
- containing = (File.directory?("fastlane") ? 'fastlane' : '.')
49
+ containing = FastlaneCore::Helper.fastlane_enabled_folder_path
50
50
  path = File.join(containing, Gym.gymfile_name)
51
51
  UI.user_error! "Gymfile already exists" if File.exist?(path)
52
52
  template = File.read("#{Gym::ROOT}/lib/assets/GymfileTemplate")
@@ -1,4 +1,5 @@
1
1
  require 'commander'
2
+ require 'fastlane_core'
2
3
  require 'fastlane/version'
3
4
 
4
5
  HighLine.track_eof = false
@@ -60,7 +61,7 @@ module Match
60
61
  c.syntax = 'fastlane match init'
61
62
  c.description = 'Create the Matchfile for you'
62
63
  c.action do |args, options|
63
- containing = (File.directory?("fastlane") ? 'fastlane' : '.')
64
+ containing = FastlaneCore::Helper.fastlane_enabled_folder_path
64
65
  path = File.join(containing, "Matchfile")
65
66
 
66
67
  if File.exist?(path)
@@ -45,7 +45,7 @@ module Scan
45
45
  c.syntax = "fastlane scan init"
46
46
  c.description = "Creates a new Scanfile for you"
47
47
  c.action do |_args, options|
48
- containing = (Helper.fastlane_enabled? ? 'fastlane' : '.')
48
+ containing = FastlaneCore::Helper.fastlane_enabled_folder_path
49
49
  path = File.join(containing, Scan.scanfile_name)
50
50
  UI.user_error!("Scanfile already exists").yellow if File.exist?(path)
51
51
  template = File.read("#{Scan::ROOT}/lib/assets/ScanfileTemplate")
@@ -9,7 +9,7 @@ module Scan
9
9
  end
10
10
 
11
11
  def self.available_options
12
- containing = Helper.fastlane_enabled? ? FastlaneCore::FastlaneFolder.path : '.'
12
+ containing = FastlaneCore::Helper.fastlane_enabled_folder_path
13
13
 
14
14
  [
15
15
  FastlaneCore::ConfigItem.new(key: :workspace,
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.39.0.beta.20170614010012
4
+ version: 2.39.0.beta.20170615010031
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-06-14 00:00:00.000000000 Z
18
+ date: 2017-06-15 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -1375,23 +1375,23 @@ metadata:
1375
1375
  post_install_message:
1376
1376
  rdoc_options: []
1377
1377
  require_paths:
1378
- - supply/lib
1378
+ - sigh/lib
1379
+ - frameit/lib
1380
+ - produce/lib
1379
1381
  - deliver/lib
1380
- - gym/lib
1381
- - spaceship/lib
1382
- - scan/lib
1383
1382
  - pem/lib
1384
- - screengrab/lib
1385
- - fastlane_core/lib
1386
- - sigh/lib
1387
- - fastlane/lib
1388
- - cert/lib
1389
- - pilot/lib
1390
1383
  - match/lib
1391
- - credentials_manager/lib
1384
+ - cert/lib
1385
+ - fastlane/lib
1386
+ - fastlane_core/lib
1392
1387
  - snapshot/lib
1393
- - produce/lib
1394
- - frameit/lib
1388
+ - credentials_manager/lib
1389
+ - supply/lib
1390
+ - scan/lib
1391
+ - pilot/lib
1392
+ - spaceship/lib
1393
+ - screengrab/lib
1394
+ - gym/lib
1395
1395
  required_ruby_version: !ruby/object:Gem::Requirement
1396
1396
  requirements:
1397
1397
  - - ">="