fastlane 2.96.0.beta.20180511050050 → 2.96.0.beta.20180512050121
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e8287ff0f76e56ef45e34af2cb5d576c30f7cdf
|
4
|
+
data.tar.gz: 57670fd91a6a20af68212eef1a1e79c6a393e9bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92841764c4b77f4e22e8226c01e629cab259454ded2f88b30e334f22b15f6e6a79a0a4128d171f80753ded62bef1dafbd1ac9c4f738faf1935d6c073c7302a52
|
7
|
+
data.tar.gz: 7546f8b0c70411e3d366df7f0ed5836805c97afd2ebb465afef84325f3e05b39aebcd92ef0be8c62c19d4a1c1edae007182eb74e6b2a82311e5b5bbe51b146ce
|
@@ -29,6 +29,8 @@ module Fastlane
|
|
29
29
|
merge_commit_filtering = :exclude_merges
|
30
30
|
end
|
31
31
|
|
32
|
+
params[:path] = './' unless params[:path]
|
33
|
+
|
32
34
|
Dir.chdir(params[:path]) do
|
33
35
|
if params[:commits_count]
|
34
36
|
changelog = Actions.git_log_last_commits(params[:pretty], params[:commits_count], merge_commit_filtering, params[:date_format], params[:ancestry_path])
|
@@ -8,15 +8,39 @@ module Fastlane
|
|
8
8
|
def self.run(params)
|
9
9
|
Actions.verify_gem!('xcode-install')
|
10
10
|
required_version = params[:version]
|
11
|
+
|
12
|
+
if required_version.to_s.length == 0
|
13
|
+
# The user didn't provide an Xcode version, let's see
|
14
|
+
# if the current project has a `.xcode-version` file
|
15
|
+
#
|
16
|
+
# The code below can be improved to also consider
|
17
|
+
# the directory of the Xcode project
|
18
|
+
xcode_version_paths = Dir.glob(".xcode-version")
|
19
|
+
|
20
|
+
if xcode_version_paths.first
|
21
|
+
UI.verbose("Loading required version from #{xcode_version_paths.first}")
|
22
|
+
required_version = File.read(xcode_version_paths.first).strip
|
23
|
+
else
|
24
|
+
UI.user_error!("No version: provided when calling the `ensure_xcode_version` action")
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
11
28
|
selected_version = sh("xcversion selected").match(/^Xcode (.*)$/)[1]
|
12
29
|
|
30
|
+
begin
|
31
|
+
selected_version = Gem::Version.new(selected_version)
|
32
|
+
required_version = Gem::Version.new(required_version)
|
33
|
+
rescue ArgumentError => ex
|
34
|
+
UI.user_error!("Invalid version number provided, make sure it's valid: #{ex}")
|
35
|
+
end
|
36
|
+
|
13
37
|
if selected_version == required_version
|
14
38
|
UI.success("Selected Xcode version is correct: #{selected_version}")
|
15
39
|
else
|
16
40
|
UI.message("Selected Xcode version is not correct: #{selected_version}. You expected #{required_version}.")
|
17
41
|
UI.message("To correct this, use: `xcode_select(version: #{required_version})`.")
|
18
42
|
|
19
|
-
UI.user_error!("Selected Xcode version doesn't match your requirement.\nExpected: Xcode #{required_version}\nActual: #{selected_version}\n")
|
43
|
+
UI.user_error!("Selected Xcode version doesn't match your requirement.\nExpected: Xcode #{required_version}\nActual: Xcode #{selected_version}\n")
|
20
44
|
end
|
21
45
|
end
|
22
46
|
|
@@ -25,13 +49,14 @@ module Fastlane
|
|
25
49
|
#####################################################
|
26
50
|
|
27
51
|
def self.description
|
28
|
-
"Ensure the
|
52
|
+
"Ensure the right version of Xcode is used"
|
29
53
|
end
|
30
54
|
|
31
55
|
def self.details
|
32
56
|
[
|
33
57
|
"If building your app requires a specific version of Xcode, you can invoke this command before using gym.",
|
34
|
-
"For example, to ensure that a beta version of Xcode is not accidentally selected to build, which would make uploading to TestFlight fail."
|
58
|
+
"For example, to ensure that a beta version of Xcode is not accidentally selected to build, which would make uploading to TestFlight fail.",
|
59
|
+
"You can either manually provide a specific version using `version: ` or you make use of the `.xcode-version` file."
|
35
60
|
].join("\n")
|
36
61
|
end
|
37
62
|
|
@@ -41,7 +66,7 @@ module Fastlane
|
|
41
66
|
env_name: "FL_ENSURE_XCODE_VERSION",
|
42
67
|
description: "Xcode version to verify that is selected",
|
43
68
|
is_string: true,
|
44
|
-
optional:
|
69
|
+
optional: true)
|
45
70
|
]
|
46
71
|
end
|
47
72
|
|
@@ -55,7 +80,7 @@ module Fastlane
|
|
55
80
|
end
|
56
81
|
|
57
82
|
def self.authors
|
58
|
-
["JaviSoto"]
|
83
|
+
["JaviSoto", "KrauseFx"]
|
59
84
|
end
|
60
85
|
|
61
86
|
def self.example_code
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.96.0.beta.
|
2
|
+
VERSION = '2.96.0.beta.20180512050121'.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.96.0.beta.
|
4
|
+
version: 2.96.0.beta.20180512050121
|
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: 2018-05-
|
30
|
+
date: 2018-05-12 00:00:00.000000000 Z
|
31
31
|
dependencies:
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: slack-notifier
|
@@ -1651,24 +1651,24 @@ metadata:
|
|
1651
1651
|
post_install_message:
|
1652
1652
|
rdoc_options: []
|
1653
1653
|
require_paths:
|
1654
|
+
- precheck/lib
|
1654
1655
|
- scan/lib
|
1656
|
+
- frameit/lib
|
1657
|
+
- gym/lib
|
1658
|
+
- sigh/lib
|
1659
|
+
- pilot/lib
|
1655
1660
|
- snapshot/lib
|
1656
|
-
-
|
1661
|
+
- fastlane/lib
|
1657
1662
|
- deliver/lib
|
1658
|
-
-
|
1659
|
-
-
|
1663
|
+
- screengrab/lib
|
1664
|
+
- cert/lib
|
1660
1665
|
- supply/lib
|
1661
|
-
- sigh/lib
|
1662
1666
|
- pem/lib
|
1663
|
-
- produce/lib
|
1664
1667
|
- fastlane_core/lib
|
1665
|
-
- screengrab/lib
|
1666
1668
|
- credentials_manager/lib
|
1667
|
-
-
|
1668
|
-
- fastlane/lib
|
1669
|
+
- match/lib
|
1669
1670
|
- spaceship/lib
|
1670
|
-
-
|
1671
|
-
- pilot/lib
|
1671
|
+
- produce/lib
|
1672
1672
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1673
1673
|
requirements:
|
1674
1674
|
- - ">="
|