fastlane 2.120.0.beta.20190331200023 → 2.120.0.beta.20190401200056

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: 0f87e9f50f056ea1cbf192436b3d23055ee312f1
4
- data.tar.gz: c89a3f2c0be58ad70308c4e02ffe75e62ddd4916
3
+ metadata.gz: cf08c092a326af4ace3444b79a228dec3a22ef1d
4
+ data.tar.gz: 3e20ccc4485803e4c902e58ee847446250977977
5
5
  SHA512:
6
- metadata.gz: e3c0129a94532b5331c357d0e7cb48d66a3c1c4d116838b24297306816643a4e49656d2c0f46444a11caaab88db4f895c25a1b9349a3223aca9496b2db359a86
7
- data.tar.gz: c641a9c0857e71c9d5cc40c810387430acb4441351d47b336e21d8e3de42a072d8e263d697db589feca8e05561e98bef9530d7a0daffee109ef0028d4671c2e7
6
+ metadata.gz: 0cad753bac3e6c5b66231807c49c412d583eb053bf79c2d730bd4a737810aae59afb917ea9822d7068a6cafa4166535f1e5753182d244c0a1af8badb6590875e
7
+ data.tar.gz: 0f260fa7dd7bb2f654706a7f9982d8abe68afee04e0244ca0585d2c70475d805a0f2e6ebebd00ba3e270a5ef17634b23268c2e5ddd5a80c2aff913577119a13d
@@ -3,36 +3,49 @@ module Fastlane
3
3
  GIT_MERGE_COMMIT_FILTERING_OPTIONS = [:include_merges, :exclude_merges, :only_include_merges].freeze
4
4
 
5
5
  def self.git_log_between(pretty_format, from, to, merge_commit_filtering, date_format = nil, ancestry_path)
6
- command = ['git log']
7
- command << "--pretty=\"#{pretty_format}\""
8
- command << "--date=\"#{date_format}\"" if date_format
6
+ command = %w(git log)
7
+ command << "--pretty=#{pretty_format}"
8
+ command << "--date=#{date_format}" if date_format
9
9
  command << '--ancestry-path' if ancestry_path
10
- command << "#{from.shellescape}...#{to.shellescape}"
10
+ command << "#{from}...#{to}"
11
11
  command << git_log_merge_commit_filtering_option(merge_commit_filtering)
12
- Actions.sh(command.compact.join(' '), log: false).chomp
12
+ # "*command" syntax expands "command" array into variable arguments, which
13
+ # will then be individually shell-escaped by Actions.sh.
14
+ Actions.sh(*command.compact, log: false).chomp
13
15
  rescue
14
16
  nil
15
17
  end
16
18
 
17
19
  def self.git_log_last_commits(pretty_format, commit_count, merge_commit_filtering, date_format = nil, ancestry_path)
18
- command = ['git log']
19
- command << "--pretty=\"#{pretty_format}\""
20
- command << "--date=\"#{date_format}\"" if date_format
20
+ command = %w(git log)
21
+ command << "--pretty=#{pretty_format}"
22
+ command << "--date=#{date_format}" if date_format
21
23
  command << '--ancestry-path' if ancestry_path
22
- command << "-n #{commit_count}"
24
+ command << '-n' << commit_count.to_s
23
25
  command << git_log_merge_commit_filtering_option(merge_commit_filtering)
24
- Actions.sh(command.compact.join(' '), log: false).chomp
26
+ Actions.sh(*command.compact, log: false).chomp
27
+ rescue
28
+ nil
29
+ end
30
+
31
+ def self.last_git_tag_hash(tag_match_pattern = nil)
32
+ tag_pattern_param = tag_match_pattern ? "=#{tag_match_pattern}" : ''
33
+ Actions.sh('git', 'rev-list', "--tags#{tag_pattern_param}", '--max-count=1').chomp
25
34
  rescue
26
35
  nil
27
36
  end
28
37
 
29
38
  def self.last_git_tag_name(match_lightweight = true, tag_match_pattern = nil)
30
- tag_pattern_param = tag_match_pattern ? "=#{tag_match_pattern.shellescape}" : ''
39
+ hash = last_git_tag_hash(tag_match_pattern)
40
+ # If hash is nil (command fails), "git describe" command below will still
41
+ # run and provide some output, although it's definitely not going to be
42
+ # anything reasonably expected. Bail out early.
43
+ return unless hash
31
44
 
32
- command = ['git describe']
45
+ command = %w(git describe)
33
46
  command << '--tags' if match_lightweight
34
- command << "`git rev-list --tags#{tag_pattern_param} --max-count=1`"
35
- Actions.sh(command.compact.join(' '), log: false).chomp
47
+ command << hash
48
+ Actions.sh(*command.compact, log: false).chomp
36
49
  rescue
37
50
  nil
38
51
  end
@@ -52,10 +65,10 @@ module Fastlane
52
65
  # Gets the last git commit information formatted into a String by the provided
53
66
  # pretty format String. See the git-log documentation for valid format placeholders
54
67
  def self.last_git_commit_formatted_with(pretty_format, date_format = nil)
55
- command = ['git log -1']
56
- command << "--pretty=\"#{pretty_format}\""
57
- command << "--date=\"#{date_format}\"" if date_format
58
- Actions.sh(command.compact.join(' '), log: false).chomp
68
+ command = %w(git log -1)
69
+ command << "--pretty=#{pretty_format}"
70
+ command << "--date=#{date_format}" if date_format
71
+ Actions.sh(*command.compact, log: false).chomp
59
72
  rescue
60
73
  nil
61
74
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.120.0.beta.20190331200023'.freeze
2
+ VERSION = '2.120.0.beta.20190401200056'.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
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.120.0.beta.20190331200023
4
+ version: 2.120.0.beta.20190401200056
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: 2019-03-31 00:00:00.000000000 Z
30
+ date: 2019-04-01 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1688,24 +1688,24 @@ metadata:
1688
1688
  post_install_message:
1689
1689
  rdoc_options: []
1690
1690
  require_paths:
1691
- - sigh/lib
1692
- - pilot/lib
1693
- - spaceship/lib
1694
- - fastlane/lib
1691
+ - cert/lib
1695
1692
  - frameit/lib
1696
- - fastlane_core/lib
1693
+ - screengrab/lib
1697
1694
  - credentials_manager/lib
1698
- - cert/lib
1699
- - produce/lib
1700
- - pem/lib
1701
1695
  - precheck/lib
1702
- - screengrab/lib
1703
- - deliver/lib
1704
- - scan/lib
1705
- - snapshot/lib
1706
- - supply/lib
1707
1696
  - match/lib
1697
+ - supply/lib
1698
+ - sigh/lib
1699
+ - fastlane/lib
1700
+ - deliver/lib
1701
+ - fastlane_core/lib
1702
+ - pilot/lib
1708
1703
  - gym/lib
1704
+ - snapshot/lib
1705
+ - scan/lib
1706
+ - produce/lib
1707
+ - spaceship/lib
1708
+ - pem/lib
1709
1709
  required_ruby_version: !ruby/object:Gem::Requirement
1710
1710
  requirements:
1711
1711
  - - ">="