fastlane_core 0.7.6 → 0.8.0

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: a65455f1d1c68aa1b29a99e4b3eb5badc76db638
4
- data.tar.gz: 23fe51fee77ffe23438c32955829ec7d882ce406
3
+ metadata.gz: 3be5b3d89d908dcb33b2b0c061f98f55b6206aee
4
+ data.tar.gz: 76901d3136386717fe93a96d4e03fac130dab16b
5
5
  SHA512:
6
- metadata.gz: c3cc90788b7df9635c035219429f03e6047fc08e939d713f8e299820d05beaebe77fdc3478e7aa5127603b9dc4f242de25ddd6c8fe7430a825b02ed8c43f0359
7
- data.tar.gz: e3ca607b012d9c9694cdcb096634872d08195764fa80dc6edfdf2e3ee17f74951eb4c63a514a99a10d9fa0e07afe27860a1cf850cd356b197611069d7780b14a
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
- # TODO: configuration files
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
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.7.6"
2
+ VERSION = "0.8.0"
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.7.6
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-05-28 00:00:00.000000000 Z
11
+ date: 2015-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json