fastlane_core 0.35.0 → 0.35.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane_core/project.rb +19 -7
- data/lib/fastlane_core/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaceeb34f89395634665eca09896c384e21802c7
|
4
|
+
data.tar.gz: ef02fb14918ce867d9f326e50e626afdacd674f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01d65cf15b15403797671a3001e39377bfbdffb46187aa12226c10dcbe1f93b892aaefe3d1e2b89614aa4dc8f83f7509378665dc2e91246e8c706c0eff53ea63
|
7
|
+
data.tar.gz: 8d8588d6c0186c239645e7d24c43aba913d4e390faf1981dd9ee558d9b76e14084c538983b56ce6a6d8e7823205628e2ac245875d527ce5f1a00580fcf396485
|
@@ -86,7 +86,9 @@ module FastlaneCore
|
|
86
86
|
end
|
87
87
|
|
88
88
|
# Let the user select a scheme
|
89
|
-
|
89
|
+
# Use a scheme containing the preferred_to_include string when multiple schemes were found
|
90
|
+
# rubocop:disable Metrics/AbcSize
|
91
|
+
def select_scheme(preferred_to_include: nil)
|
90
92
|
if options[:scheme].to_s.length > 0
|
91
93
|
# Verify the scheme is available
|
92
94
|
unless schemes.include?(options[:scheme].to_s)
|
@@ -100,13 +102,22 @@ module FastlaneCore
|
|
100
102
|
if schemes.count == 1
|
101
103
|
options[:scheme] = schemes.last
|
102
104
|
elsif schemes.count > 1
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
105
|
+
preferred = nil
|
106
|
+
if preferred_to_include
|
107
|
+
preferred = schemes.find_all { |a| a.downcase.include?(preferred_to_include.downcase) }
|
108
|
+
end
|
109
|
+
|
110
|
+
if preferred_to_include and preferred.count == 1
|
111
|
+
options[:scheme] = preferred.last
|
107
112
|
else
|
108
|
-
|
109
|
-
|
113
|
+
if Helper.is_ci?
|
114
|
+
Helper.log.error "Multiple schemes found but you haven't specified one.".red
|
115
|
+
Helper.log.error "Since this is a CI, please pass one using the `scheme` option".red
|
116
|
+
raise "Multiple schemes found".red
|
117
|
+
else
|
118
|
+
puts "Select Scheme: "
|
119
|
+
options[:scheme] = choose(*(schemes))
|
120
|
+
end
|
110
121
|
end
|
111
122
|
else
|
112
123
|
Helper.log.error "Couldn't find any schemes in this project, make sure that the scheme is shared if you are using a workspace".red
|
@@ -115,6 +126,7 @@ module FastlaneCore
|
|
115
126
|
raise "No Schemes found".red
|
116
127
|
end
|
117
128
|
end
|
129
|
+
# rubocop:enable Metrics/AbcSize
|
118
130
|
|
119
131
|
# Get all available configurations in an array
|
120
132
|
def configurations
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.35.
|
4
|
+
version: 0.35.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -302,14 +302,14 @@ dependencies:
|
|
302
302
|
requirements:
|
303
303
|
- - "~>"
|
304
304
|
- !ruby/object:Gem::Version
|
305
|
-
version:
|
305
|
+
version: 0.35.1
|
306
306
|
type: :development
|
307
307
|
prerelease: false
|
308
308
|
version_requirements: !ruby/object:Gem::Requirement
|
309
309
|
requirements:
|
310
310
|
- - "~>"
|
311
311
|
- !ruby/object:Gem::Version
|
312
|
-
version:
|
312
|
+
version: 0.35.1
|
313
313
|
- !ruby/object:Gem::Dependency
|
314
314
|
name: danger
|
315
315
|
requirement: !ruby/object:Gem::Requirement
|
@@ -383,7 +383,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
383
383
|
version: '0'
|
384
384
|
requirements: []
|
385
385
|
rubyforge_project:
|
386
|
-
rubygems_version: 2.4.
|
386
|
+
rubygems_version: 2.4.6
|
387
387
|
signing_key:
|
388
388
|
specification_version: 4
|
389
389
|
summary: Contains all shared code/dependencies of the fastlane.tools
|