fastlane 2.95.0.beta.20180504050050 → 2.95.0.beta.20180505050019

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: 25758cf45b9feed76de890017f8e49447ccb4192
4
- data.tar.gz: 81f19f7f135738404a2e22614ed85b7b2962055c
3
+ metadata.gz: a6427c0f5787d51eb6274dd28204e1525f617af0
4
+ data.tar.gz: 4e363b4016b30219f2aa481a51ee59d25ad0d31a
5
5
  SHA512:
6
- metadata.gz: 7621b3654253824938708073d8ccafca4de98f3b997a23e84d6790b2e0610bbc170e8728f1c86b58ee5c6320e5a9af46cff81ea743bbd3100786a45a1d7bf70e
7
- data.tar.gz: 2617b033bd6ed1898c6a8f499d3e66cc426894735f991b4a6c4d36ba70c1e32a2988986a219a2a432da8d70c2e0af05daf7c66595e72ee2ae38f705cbc71f25b
6
+ metadata.gz: eb5b2f5004fc44edb0bcb50c115443be8563b8413007d08e111caa878ab3e170ed2b1771c279455c4726122f6b45d6e6404cac13ad6e526db9d023451fe6b465
7
+ data.tar.gz: 4d44a9879ab5458b5e5961e8fbc8585edc49fff5d1e5336df1569b1604dffeb2ad096beec0245bacae4849b043bcfbf87470a2048641af8388fa867f0d408b0e
@@ -111,7 +111,7 @@ module Fastlane
111
111
  def self.mailgunit(options)
112
112
  sandbox_domain = options[:postmaster].split("@").last
113
113
  params = {
114
- from: "#{options[:from]}<#{options[:postmaster]}>",
114
+ from: "#{options[:from]} <#{options[:postmaster]}>",
115
115
  to: (options[:to]).to_s,
116
116
  subject: options[:subject],
117
117
  html: mail_template(options)
@@ -9,9 +9,15 @@ module Fastlane
9
9
  cmd << "--package-path #{params[:package_path]}" if params[:package_path]
10
10
  cmd << "--configuration #{params[:configuration]}" if params[:configuration]
11
11
  cmd << "--verbose" if params[:verbose]
12
+ if params[:xcpretty_output]
13
+ cmd += ["2>&1", "|", "xcpretty", "--#{params[:xcpretty_output]}"]
14
+ cmd = %w(set -o pipefail &&) + cmd
15
+ end
12
16
  cmd << params[:command] if package_commands.include?(params[:command])
13
17
 
14
- sh(cmd.join(" "))
18
+ FastlaneCore::CommandExecutor.execute(command: cmd.join(" "),
19
+ print_all: true,
20
+ print_command: true)
15
21
  end
16
22
 
17
23
  #####################################################
@@ -47,6 +53,13 @@ module Fastlane
47
53
  verify_block: proc do |value|
48
54
  UI.user_error!("Please pass a valid configuration: (debug|release)") unless valid_configurations.include?(value)
49
55
  end),
56
+ FastlaneCore::ConfigItem.new(key: :xcpretty_output,
57
+ env_name: "FL_SPM_XCPRETTY_OUTPUT",
58
+ description: "Specifies the output type for xcpretty. eg. 'test', or 'simple'",
59
+ optional: true,
60
+ verify_block: proc do |value|
61
+ UI.user_error!("Please pass a valid xcpretty output type: (#{xcpretty_output_types.join('|')})") unless xcpretty_output_types.include?(value)
62
+ end),
50
63
  FastlaneCore::ConfigItem.new(key: :verbose,
51
64
  short_option: "-v",
52
65
  env_name: "FL_SPM_VERBOSE",
@@ -90,6 +103,10 @@ module Fastlane
90
103
  def self.valid_configurations
91
104
  %w(debug release)
92
105
  end
106
+
107
+ def self.xcpretty_output_types
108
+ %w(simple test knock tap)
109
+ end
93
110
  end
94
111
  end
95
112
  end
@@ -332,7 +332,10 @@ module Fastlane
332
332
  value = (v != true && v.to_s.length > 0 ? "\"#{v}\"" : "")
333
333
  "#{arg} #{value}".strip
334
334
  elsif k == :build_settings
335
- v.map {|setting, val| "#{setting}=\"#{val}\""}.join(' ')
335
+ v.map do |setting, val|
336
+ val = clean_build_setting_value(val)
337
+ "#{setting}=\"#{val}\""
338
+ end.join(' ')
336
339
  elsif k == :destination
337
340
  [*v].collect { |dst| "-destination \"#{dst}\"" }.join(' ')
338
341
  elsif k == :keychain && v.to_s.length > 0
@@ -345,6 +348,13 @@ module Fastlane
345
348
  end.compact
346
349
  end
347
350
 
351
+ # Cleans values for build settings
352
+ # Only escaping `$(inherit)` types of values since "sh"
353
+ # interprets these as sub-commands instead of passing value into xcodebuild
354
+ def self.clean_build_setting_value(value)
355
+ value.to_s.gsub('$(', '\\$(')
356
+ end
357
+
348
358
  def self.detect_workspace
349
359
  workspace = nil
350
360
  workspaces = Dir.glob("*.xcworkspace")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.95.0.beta.20180504050050'.freeze
2
+ VERSION = '2.95.0.beta.20180505050019'.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
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -269,7 +269,8 @@ module Commander
269
269
  end
270
270
 
271
271
  def reraise_formatted!(e, message)
272
- raise e, "[!] #{message}".red, e.backtrace
272
+ backtrace = FastlaneCore::Env.truthy?("FASTLANE_HIDE_BACKTRACE") ? [] : e.backtrace
273
+ raise e, "[!] #{message}".red, backtrace
273
274
  end
274
275
 
275
276
  def show_github_issues(message_or_error)
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.95.0.beta.20180504050050
4
+ version: 2.95.0.beta.20180505050019
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Natchev
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-05-04 00:00:00.000000000 Z
30
+ date: 2018-05-05 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1651,24 +1651,24 @@ metadata:
1651
1651
  post_install_message:
1652
1652
  rdoc_options: []
1653
1653
  require_paths:
1654
- - credentials_manager/lib
1655
- - sigh/lib
1654
+ - spaceship/lib
1655
+ - gym/lib
1656
1656
  - snapshot/lib
1657
- - pem/lib
1658
- - pilot/lib
1657
+ - deliver/lib
1658
+ - sigh/lib
1659
+ - credentials_manager/lib
1660
+ - scan/lib
1659
1661
  - precheck/lib
1660
1662
  - frameit/lib
1661
- - scan/lib
1662
- - cert/lib
1663
- - spaceship/lib
1664
- - supply/lib
1665
1663
  - fastlane_core/lib
1666
- - screengrab/lib
1664
+ - pem/lib
1665
+ - cert/lib
1666
+ - pilot/lib
1667
1667
  - match/lib
1668
- - deliver/lib
1668
+ - screengrab/lib
1669
+ - supply/lib
1669
1670
  - fastlane/lib
1670
1671
  - produce/lib
1671
- - gym/lib
1672
1672
  required_ruby_version: !ruby/object:Gem::Requirement
1673
1673
  requirements:
1674
1674
  - - ">="