fastlane 2.50.0.beta.20170727010003 → 2.50.0.beta.20170728010002

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: 6411d523ade042f52954052b7b507a45552af78e
4
- data.tar.gz: 55c0040f5ec5d9a7dc38f1153a1d2d7b667eef62
3
+ metadata.gz: 72b1c45ce7b73fbd00f8293d54cc026e74218820
4
+ data.tar.gz: 56457d15595b635fbd0abb894e151b50bc5520ce
5
5
  SHA512:
6
- metadata.gz: 2f5cc092c57c3955bf4c52eaaf8e167763e1dfb2540d95e7eb0f03f8b82d5634572b77ebecf670a9002dd57565024f2b4dfa6c5e45729997058ce7c087bbc9d9
7
- data.tar.gz: 037b07e35d05425dea04d65e96725a0f7ba773547523232f392a808dd80bf9db71f01efdd3d91f7e652b41e48e0af254145f908deecda569086a5a89cca9258d
6
+ metadata.gz: bbc4567c1682b8162d5b67fd06ff1f7074e5cf1a1ac9b6bdfea7685419e9d9ad77ad85de4edca4745197aefccc61b23285e06136b4d39aae2c34d0a5f2f6710f
7
+ data.tar.gz: 07a134ecc3e5c8363f1f4f2ce22013e36af2f336e37cafe8bf58679b0a1764e940c020de134d4f7af388db481e1fefc0b354ea2e4945b2e0637bb5e86b2e5ca0
@@ -30,9 +30,9 @@ module Fastlane
30
30
  end
31
31
 
32
32
  if params[:commits_count]
33
- changelog = Actions.git_log_last_commits(params[:pretty], params[:commits_count], merge_commit_filtering, params[:date_format])
33
+ changelog = Actions.git_log_last_commits(params[:pretty], params[:commits_count], merge_commit_filtering, params[:date_format], params[:ancestry_path])
34
34
  else
35
- changelog = Actions.git_log_between(params[:pretty], from, to, merge_commit_filtering, params[:date_format])
35
+ changelog = Actions.git_log_between(params[:pretty], from, to, merge_commit_filtering, params[:date_format], params[:ancestry_path])
36
36
  end
37
37
  changelog = changelog.gsub("\n\n", "\n") if changelog # as there are duplicate newlines
38
38
  Actions.lane_context[SharedValues::FL_CHANGELOG] = changelog
@@ -94,6 +94,12 @@ module Fastlane
94
94
  description: 'The date format applied to each commit while generating the collected value',
95
95
  optional: true,
96
96
  is_string: true),
97
+ FastlaneCore::ConfigItem.new(key: :ancestry_path,
98
+ env_name: 'FL_CHANGELOG_FROM_GIT_COMMITS_ANCESTRY_PATH',
99
+ description: 'Whether or not to use ancestry-path param',
100
+ optional: true,
101
+ default_value: false,
102
+ is_string: false),
97
103
  FastlaneCore::ConfigItem.new(key: :tag_match_pattern,
98
104
  env_name: 'FL_CHANGELOG_FROM_GIT_COMMITS_TAG_MATCH_PATTERN',
99
105
  description: 'A glob(7) pattern to match against when finding the last git tag',
@@ -76,7 +76,7 @@ module Fastlane
76
76
  sensitive: true,
77
77
  optional: false),
78
78
  FastlaneCore::ConfigItem.new(key: :default_keychain,
79
- description: 'Set the default keychain',
79
+ description: 'Should the newly created Keychain be the new system default keychain',
80
80
  is_string: false,
81
81
  default_value: false),
82
82
  FastlaneCore::ConfigItem.new(key: :unlock,
@@ -0,0 +1,80 @@
1
+ module Fastlane
2
+ module Actions
3
+ class SetupTravisAction < Action
4
+ def self.run(params)
5
+ # Stop if not executed by CI
6
+ if !Helper.is_ci? && !params[:force]
7
+ UI.message "Currently not running on CI system, skipping travis setup"
8
+ return
9
+ end
10
+
11
+ # Create a temporary keychain
12
+ password = "" # we don't need a password, as the keychain gets removed after each run anyway
13
+ keychain_name = "fastlane_tmp_keychain"
14
+ ENV["MATCH_KEYCHAIN_NAME"] = keychain_name
15
+ ENV["MATCH_KEYCHAIN_PASSWORD"] = password
16
+
17
+ UI.message "Creating temporary keychain: \"#{keychain_name}\"."
18
+ Actions::CreateKeychainAction.run(
19
+ name: keychain_name,
20
+ default_keychain: true,
21
+ unlock: true,
22
+ timeout: 3600,
23
+ lock_when_sleeps: true,
24
+ password: password
25
+ )
26
+
27
+ # Enable readonly mode for match by default
28
+ # we don't want to generate new identities and
29
+ # profiles on Travis usually
30
+ UI.message("Enabling readonly mode for Travis")
31
+ ENV["MATCH_READONLY"] = true.to_s
32
+ end
33
+
34
+ #####################################################
35
+ # @!group Documentation
36
+ #####################################################
37
+
38
+ def self.description
39
+ "Setup the keychain and match to work with Travis CI"
40
+ end
41
+
42
+ def self.details
43
+ [
44
+ "- Creates a new temporary keychain for use with match",
45
+ "- Switches match to `readonly` mode to not create new profiles/cert on CI",
46
+ "",
47
+ "This action helps with Travis integration, add this to the top of your Fastfile if you use Travis"
48
+ ].join("\n")
49
+ end
50
+
51
+ def self.available_options
52
+ [
53
+ FastlaneCore::ConfigItem.new(key: :force,
54
+ env_name: "FL_SETUP_TRAVIS_FORCE",
55
+ description: "Force setup, even if not executed by travis",
56
+ is_string: false,
57
+ default_value: false)
58
+ ]
59
+ end
60
+
61
+ def self.authors
62
+ ["KrauseFx"]
63
+ end
64
+
65
+ def self.is_supported?(platform)
66
+ [:ios, :mac].include?(platform)
67
+ end
68
+
69
+ def self.example_code
70
+ [
71
+ 'setup_travis'
72
+ ]
73
+ end
74
+
75
+ def self.category
76
+ :misc
77
+ end
78
+ end
79
+ end
80
+ end
@@ -2,10 +2,11 @@ module Fastlane
2
2
  module Actions
3
3
  GIT_MERGE_COMMIT_FILTERING_OPTIONS = [:include_merges, :exclude_merges, :only_include_merges].freeze
4
4
 
5
- def self.git_log_between(pretty_format, from, to, merge_commit_filtering, date_format = nil)
5
+ def self.git_log_between(pretty_format, from, to, merge_commit_filtering, date_format = nil, ancestry_path)
6
6
  command = ['git log']
7
7
  command << "--pretty=\"#{pretty_format}\""
8
8
  command << "--date=\"#{date_format}\"" if date_format
9
+ command << '--ancestry-path' if ancestry_path
9
10
  command << "#{from.shellescape}...#{to.shellescape}"
10
11
  command << git_log_merge_commit_filtering_option(merge_commit_filtering)
11
12
  Actions.sh(command.compact.join(' '), log: false).chomp
@@ -13,10 +14,11 @@ module Fastlane
13
14
  nil
14
15
  end
15
16
 
16
- def self.git_log_last_commits(pretty_format, commit_count, merge_commit_filtering, date_format = nil)
17
+ def self.git_log_last_commits(pretty_format, commit_count, merge_commit_filtering, date_format = nil, ancestry_path)
17
18
  command = ['git log']
18
19
  command << "--pretty=\"#{pretty_format}\""
19
20
  command << "--date=\"#{date_format}\"" if date_format
21
+ command << '--ancestry-path' if ancestry_path
20
22
  command << "-n #{commit_count}"
21
23
  command << git_log_merge_commit_filtering_option(merge_commit_filtering)
22
24
  Actions.sh(command.compact.join(' '), log: false).chomp
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.50.0.beta.20170727010003'.freeze
2
+ VERSION = '2.50.0.beta.20170728010002'.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
  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.50.0.beta.20170727010003
4
+ version: 2.50.0.beta.20170728010002
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-07-27 00:00:00.000000000 Z
18
+ date: 2017-07-28 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -970,6 +970,7 @@ files:
970
970
  - fastlane/lib/fastlane/actions/set_info_plist_value.rb
971
971
  - fastlane/lib/fastlane/actions/set_pod_key.rb
972
972
  - fastlane/lib/fastlane/actions/setup_jenkins.rb
973
+ - fastlane/lib/fastlane/actions/setup_travis.rb
973
974
  - fastlane/lib/fastlane/actions/sh.rb
974
975
  - fastlane/lib/fastlane/actions/sigh.rb
975
976
  - fastlane/lib/fastlane/actions/skip_docs.rb