fastlane_core 0.3.0 → 0.3.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/configuration.rb +7 -2
- data/lib/fastlane_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71dd95868c34fe332a473af8a1b79ed3a925825e
|
4
|
+
data.tar.gz: ab33ebec0cd34ae223c2f8b1b72ed335babd79aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02acb4236a512848c9242a0f60745684c6046b1d96fc9992ae742f76edf93408b4cfb9f52850d970131f489ea395e3ebacb476ced1989be6047c6fc90cd339cc
|
7
|
+
data.tar.gz: 172fe666a156702c2a0fa9f5b925dd2813d8d3b56f4a94d0569a406a4c914bc9f7995e67a6422c8c8011946d564d139ab2138c7ef6ed1707eaed829d1a642e7a
|
@@ -11,7 +11,7 @@ module FastlaneCore
|
|
11
11
|
|
12
12
|
def initialize(available_options, values)
|
13
13
|
@available_options = available_options
|
14
|
-
@values = values
|
14
|
+
@values = values || {}
|
15
15
|
|
16
16
|
verify_input_types
|
17
17
|
verify_value_exists
|
@@ -64,7 +64,12 @@ module FastlaneCore
|
|
64
64
|
|
65
65
|
value ||= @values[key]
|
66
66
|
# TODO: configuration files
|
67
|
-
|
67
|
+
|
68
|
+
if value == nil
|
69
|
+
value = ENV[option.env_name]
|
70
|
+
option.verify!(value) if value
|
71
|
+
end
|
72
|
+
|
68
73
|
value = option.default_value if value == nil
|
69
74
|
value = false if (value == nil and not option.is_string) # by default boolean flags are false
|
70
75
|
|
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.3.
|
4
|
+
version: 0.3.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: 2015-03-
|
11
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|