fastlane_core 0.7.5 → 0.7.6

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: 83123b3408654058c7828cab09f1939c36fc2168
4
- data.tar.gz: 8c9f17dd63b1d5d53da65830329b8ec759338df9
3
+ metadata.gz: a65455f1d1c68aa1b29a99e4b3eb5badc76db638
4
+ data.tar.gz: 23fe51fee77ffe23438c32955829ec7d882ce406
5
5
  SHA512:
6
- metadata.gz: 5923781cb4d8f816f3bc0b289f11a21828c52c4c146d418a50efaf21c9ba299b7ad5162c84246306b658cfc9e9ebfa4717d6d5c6b215e6dd43832ea5ab46adc1
7
- data.tar.gz: 09d84656501637b7fe6ac9796150a4f7325eef5a33aaf75085570d28fe83509efad2d14ecb0152fe95e53eda15ea22e23fca76c3ac2c6f81b2999a6a86b35fff
6
+ metadata.gz: c3cc90788b7df9635c035219429f03e6047fc08e939d713f8e299820d05beaebe77fdc3478e7aa5127603b9dc4f242de25ddd6c8fe7430a825b02ed8c43f0359
7
+ data.tar.gz: e3ca607b012d9c9694cdcb096634872d08195764fa80dc6edfdf2e3ee17f74951eb4c63a514a99a10d9fa0e07afe27860a1cf850cd356b197611069d7780b14a
@@ -24,6 +24,7 @@ module FastlaneCore
24
24
  verify_input_types
25
25
  verify_value_exists
26
26
  verify_no_duplicates
27
+ verify_default_value_matches_verify_block
27
28
  end
28
29
 
29
30
  def verify_input_types
@@ -59,6 +60,20 @@ module FastlaneCore
59
60
  end
60
61
  end
61
62
 
63
+ # Verifies the default value is also valid
64
+ def verify_default_value_matches_verify_block
65
+ @available_options.each do |item|
66
+ if item.verify_block and item.default_value
67
+ begin
68
+ item.verify_block.call(item.default_value)
69
+ rescue => ex
70
+ Helper.log.fatal ex
71
+ raise "Invalid default value for #{item.key}, doesn't match verify_block".red
72
+ end
73
+ end
74
+ end
75
+ end
76
+
62
77
  # Using the class
63
78
 
64
79
  # Returns the value for a certain key. fastlane_core tries to fetch the value from different sources
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.7.5"
2
+ VERSION = "0.7.6"
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.5
4
+ version: 0.7.6
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-22 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -307,7 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
307
  version: '0'
308
308
  requirements: []
309
309
  rubyforge_project:
310
- rubygems_version: 2.2.2
310
+ rubygems_version: 2.4.7
311
311
  signing_key:
312
312
  specification_version: 4
313
313
  summary: Contains all shared code/dependencies of the fastlane.tools