fastlane 2.41.0 → 2.42.0.beta.20170624010047

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: ce78621587497b1f8d7624f5e9171e49ba9e2cd1
4
- data.tar.gz: 02545b637f1f1f12b186c150a8a8770a3bacdd17
3
+ metadata.gz: e8e5e04ed8a652f368cd5c2b1d709a2a1f343ed4
4
+ data.tar.gz: 15c0bbbd8838d2f7dd57f0d563a311fc37b6b86b
5
5
  SHA512:
6
- metadata.gz: 34ac3a9cdb01e38cd5a07576d04b0110738ced3bc7ac0a836402c9a77eb7bc5468607d005773ac6e984bfcea2283212080cbba89a53aa2d87137c94cab3070ab
7
- data.tar.gz: 1d7d2dd2a6582f1f4b50445924640dd7c66ebb349ebcc5482ab6cebd30bfe6df7062c5dd3a79fdf60977a0b36d3977ca23dbb874aec7db47a23d5b2a16a35b49
6
+ metadata.gz: 036dcb5f2ab939d05a2f9284a798e0177d00b85ece027416d02b6c628862ab3589f02015fcb9e9d710bd5fafeef8521f1b886bacfb2f3d23f38c277f7cae2397
7
+ data.tar.gz: f4c13836df8b18f19c3e08d58d111e83910d7f9d409ee908e86e6c04bf6d349711f047159890ef4a396436c34d792cba3b98fe76dc42f2638236524aeef72016
@@ -39,7 +39,7 @@ module Fastlane
39
39
 
40
40
  error_callback = proc do |error|
41
41
  clean_error = sanitizer.call(error)
42
- UI.error(clean_error)
42
+ UI.user_error!(clean_error)
43
43
  end
44
44
 
45
45
  result = Actions.sh_control_output(
@@ -171,10 +171,11 @@ module Fastlane
171
171
  case response.status
172
172
  when 200...300
173
173
  url = response.body['public_url']
174
-
175
- Actions.lane_context[SharedValues::HOCKEY_DOWNLOAD_LINK] = url
174
+ version_url = url + "/app_versions/" + response.body['version']
175
+ Actions.lane_context[SharedValues::HOCKEY_DOWNLOAD_LINK] = version_url
176
176
  Actions.lane_context[SharedValues::HOCKEY_BUILD_INFORMATION] = response.body
177
177
 
178
+ UI.message("Version Download URL: #{version_url}") if version_url
178
179
  UI.message("Public Download URL: #{url}") if url
179
180
  UI.success('Build successfully uploaded to HockeyApp!')
180
181
  else
@@ -129,7 +129,7 @@ module Fastlane
129
129
  "Built by" => "Jenkins",
130
130
  },
131
131
  default_payloads: [:git_branch, :git_author], # Optional, lets you specify a whitelist of default payloads to include. Pass an empty array to suppress all the default payloads.
132
- # Don\'t add this key, or pass nil, if you want all the default payloads. The available default payloads are: `lane`, `test_result`, `git_branch`, `git_author`, `last_git_commit_message`.
132
+ # Don\'t add this key, or pass nil, if you want all the default payloads. The available default payloads are: `lane`, `test_result`, `git_branch`, `git_author`, `last_git_commit_message`, `last_git_commit_hash`.
133
133
  attachment_properties: { # Optional, lets you specify any other properties available for attachments in the slack API (see https://api.slack.com/docs/attachments).
134
134
  # This hash is deep merged with the existing properties set using the other properties above. This allows your own fields properties to be appended to the existing fields that were created using the `payload` property for instance.
135
135
  thumb_url: "http://example.com/path/to/thumb.png",
@@ -226,6 +226,15 @@ module Fastlane
226
226
  }
227
227
  end
228
228
 
229
+ # last_git_commit_hash
230
+ if Actions.last_git_commit_hash(true) && should_add_payload[:last_git_commit_hash]
231
+ slack_attachment[:fields] << {
232
+ title: 'Git Commit Hash',
233
+ value: Actions.last_git_commit_hash(short: true),
234
+ short: false
235
+ }
236
+ end
237
+
229
238
  # merge additional properties
230
239
  deep_merge(slack_attachment, options[:attachment_properties])
231
240
  end
@@ -11,7 +11,7 @@ module Fastlane
11
11
  UI.user_error!("Your version of swiftlint (#{version}) does not support autocorrect mode.\nUpdate swiftlint using `brew update && brew upgrade swiftlint`")
12
12
  end
13
13
 
14
- command = params[:executable].nil? ? "swiftlint" : params[:executable]
14
+ command = (params[:executable] || "swiftlint").dup
15
15
  command << " #{params[:mode]}"
16
16
  command << supported_option_switch(params, :strict, "0.9.2", true)
17
17
  command << " --config #{params[:config_file].shellescape}" if params[:config_file]
@@ -39,7 +39,7 @@ module Fastlane
39
39
 
40
40
  # Get current SwiftLint version
41
41
  def self.swiftlint_version(executable: nil)
42
- binary = executable.nil? ? 'swiftlint' : executable
42
+ binary = executable || 'swiftlint'
43
43
  Gem::Version.new(`#{binary} version`.chomp)
44
44
  end
45
45
 
@@ -77,7 +77,7 @@ module Fastlane
77
77
 
78
78
  def self.find_binary_path(params)
79
79
  params[:binary_path] ||= (Dir["/Applications/Fabric.app/**/upload-symbols"] + Dir["./Pods/**/upload-symbols"]).last
80
- UI.user_error!("Please provide a path to the binary using binary_path:") unless params[:binary_path]
80
+ UI.user_error!("Failed to find Fabric's upload_symbols binary at /Applications/Fabric.app/**/upload-symbols or ./Pods/**/upload-symbols. Please specify the location of the binary explicitly by using the binary_path option") unless params[:binary_path]
81
81
 
82
82
  params[:binary_path] = File.expand_path(params[:binary_path])
83
83
  end
@@ -86,6 +86,14 @@ module Fastlane
86
86
  nil
87
87
  end
88
88
 
89
+ # Get the hash of the last commit
90
+ def self.last_git_commit_hash(short)
91
+ format_specifier = short ? '%h' : '%H'
92
+ string = last_git_commit_formatted_with(format_specifier).to_s
93
+ return string unless string.empty?
94
+ return nil
95
+ end
96
+
89
97
  # Returns the current git branch - can be replaced using the environment variable `GIT_BRANCH`
90
98
  def self.git_branch
91
99
  return ENV['GIT_BRANCH'] if ENV['GIT_BRANCH'].to_s.length > 0 # set by Jenkins
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.41.0'.freeze
2
+ VERSION = '2.42.0.beta.20170624010047'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  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.41.0
4
+ version: 2.42.0.beta.20170624010047
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-23 00:00:00.000000000 Z
18
+ date: 2017-06-24 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -808,7 +808,6 @@ files:
808
808
  - deliver/lib/deliver/upload_price_tier.rb
809
809
  - deliver/lib/deliver/upload_screenshots.rb
810
810
  - fastlane/README.md
811
- - fastlane/lib/.DS_Store
812
811
  - fastlane/lib/assets/Actions.md.erb
813
812
  - fastlane/lib/assets/AppfileTemplate
814
813
  - fastlane/lib/assets/AppfileTemplateAndroid
@@ -825,7 +824,6 @@ files:
825
824
  - fastlane/lib/assets/s3_plist_template.erb
826
825
  - fastlane/lib/assets/s3_version_template.erb
827
826
  - fastlane/lib/fastlane.rb
828
- - fastlane/lib/fastlane/.DS_Store
829
827
  - fastlane/lib/fastlane/action.rb
830
828
  - fastlane/lib/fastlane/action_collector.rb
831
829
  - fastlane/lib/fastlane/actions/README.md
@@ -1148,19 +1146,15 @@ files:
1148
1146
  - frameit/lib/frameit/strings_parser.rb
1149
1147
  - frameit/lib/frameit/template_finder.rb
1150
1148
  - gym/README.md
1151
- - gym/lib/.DS_Store
1152
- - gym/lib/assets/.DS_Store
1153
1149
  - gym/lib/assets/GymfileTemplate
1154
1150
  - gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
1155
1151
  - gym/lib/assets/package_application_patches/0002_no_strict_parameter_patch.diff
1156
1152
  - gym/lib/assets/package_application_patches/PackageApplication_MD5
1157
1153
  - gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh
1158
1154
  - gym/lib/gym.rb
1159
- - gym/lib/gym/.DS_Store
1160
1155
  - gym/lib/gym/commands_generator.rb
1161
1156
  - gym/lib/gym/detect_values.rb
1162
1157
  - gym/lib/gym/error_handler.rb
1163
- - gym/lib/gym/generators/.DS_Store
1164
1158
  - gym/lib/gym/generators/README.md
1165
1159
  - gym/lib/gym/generators/build_command_generator.rb
1166
1160
  - gym/lib/gym/generators/package_command_generator.rb
@@ -1170,7 +1164,6 @@ files:
1170
1164
  - gym/lib/gym/options.rb
1171
1165
  - gym/lib/gym/runner.rb
1172
1166
  - gym/lib/gym/xcode.rb
1173
- - gym/lib/gym/xcodebuild_fixes/.DS_Store
1174
1167
  - gym/lib/gym/xcodebuild_fixes/README.md
1175
1168
  - gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb
1176
1169
  - gym/lib/gym/xcodebuild_fixes/package_application_fix.rb
@@ -1300,7 +1293,6 @@ files:
1300
1293
  - snapshot/lib/snapshot/test_command_generator.rb
1301
1294
  - snapshot/lib/snapshot/update.rb
1302
1295
  - spaceship/README.md
1303
- - spaceship/lib/.DS_Store
1304
1296
  - spaceship/lib/assets/languageMapping.json
1305
1297
  - spaceship/lib/assets/languageMappingReadable.json
1306
1298
  - spaceship/lib/spaceship.rb
@@ -1405,24 +1397,24 @@ metadata:
1405
1397
  post_install_message:
1406
1398
  rdoc_options: []
1407
1399
  require_paths:
1408
- - cert/lib
1409
- - credentials_manager/lib
1410
- - deliver/lib
1411
- - fastlane/lib
1412
1400
  - fastlane_core/lib
1413
1401
  - frameit/lib
1414
- - gym/lib
1415
- - match/lib
1402
+ - fastlane/lib
1403
+ - spaceship/lib
1416
1404
  - pem/lib
1417
- - pilot/lib
1418
- - precheck/lib
1405
+ - screengrab/lib
1406
+ - supply/lib
1407
+ - cert/lib
1419
1408
  - produce/lib
1420
1409
  - scan/lib
1421
- - screengrab/lib
1410
+ - precheck/lib
1411
+ - match/lib
1412
+ - pilot/lib
1413
+ - gym/lib
1422
1414
  - sigh/lib
1415
+ - deliver/lib
1423
1416
  - snapshot/lib
1424
- - spaceship/lib
1425
- - supply/lib
1417
+ - credentials_manager/lib
1426
1418
  required_ruby_version: !ruby/object:Gem::Requirement
1427
1419
  requirements:
1428
1420
  - - ">="
@@ -1430,15 +1422,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
1430
1422
  version: 2.0.0
1431
1423
  required_rubygems_version: !ruby/object:Gem::Requirement
1432
1424
  requirements:
1433
- - - ">="
1425
+ - - ">"
1434
1426
  - !ruby/object:Gem::Version
1435
- version: '0'
1427
+ version: 1.3.1
1436
1428
  requirements: []
1437
1429
  rubyforge_project:
1438
- rubygems_version: 2.6.10
1430
+ rubygems_version: 2.4.5.2
1439
1431
  signing_key:
1440
1432
  specification_version: 4
1441
1433
  summary: The easiest way to automate beta deployments and releases for your iOS and
1442
1434
  Android apps
1443
1435
  test_files: []
1444
- has_rdoc:
Binary file
Binary file
data/gym/lib/.DS_Store DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file