fastlane 1.94.0 → 1.94.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/.DS_Store +0 -0
  3. data/lib/assets/.DS_Store +0 -0
  4. data/lib/assets/completions/.DS_Store +0 -0
  5. data/lib/fastlane/.DS_Store +0 -0
  6. data/lib/fastlane/actions/.DS_Store +0 -0
  7. data/lib/fastlane/actions/adb.rb +1 -2
  8. data/lib/fastlane/actions/adb_devices.rb +1 -2
  9. data/lib/fastlane/actions/appaloosa.rb +1 -2
  10. data/lib/fastlane/actions/appetize.rb +1 -1
  11. data/lib/fastlane/actions/appledoc.rb +1 -1
  12. data/lib/fastlane/actions/backup_file.rb +1 -1
  13. data/lib/fastlane/actions/backup_xcarchive.rb +0 -1
  14. data/lib/fastlane/actions/changelog_from_git_commits.rb +3 -4
  15. data/lib/fastlane/actions/crashlytics.rb +4 -2
  16. data/lib/fastlane/actions/deploygate.rb +2 -1
  17. data/lib/fastlane/actions/erb.rb +3 -6
  18. data/lib/fastlane/actions/flock.rb +2 -1
  19. data/lib/fastlane/actions/gradle.rb +2 -2
  20. data/lib/fastlane/actions/hg_commit_version_bump.rb +1 -2
  21. data/lib/fastlane/actions/hockey.rb +0 -1
  22. data/lib/fastlane/actions/ifttt.rb +2 -1
  23. data/lib/fastlane/actions/increment_version_number.rb +1 -2
  24. data/lib/fastlane/actions/install_on_device.rb +4 -8
  25. data/lib/fastlane/actions/ipa.rb +0 -1
  26. data/lib/fastlane/actions/jira.rb +0 -1
  27. data/lib/fastlane/actions/latest_testflight_build_number.rb +0 -1
  28. data/lib/fastlane/actions/lcov.rb +0 -2
  29. data/lib/fastlane/actions/mailgun.rb +0 -2
  30. data/lib/fastlane/actions/pod_lib_lint.rb +0 -1
  31. data/lib/fastlane/actions/restore_file.rb +1 -1
  32. data/lib/fastlane/actions/rsync.rb +3 -7
  33. data/lib/fastlane/actions/s3.rb +1 -2
  34. data/lib/fastlane/actions/scp.rb +7 -14
  35. data/lib/fastlane/actions/slack.rb +0 -1
  36. data/lib/fastlane/actions/slather.rb +4 -8
  37. data/lib/fastlane/actions/ssh.rb +27 -26
  38. data/lib/fastlane/actions/tryouts.rb +0 -1
  39. data/lib/fastlane/actions/twitter.rb +5 -10
  40. data/lib/fastlane/actions/typetalk.rb +2 -2
  41. data/lib/fastlane/actions/update_fastlane.rb +0 -1
  42. data/lib/fastlane/actions/upload_symbols_to_sentry.rb +2 -3
  43. data/lib/fastlane/actions/verify_build.rb +1 -1
  44. data/lib/fastlane/actions/xcode_server_get_assets.rb +2 -4
  45. data/lib/fastlane/actions/xcversion.rb +1 -2
  46. data/lib/fastlane/commands_generator.rb +2 -1
  47. data/lib/fastlane/core_ext/bundler_monkey_patch.rb +4 -4
  48. data/lib/fastlane/documentation/actions_list.rb +1 -1
  49. data/lib/fastlane/erb_template_helper.rb +0 -1
  50. data/lib/fastlane/helper/podspec_helper.rb +1 -1
  51. data/lib/fastlane/one_off.rb +2 -0
  52. data/lib/fastlane/plugins/.DS_Store +0 -0
  53. data/lib/fastlane/plugins/plugin_info.rb +3 -3
  54. data/lib/fastlane/plugins/plugin_info_collector.rb +0 -1
  55. data/lib/fastlane/plugins/template/.rubocop.yml +35 -172
  56. data/lib/fastlane/plugins/template/.travis.yml +4 -0
  57. data/lib/fastlane/plugins/template/circle.yml +9 -0
  58. data/lib/fastlane/runner.rb +1 -1
  59. data/lib/fastlane/version.rb +1 -1
  60. metadata +8 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b666c5de112ff0eb020554cec5b465d312aa11ec
4
- data.tar.gz: df881adda5b993c2b61910f5f6e0451469c86111
3
+ metadata.gz: abf2d538974356a73617e41436eb67634f85d4b0
4
+ data.tar.gz: 6961e6571d33c1c4571d7bdd8d8b7cbc3b4d7933
5
5
  SHA512:
6
- metadata.gz: 84235012f6d9d178339535ae532b2a20559bc3433b944e4375d77caeb264904ec40729d853b1ba66516e071a21e3f3e9e52e737e6f9b8496e7d2598ca15af32c
7
- data.tar.gz: 50209b78b5e49d93b7337aa08459c542e7f2c47e90f12ec6dbe0c964cefe44a5ac04fddec0bcde9938fc679b86ba6af5c0a578c58823aa6835db39fba27870de
6
+ metadata.gz: 266797b99984e870246cffd0c3e74e169d1ada85fd64680d78f6e7679636d870249924c5ab0b8b9e2bf3a35a9b2454f9abccd0d8989a04080d6a9ab4e34923b2
7
+ data.tar.gz: aa658aec59566239ec75ea4868c2dbb6b03a00a2c2c9368b27adfdb2c00ce639c7b1c41c24f8395a81f7cd228cc5f0c1a1b01cf8045ff0da5720c7557a9ed94e
Binary file
Binary file
Binary file
@@ -41,8 +41,7 @@ module Fastlane
41
41
  optional: true,
42
42
  description: "The path to your `adb` binary",
43
43
  is_string: true,
44
- default_value: "adb"
45
- )
44
+ default_value: "adb")
46
45
  ]
47
46
  end
48
47
 
@@ -31,8 +31,7 @@ module Fastlane
31
31
  description: "The path to your `adb` binary",
32
32
  is_string: true,
33
33
  optional: true,
34
- default_value: "adb"
35
- )
34
+ default_value: "adb")
36
35
  ]
37
36
  end
38
37
 
@@ -112,8 +112,7 @@ module Fastlane
112
112
  screenshot5: screenshots[4],
113
113
  group_ids: group_ids,
114
114
  provider: 'fastlane'
115
- }
116
- }.to_json
115
+ } }.to_json
117
116
  uoa_response = http.request(req)
118
117
  json_res = JSON.parse(uoa_response.body)
119
118
  if json_res['errors']
@@ -60,7 +60,7 @@ module Fastlane
60
60
 
61
61
  def self.create_request(uri, params)
62
62
  if params[:url]
63
- req = Net::HTTP::Post.new(uri.request_uri, initheader: {'Content-Type' => 'application/json'})
63
+ req = Net::HTTP::Post.new(uri.request_uri, initheader: { 'Content-Type' => 'application/json' })
64
64
  req.body = JSON.generate(params)
65
65
  else
66
66
  req = Net::HTTP::Post::Multipart.new(uri.path, params)
@@ -77,7 +77,7 @@ module Fastlane
77
77
 
78
78
  def self.params_hash_to_cli_args(params)
79
79
  # Remove nil and false value params
80
- params = params.delete_if { |_, v| v.nil? || v == false}
80
+ params = params.delete_if { |_, v| v.nil? || v == false }
81
81
 
82
82
  cli_args = []
83
83
  params.each do |key, value|
@@ -3,7 +3,7 @@ module Fastlane
3
3
  class BackupFileAction < Action
4
4
  def self.run(params)
5
5
  path = params[:path]
6
- FileUtils.cp(path, "#{path}.back", {preserve: true})
6
+ FileUtils.cp(path, "#{path}.back", { preserve: true })
7
7
  UI.message("Successfully created a backup 💾")
8
8
  end
9
9
 
@@ -103,7 +103,6 @@ module Fastlane
103
103
  def self.is_supported?(platform)
104
104
  [:ios, :mac].include? platform
105
105
  end
106
-
107
106
  end
108
107
  end
109
108
  end
@@ -109,14 +109,13 @@ module Fastlane
109
109
  end),
110
110
  FastlaneCore::ConfigItem.new(key: :merge_commit_filtering,
111
111
  env_name: 'FL_CHANGELOG_FROM_GIT_COMMITS_MERGE_COMMIT_FILTERING',
112
- description: "Controls inclusion of merge commits when collecting the changelog.\nValid values: #{GIT_MERGE_COMMIT_FILTERING_OPTIONS.map {|o| "'#{o}'" }.join(', ')}",
112
+ description: "Controls inclusion of merge commits when collecting the changelog.\nValid values: #{GIT_MERGE_COMMIT_FILTERING_OPTIONS.map { |o| "'#{o}'" }.join(', ')}",
113
113
  optional: true,
114
114
  default_value: 'include_merges',
115
115
  verify_block: proc do |value|
116
116
  matches_option = GIT_MERGE_COMMIT_FILTERING_OPTIONS.any? { |opt| opt.to_s == value }
117
- UI.user_error!("Valid values for :merge_commit_filtering are #{GIT_MERGE_COMMIT_FILTERING_OPTIONS.map {|o| "'#{o}'" }.join(', ')}") unless matches_option
118
- end
119
- )
117
+ UI.user_error!("Valid values for :merge_commit_filtering are #{GIT_MERGE_COMMIT_FILTERING_OPTIONS.map { |o| "'#{o}'" }.join(', ')}") unless matches_option
118
+ end)
120
119
  ]
121
120
  end
122
121
 
@@ -16,7 +16,8 @@ module Fastlane
16
16
  UI.message("Sending FL_CHANGELOG as release notes to Beta by Crashlytics")
17
17
 
18
18
  params[:notes_path] = Helper::CrashlyticsHelper.write_to_tempfile(
19
- Actions.lane_context[SharedValues::FL_CHANGELOG], 'changelog').path
19
+ Actions.lane_context[SharedValues::FL_CHANGELOG], 'changelog'
20
+ ).path
20
21
  end
21
22
 
22
23
  if params[:ipa_path]
@@ -45,7 +46,8 @@ module Fastlane
45
46
  command.join(" "),
46
47
  print_command: false,
47
48
  print_command_output: false,
48
- error_callback: error_callback)
49
+ error_callback: error_callback
50
+ )
49
51
 
50
52
  return command if Helper.test?
51
53
 
@@ -36,7 +36,8 @@ module Fastlane
36
36
  options[:ipa],
37
37
  options.values.select do |key, _|
38
38
  filter.include? key
39
- end)
39
+ end
40
+ )
40
41
  if parse_response(response)
41
42
  UI.message("DeployGate URL: #{Actions.lane_context[SharedValues::DEPLOYGATE_URL]}")
42
43
  UI.success("Build successfully uploaded to DeployGate as revision \##{Actions.lane_context[SharedValues::DEPLOYGATE_REVISION]}!")
@@ -29,23 +29,20 @@ module Fastlane
29
29
  env_name: "FL_ERB_SRC",
30
30
  description: "ERB Template File",
31
31
  optional: false,
32
- is_string: true
33
- ),
32
+ is_string: true),
34
33
  FastlaneCore::ConfigItem.new(key: :destination,
35
34
  short_option: "-D",
36
35
  env_name: "FL_ERB_DST",
37
36
  description: "Destination file",
38
37
  optional: true,
39
- is_string: true
40
- ),
38
+ is_string: true),
41
39
  FastlaneCore::ConfigItem.new(key: :placeholders,
42
40
  short_option: "-p",
43
41
  env_name: "FL_ERB_PLACEHOLDERS",
44
42
  description: "Placeholders given as a hash",
45
43
  default_value: {},
46
44
  is_string: false,
47
- type: Hash
48
- )
45
+ type: Hash)
49
46
 
50
47
  ]
51
48
  end
@@ -14,7 +14,8 @@ module Fastlane
14
14
  def self.notify_incoming_message_webhook(base_url, message, token)
15
15
  uri = URI.join(base_url + '/', token)
16
16
  response = Net::HTTP.start(
17
- uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
17
+ uri.host, uri.port, use_ssl: uri.scheme == 'https'
18
+ ) do |http|
18
19
  request = Net::HTTP::Post.new uri.path
19
20
  request.content_type = 'application/json'
20
21
  request.body = JSON.generate("text" => message)
@@ -58,8 +58,8 @@ module Fastlane
58
58
  apk_search_path = File.join(project_dir, '*', 'build', 'outputs', 'apk', '*.apk')
59
59
 
60
60
  # Our apk is now built, but there might actually be multiple ones that were built if a flavor was not specified in a multi-flavor project (e.g. `assembleRelease`), however we're not interested in unaligned apk's...
61
- new_apks = Dir[apk_search_path].reject { |path| path =~ /^.*-unaligned.apk$/i}
62
- new_apks = new_apks.map { |path| File.expand_path(path)}
61
+ new_apks = Dir[apk_search_path].reject { |path| path =~ /^.*-unaligned.apk$/i }
62
+ new_apks = new_apks.map { |path| File.expand_path(path) }
63
63
 
64
64
  # We expose all of these new apk's
65
65
  Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] = new_apks
@@ -89,8 +89,7 @@ module Fastlane
89
89
  "But found these actual changes: \n#{hg_dirty_files.join("\n")}.",
90
90
  "Make sure you have cleaned up the build artifacts and are only left with the changed version files at this",
91
91
  "stage in your lane, and don't touch the working directory while your lane is running. You can also use the :force option to ",
92
- "bypass this check, and always commit a version bump regardless of the state of the working directory."
93
- ].join("\n")
92
+ "bypass this check, and always commit a version bump regardless of the state of the working directory."].join("\n")
94
93
  UI.user_error!(str)
95
94
  end
96
95
  end
@@ -196,7 +196,6 @@ module Fastlane
196
196
  def self.is_supported?(platform)
197
197
  [:ios, :mac, :android].include? platform
198
198
  end
199
-
200
199
  end
201
200
  end
202
201
  end
@@ -59,7 +59,8 @@ module Fastlane
59
59
  env_name: "IFTTT_VALUE3",
60
60
  description: "Extra data sent with the event",
61
61
  optional: true,
62
- is_string: true)]
62
+ is_string: true)
63
+ ]
63
64
  end
64
65
 
65
66
  def self.is_supported?(platform)
@@ -98,8 +98,7 @@ module Fastlane
98
98
  FastlaneCore::ConfigItem.new(key: :version_number,
99
99
  env_name: "FL_VERSION_NUMBER_VERSION_NUMBER",
100
100
  description: "Change to a specific version. This will replace the bump type value",
101
- optional: true
102
- ),
101
+ optional: true),
103
102
  FastlaneCore::ConfigItem.new(key: :xcodeproj,
104
103
  env_name: "FL_VERSION_NUMBER_PROJECT",
105
104
  description: "optional, you must specify the path to your main Xcode project if it is not in the project root directory",
@@ -35,22 +35,19 @@ module Fastlane
35
35
  env_name: "FL_IOD_EXTRA",
36
36
  description: "Extra Commandline arguments passed to ios-deploy",
37
37
  optional: true,
38
- is_string: true
39
- ),
38
+ is_string: true),
40
39
  FastlaneCore::ConfigItem.new(key: :device_id,
41
40
  short_option: "-d",
42
41
  env_name: "FL_IOD_DEVICE_ID",
43
42
  description: "id of the device / if not set defaults to first found device",
44
43
  optional: true,
45
- is_string: true
46
- ),
44
+ is_string: true),
47
45
  FastlaneCore::ConfigItem.new(key: :skip_wifi,
48
46
  short_option: "-w",
49
47
  env_name: "FL_IOD_WIFI",
50
48
  description: "Do not search for devices via WiFi",
51
49
  optional: true,
52
- is_string: false
53
- ),
50
+ is_string: false),
54
51
  FastlaneCore::ConfigItem.new(key: :ipa,
55
52
  short_option: "-i",
56
53
  env_name: "FL_IOD_IPA",
@@ -63,8 +60,7 @@ module Fastlane
63
60
  UI.user_error!("Could not find ipa file at path '#{value}'") unless File.exist? value
64
61
  UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with? ".ipa"
65
62
  end
66
- end
67
- )
63
+ end)
68
64
  ]
69
65
  end
70
66
 
@@ -19,7 +19,6 @@ module Fastlane
19
19
  }
20
20
 
21
21
  class IpaAction < Action
22
-
23
22
  def self.is_supported?(platform)
24
23
  platform == :ios
25
24
  end
@@ -1,7 +1,6 @@
1
1
  module Fastlane
2
2
  module Actions
3
3
  class JiraAction < Action
4
-
5
4
  def self.run(params)
6
5
  Actions.verify_gem!('jira-ruby')
7
6
  require 'jira'
@@ -7,7 +7,6 @@ module Fastlane
7
7
  end
8
8
 
9
9
  class LatestTestflightBuildNumberAction < Action
10
-
11
10
  def self.run(params)
12
11
  require 'spaceship'
13
12
 
@@ -1,7 +1,6 @@
1
1
  module Fastlane
2
2
  module Actions
3
3
  class LcovAction < Action
4
-
5
4
  def self.is_supported?(platform)
6
5
  [:ios, :mac].include? platform
7
6
  end
@@ -84,7 +83,6 @@ module Fastlane
84
83
  def self.exclude_dirs
85
84
  ["/Applications/*", "/Frameworks/*"]
86
85
  end
87
-
88
86
  end
89
87
  end
90
88
  end
@@ -3,7 +3,6 @@ require 'fastlane/erb_template_helper'
3
3
  module Fastlane
4
4
  module Actions
5
5
  class MailgunAction < Action
6
-
7
6
  def self.is_supported?(platform)
8
7
  true
9
8
  end
@@ -129,7 +128,6 @@ module Fastlane
129
128
  end
130
129
  eth.render(html_template, hash)
131
130
  end
132
-
133
131
  end
134
132
  end
135
133
  end
@@ -99,7 +99,6 @@ module Fastlane
99
99
  def self.is_supported?(platform)
100
100
  true
101
101
  end
102
-
103
102
  end
104
103
  end
105
104
  end
@@ -5,7 +5,7 @@ module Fastlane
5
5
  path = params[:path]
6
6
  backup_path = "#{path}.back"
7
7
  UI.user_error!("Could not find file '#{backup_path}'") unless File.exist? backup_path
8
- FileUtils.cp(backup_path, path, {preserve: true})
8
+ FileUtils.cp(backup_path, path, { preserve: true })
9
9
  FileUtils.rm(backup_path)
10
10
  UI.message("Successfully restored backup 📤")
11
11
  end
@@ -5,7 +5,6 @@ module Fastlane
5
5
  end
6
6
 
7
7
  class RsyncAction < Action
8
-
9
8
  def self.run(params)
10
9
  rsync_cmd = ["rsync"]
11
10
  rsync_cmd << params[:extra]
@@ -34,22 +33,19 @@ module Fastlane
34
33
  description: "Port", # a short description of this parameter
35
34
  optional: true,
36
35
  default_value: "-av",
37
- is_string: true
38
- ),
36
+ is_string: true),
39
37
  FastlaneCore::ConfigItem.new(key: :source,
40
38
  short_option: "-S",
41
39
  env_name: "FL_RSYNC_SRC", # The name of the environment variable
42
40
  description: "source file/folder", # a short description of this parameter
43
41
  optional: false,
44
- is_string: true
45
- ),
42
+ is_string: true),
46
43
  FastlaneCore::ConfigItem.new(key: :destination,
47
44
  short_option: "-D",
48
45
  env_name: "FL_RSYNC_DST", # The name of the environment variable
49
46
  description: "destination file/folder", # a short description of this parameter
50
47
  optional: false,
51
- is_string: true
52
- )
48
+ is_string: true)
53
49
  ]
54
50
  end
55
51
 
@@ -327,8 +327,7 @@ module Fastlane
327
327
  env_name: "S3_ACL",
328
328
  description: "Uploaded object permissions e.g public_read (default), private, public_read_write, authenticated_read ",
329
329
  optional: true,
330
- default_value: "public_read"
331
- )
330
+ default_value: "public_read")
332
331
  ]
333
332
  end
334
333
 
@@ -4,12 +4,11 @@ module Fastlane
4
4
  end
5
5
 
6
6
  class ScpAction < Action
7
-
8
7
  def self.run(params)
9
8
  Actions.verify_gem!('net-scp')
10
9
  require "net/scp"
11
10
  ret = nil
12
- Net::SCP.start(params[:host], params[:username], {port: params[:port].to_i, password: params[:password]}) do |scp|
11
+ Net::SCP.start(params[:host], params[:username], { port: params[:port].to_i, password: params[:password] }) do |scp|
13
12
  if params[:upload]
14
13
  scp.upload! params[:upload][:src], params[:upload][:dst], recursive: true
15
14
  UI.message(['[SCP COMMAND]', "Successfully Uploaded", params[:upload][:src], params[:upload][:dst]].join(': '))
@@ -40,45 +39,39 @@ module Fastlane
40
39
  short_option: "-u",
41
40
  env_name: "FL_SSH_USERNAME",
42
41
  description: "Username",
43
- is_string: true
44
- ),
42
+ is_string: true),
45
43
  FastlaneCore::ConfigItem.new(key: :password,
46
44
  short_option: "-p",
47
45
  env_name: "FL_SSH_PASSWORD",
48
46
  description: "Password",
49
47
  optional: true,
50
- is_string: true
51
- ),
48
+ is_string: true),
52
49
  FastlaneCore::ConfigItem.new(key: :host,
53
50
  short_option: "-H",
54
51
  env_name: "FL_SSH_HOST",
55
52
  description: "Hostname",
56
- is_string: true
57
- ),
53
+ is_string: true),
58
54
  FastlaneCore::ConfigItem.new(key: :port,
59
55
  short_option: "-P",
60
56
  env_name: "FL_SSH_PORT",
61
57
  description: "Port",
62
58
  optional: true,
63
59
  default_value: "22",
64
- is_string: true
65
- ),
60
+ is_string: true),
66
61
  FastlaneCore::ConfigItem.new(key: :upload,
67
62
  short_option: "-U",
68
63
  env_name: "FL_SCP_UPLOAD",
69
64
  description: "Upload",
70
65
  optional: true,
71
66
  is_string: false,
72
- type: Hash
73
- ),
67
+ type: Hash),
74
68
  FastlaneCore::ConfigItem.new(key: :download,
75
69
  short_option: "-D",
76
70
  env_name: "FL_SCP_DOWNLOAD",
77
71
  description: "Download",
78
72
  optional: true,
79
73
  is_string: false,
80
- type: Hash
81
- )
74
+ type: Hash)
82
75
 
83
76
  ]
84
77
  end