fastlane_core 0.7.6 → 0.8.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3be5b3d89d908dcb33b2b0c061f98f55b6206aee
|
4
|
+
data.tar.gz: 76901d3136386717fe93a96d4e03fac130dab16b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f063c39290e3bb93b39e7f89247c9373f21320e0d2357aadd028e2bfcbb82af849771844e7417470973a962492a0e70829f0e55fa1ca6c75b1e2862af159baae
|
7
|
+
data.tar.gz: c4235c8741a6e69330afa38f1913ae62a9dc0748419cf0d13fe6336d8694b6081fed1d55cc58d124bd4c3afa9bc0c7c9bcf1c27af45385bcc88bcfd6ca504d8b
|
@@ -83,12 +83,10 @@ module FastlaneCore
|
|
83
83
|
option = option_for_key(key)
|
84
84
|
raise "Could not find option for key :#{key}. Available keys: #{@available_options.collect { |a| a.key }.join(', ')}".red unless option
|
85
85
|
|
86
|
-
# `if value == nil` instead of ||= because false is also a valid value
|
87
|
-
|
88
86
|
value = @values[key]
|
89
|
-
|
90
|
-
|
91
|
-
if value == nil
|
87
|
+
|
88
|
+
# `if value == nil` instead of ||= because false is also a valid value
|
89
|
+
if value == nil and option.env_name
|
92
90
|
value = ENV[option.env_name]
|
93
91
|
option.verify!(value) if value
|
94
92
|
end
|
@@ -15,7 +15,7 @@ module FastlaneCore
|
|
15
15
|
# @param optional (Boolean) is false by default. If set to true, also string values will not be asked to the user
|
16
16
|
def initialize(key: nil, env_name: nil, description: nil, short_option: nil, default_value: nil, verify_block: nil, is_string: true, optional: false)
|
17
17
|
raise "key must be a symbol" unless key.kind_of?Symbol
|
18
|
-
raise "env_name must be a String" unless env_name.kind_of?String
|
18
|
+
raise "env_name must be a String" unless (env_name || '').kind_of?String
|
19
19
|
if short_option
|
20
20
|
raise "short_option must be a String of length 1" unless (short_option.kind_of?String and short_option.gsub('-', '').length == 1)
|
21
21
|
end
|
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.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|