fastlane 0.12.4 → 0.12.5

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: c54426d9d5edbbcb256e21ae37f7455ffdc6e788
4
- data.tar.gz: 4509dd17d0fe6df097f4043c747def077f483f5b
3
+ metadata.gz: d71f1d568a8c16d8882ecba98737bd12092d8cf7
4
+ data.tar.gz: 552806b63809fc25db7e2b4f2454412b12a4e74c
5
5
  SHA512:
6
- metadata.gz: afa6dcf6b5ecb11699f0d3b112a6c0f7d513bd5aa2e172d8dacae81f778f817dbc83de339fa08553436bbc4bd8ef5d2d4637714ead6964f10a43c83f63851e52
7
- data.tar.gz: 7c97f77bb68851dd66dd3371e279a79765993d4bef856490c5bc109397eccf20bffeb89f2d857eb76b4828eaf7f6bed3ac93349d0f4f9408cfb46351591997bf
6
+ metadata.gz: f98085e2e74d0e10c337e13baa03a89d0187be624cdae20552572232ae935434bd501653e731fab051fb44d1354a495c24b61a9abe5e099e1754c15963dabe17
7
+ data.tar.gz: 1df3308a3316f7fcf8c9f0015474ef87301ab108c80c89189349eac8581c8bac8696cf3e6e5063a409e8841dcb1af6c57fe5028642b6f69bedac36806a15c15c
@@ -89,7 +89,14 @@ module Fastlane
89
89
  verify_block: Proc.new do |value|
90
90
  raise "Please pass the path to the project, not the workspace".red if value.include?"workspace"
91
91
  raise "Could not find Xcode project".red unless File.exists?(value)
92
- end)
92
+ end),
93
+ FastlaneCore::ConfigItem.new(key: :force,
94
+ env_name: "FL_FORCE_COMMIT",
95
+ description: "Forces the commit, even if other files than the ones containing the version number have been modified",
96
+ optional: true,
97
+ default_value: false,
98
+ is_string: false
99
+ )
93
100
  ]
94
101
  end
95
102
 
@@ -14,6 +14,7 @@ module Fastlane
14
14
 
15
15
  Dir.chdir(config[:deliver_file_path] || FastlaneFolder.path || Dir.pwd) do
16
16
  # This should be executed in the fastlane folder
17
+
17
18
  Deliver::Deliverer.new(nil,
18
19
  force: config[:force],
19
20
  is_beta_ipa: config[:beta],
@@ -22,6 +23,9 @@ module Fastlane
22
23
  if ENV['DELIVER_IPA_PATH'] # since IPA upload is optional
23
24
  Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] = File.expand_path(ENV['DELIVER_IPA_PATH']) # deliver will store it in the environment
24
25
  end
26
+
27
+ # The user might used a different account for deliver
28
+ CredentialsManager::PasswordManager.logout
25
29
  end
26
30
  ensure
27
31
  FastlaneCore::UpdateChecker.show_update_status('deliver', Deliver::VERSION)
@@ -0,0 +1,66 @@
1
+ require 'plist'
2
+
3
+ module Fastlane
4
+ module Actions
5
+ module SharedValues
6
+ DSYM_ZIP_PATH = :DSYM_ZIP_PATH
7
+ end
8
+
9
+ class DsymZipAction < Action
10
+ def self.run(params)
11
+ archive = params[:archive_path]
12
+ params[:dsym_path] ||= File.join("#{File.basename(archive, '.*')}.app.dSYM.zip")
13
+
14
+ plist = Plist::parse_xml(File.join(archive, 'Info.plist'))
15
+ app_name = Helper.test? ? 'MyApp.app' : File.basename(plist['ApplicationProperties']['ApplicationPath'])
16
+ dsym_name = "#{app_name}.dSYM"
17
+ dsym_folder_path = File.expand_path(File.join(archive, 'dSYMs'))
18
+ zipped_dsym_path = File.expand_path(params[:dsym_path])
19
+
20
+ Actions.lane_context[SharedValues::DSYM_ZIP_PATH] = zipped_dsym_path
21
+
22
+ Actions.sh(%Q[cd "#{dsym_folder_path}" && zip -r "#{zipped_dsym_path}" "#{dsym_name}"])
23
+ end
24
+
25
+
26
+ #####################################################
27
+ # @!group Documentation
28
+ #####################################################
29
+
30
+ def self.is_supported?(platform)
31
+ platform == :ios
32
+ end
33
+
34
+ def self.description
35
+ 'Creates a zipped dSYM in the project root from the .xcarchive'
36
+ end
37
+
38
+ def self.available_options
39
+ [
40
+ FastlaneCore::ConfigItem.new(key: :archive_path,
41
+ description: 'Path to your xcarchive file. Optional if you use the `xcodebuild` action',
42
+ default_value: Actions.lane_context[SharedValues::XCODEBUILD_ARCHIVE],
43
+ optional: true,
44
+ env_name: 'DSYM_ZIP_XCARCHIVE_PATH',
45
+ verify_block: Proc.new do |value|
46
+ raise "Couldn't find xcarchive file at path '#{value}'".red if !Helper.test? && !File.exists?(value)
47
+ end),
48
+ FastlaneCore::ConfigItem.new(key: :dsym_path,
49
+ description: 'Path for generated dsym. Optional, default is your apps root directory',
50
+ optional: true,
51
+ env_name: 'DSYM_ZIP_DSYM_PATH')
52
+ ]
53
+ end
54
+
55
+ def self.output
56
+ [
57
+ ['DSYM_ZIP_PATH', 'The named of the zipped dSYM']
58
+ ]
59
+ end
60
+
61
+ def self.author
62
+ 'lmirosevic'
63
+ end
64
+ end
65
+ end
66
+ end
@@ -24,7 +24,7 @@ module Fastlane
24
24
  '&&'
25
25
  ].join(' ')
26
26
 
27
- current_version = `#{command_prefix} agvtool what-marketing-version -terse1`.split("\n").last
27
+ current_version = `#{command_prefix} agvtool what-marketing-version -terse1`.split("\n").last || ''
28
28
 
29
29
  if params[:version_number]
30
30
  Helper.log.debug "Your current version (#{current_version}) does not respect the format A.B.C" unless current_version.match(/\d.\d.\d/)
@@ -58,15 +58,15 @@ module Fastlane
58
58
  def self.available_options
59
59
  [
60
60
  ['message', 'The message to post'],
61
- ['note_path', 'Path to a md file'],
62
- ['topicId', ''],
61
+ ['note_path', 'Path to an additional note'],
62
+ ['topicId', 'Typetalk topic id'],
63
63
  ['success', 'Successful build?'],
64
- ['typetalk_token', 'API token']
64
+ ['typetalk_token', 'typetalk token']
65
65
  ]
66
66
  end
67
67
 
68
68
  def self.author
69
- "dataich"
69
+ "Nulab Inc."
70
70
  end
71
71
 
72
72
  def self.is_supported?(platform)
@@ -118,7 +118,22 @@ module Fastlane
118
118
  xcodebuild_args = xcodebuild_args.join(" ")
119
119
 
120
120
  # Default args
121
- xcpretty_args = [ "--color" ]
121
+ xcpretty_args = []
122
+
123
+ # Formatting style
124
+ if params && params[:output_style]
125
+ output_style = params[:output_style]
126
+ raise "Invalid output_style #{output_style}".red unless [:standard, :basic].include?(output_style)
127
+ else
128
+ output_style = :standard
129
+ end
130
+
131
+ case output_style
132
+ when :standard
133
+ xcpretty_args << '--color'
134
+ when :basic
135
+ xcpretty_args << '--no-utf'
136
+ end
122
137
 
123
138
  if testing
124
139
  if params[:reports]
@@ -231,7 +246,8 @@ module Fastlane
231
246
  ['archive_path', 'The path to archive the to. Must contain `.xcarchive`'],
232
247
  ['workspace', 'The workspace to use'],
233
248
  ['scheme', 'The scheme to build'],
234
- ['build_settings', 'Hash of additional build information']
249
+ ['build_settings', 'Hash of additional build information'],
250
+ ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII outout)']
235
251
  ]
236
252
  end
237
253
 
@@ -268,7 +284,8 @@ module Fastlane
268
284
  ['archive_path', 'The path to archive the to. Must contain `.xcarchive`'],
269
285
  ['workspace', 'The workspace to use'],
270
286
  ['scheme', 'The scheme to build'],
271
- ['build_settings', 'Hash of additional build information']
287
+ ['build_settings', 'Hash of additional build information'],
288
+ ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII outout)']
272
289
  ]
273
290
  end
274
291
  end
@@ -298,7 +315,8 @@ module Fastlane
298
315
  ['archive_path', 'The path to archive the to. Must contain `.xcarchive`'],
299
316
  ['workspace', 'The workspace to use'],
300
317
  ['scheme', 'The scheme to build'],
301
- ['build_settings', 'Hash of additional build information']
318
+ ['build_settings', 'Hash of additional build information'],
319
+ ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII outout)']
302
320
  ]
303
321
  end
304
322
  end
@@ -328,7 +346,8 @@ module Fastlane
328
346
  ['archive_path', 'The path to archive the to. Must contain `.xcarchive`'],
329
347
  ['workspace', 'The workspace to use'],
330
348
  ['scheme', 'The scheme to build'],
331
- ['build_settings', 'Hash of additional build information']
349
+ ['build_settings', 'Hash of additional build information'],
350
+ ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII outout)']
332
351
  ]
333
352
  end
334
353
  end
@@ -354,7 +373,8 @@ module Fastlane
354
373
  ['archive_path', 'The path to archive the to. Must contain `.xcarchive`'],
355
374
  ['workspace', 'The workspace to use'],
356
375
  ['scheme', 'The scheme to build'],
357
- ['build_settings', 'Hash of additional build information']
376
+ ['build_settings', 'Hash of additional build information'],
377
+ ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII outout)']
358
378
  ]
359
379
  end
360
380
 
@@ -381,7 +401,8 @@ module Fastlane
381
401
  ['workspace', 'The workspace to use'],
382
402
  ['scheme', 'The scheme to build'],
383
403
  ['build_settings', 'Hash of additional build information'],
384
- ['destination', 'The simulator to use, e.g. "name=iPhone 5s,OS=8.1"']
404
+ ['destination', 'The simulator to use, e.g. "name=iPhone 5s,OS=8.1"'],
405
+ ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII outout)']
385
406
  ]
386
407
  end
387
408
 
@@ -19,7 +19,7 @@ module Fastlane
19
19
  end
20
20
  rescue => ex
21
21
  if action.respond_to?:action_name
22
- Helper.log.fatal "You invalid parameters to '#{action.action_name}'.".red
22
+ Helper.log.fatal "You passed invalid parameters to '#{action.action_name}'.".red
23
23
  Helper.log.fatal "Check out the error below and available options by running `fastlane action #{action.action_name}`".red
24
24
  end
25
25
  raise ex
@@ -6,7 +6,7 @@ module Fastlane
6
6
  return "./#{FOLDER_NAME}/" if File.directory?("./#{FOLDER_NAME}/")
7
7
  return "./.#{FOLDER_NAME}/" if File.directory?("./.#{FOLDER_NAME}/") # hidden folder
8
8
  return './' if File.basename(Dir.getwd) == FOLDER_NAME && File.exist?('Fastfile') # inside the folder
9
- return './' if File.basename(Dir.getwd) == FOLDER_NAME && File.exist?('Fastfile') # inside the folder and hidden
9
+ return './' if File.basename(Dir.getwd) == ".#{FOLDER_NAME}" && File.exist?('Fastfile') # inside the folder and hidden
10
10
  nil
11
11
  end
12
12
 
@@ -56,7 +56,7 @@ module Fastlane
56
56
  Helper.log.info '------------------------------'
57
57
  Helper.log.info 'To not re-enter your username and app identifier every time you run one of the fastlane tools or fastlane, these will be stored from now on.'.green
58
58
  app_identifier = ask('App Identifier (com.krausefx.app): '.yellow)
59
- apple_id = ask('Your Apple ID: '.yellow)
59
+ apple_id = ask('Your Apple ID (fastlane@krausefx.com): '.yellow)
60
60
  template = File.read("#{Helper.gem_path('fastlane')}/lib/assets/AppfileTemplate")
61
61
  template.gsub!('[[APP_IDENTIFIER]]', app_identifier)
62
62
  template.gsub!('[[APPLE_ID]]', apple_id)
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = '0.12.4'
2
+ VERSION = '0.12.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - '>='
158
158
  - !ruby/object:Gem::Version
159
- version: 0.9.2
159
+ version: 0.9.3
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - '>='
165
165
  - !ruby/object:Gem::Version
166
- version: 0.9.2
166
+ version: 0.9.3
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: snapshot
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -389,6 +389,7 @@ files:
389
389
  - lib/fastlane/actions/default_platform.rb
390
390
  - lib/fastlane/actions/deliver.rb
391
391
  - lib/fastlane/actions/deploygate.rb
392
+ - lib/fastlane/actions/dsym_zip.rb
392
393
  - lib/fastlane/actions/ensure_git_status_clean.rb
393
394
  - lib/fastlane/actions/fastlane_version.rb
394
395
  - lib/fastlane/actions/frameit.rb