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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b71366adf4b314624463dc2ea6071a1b45fdfaa
4
- data.tar.gz: d9c384d0df79afa89da41c937372cc9fbbee1989
3
+ metadata.gz: 71dd95868c34fe332a473af8a1b79ed3a925825e
4
+ data.tar.gz: ab33ebec0cd34ae223c2f8b1b72ed335babd79aa
5
5
  SHA512:
6
- metadata.gz: d641d8f801d277a98e409985206c90690206517a5bd851c11a751da5a9e88ea41c3670d7b1a0a183d5b08c168f52aaa845bfa550288c31ced46faa9604701713
7
- data.tar.gz: 1486be1a878cadb6385965a19fc9dfe6231811de878ea76b530078945f7e7d137dc65951a4b9588c6cbee97af3b1337f30aa892af5c5e5e2fcdd90f8aade247c
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
- value = ENV[key.to_s] if value == nil
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
 
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  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.3.0
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-06 00:00:00.000000000 Z
11
+ date: 2015-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json