fastlane_core 0.52.2 → 0.52.3

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: e254d0408efc312fe0c1c30f8049a92bf8f30413
4
- data.tar.gz: f1a07a4d4c11e320a934b481ef53e61707c665af
3
+ metadata.gz: 92f15a4bd6c1dc022f4c5c92ef73b4be3961c574
4
+ data.tar.gz: 00c5abdc735ee66f57d348d2ab063d131bafa08c
5
5
  SHA512:
6
- metadata.gz: e99fd51fbc0f68215832cec1e9ab8a1a19c4951c9bdb07fbac6751291cd908f3a464315fb6ee2aed8dcd1ddd93b8732e4b286fc941b5886bd0bfcdc5e1686204
7
- data.tar.gz: 7d8c8bafef81a8db11e4f9978ab005d57f90baf6dcd20324b8f7e56f0c805db506b81b701aeb8b17e24b458a27ca876cccaabfe00812ba3d487575a96fdd1642
6
+ metadata.gz: bd96d7f8f83114431743612f1fed439ff86fc20370f7053aa4d2b3a95d578f41089bb624bacc368c6f74a6f24be22c87766609b2f553c88779706945bef143e0
7
+ data.tar.gz: 35eb0fac284b606043916e1ce159d0f0c3c149efbe746b7cd2e18e736658d8c4d3f2fde3c1a074f173038c4b459e396950fc50c4fc32adae86182ef9bfdb0da8
@@ -23,22 +23,50 @@ module FastlaneCore
23
23
  # rubocop:disable Lint/Eval
24
24
  eval(content) # this is okay in this case
25
25
  # rubocop:enable Lint/Eval
26
+
27
+ print_resulting_config_values(path) # only on success
26
28
  rescue SyntaxError => ex
27
29
  line = ex.to_s.match(/\(eval\):(\d+)/)[1]
28
30
  UI.user_error!("Syntax error in your configuration file '#{path}' on line #{line}: #{ex}")
29
31
  end
30
32
  end
31
33
 
34
+ def print_resulting_config_values(path)
35
+ require 'terminal-table'
36
+ UI.success("Successfully loaded '#{File.expand_path(path)}' 📄")
37
+
38
+ # Show message when self.modified_values is empty
39
+ if self.modified_values.empty?
40
+ UI.important("No values defined in '#{path}'")
41
+ return
42
+ end
43
+
44
+ rows = self.modified_values.collect do |key, value|
45
+ [key, value] if value.to_s.length > 0
46
+ end.compact
47
+
48
+ puts ""
49
+ puts Terminal::Table.new(rows: rows, title: "Detected Values from '#{path}'")
50
+ puts ""
51
+ end
52
+
53
+ # This is used to display only the values that have changed in the summary table
54
+ def modified_values
55
+ @modified_values ||= {}
56
+ end
57
+
32
58
  def method_missing(method_sym, *arguments, &block)
33
59
  # First, check if the key is actually available
34
- if self.config.all_keys.include? method_sym
60
+ if self.config.all_keys.include?(method_sym)
35
61
  # This silently prevents a value from having its value set more than once.
36
62
  return unless self.config._values[method_sym].to_s.empty?
37
63
 
38
64
  value = arguments.first
39
65
  value = yield if value.nil? && block_given?
40
66
 
41
- self.config[method_sym] = value unless value.nil?
67
+ return if value.nil?
68
+ self.modified_values[method_sym] = value
69
+ self.config[method_sym] = value
42
70
  else
43
71
  # We can't set this value, maybe the tool using this configuration system has its own
44
72
  # way of handling this block, as this might be a special block (e.g. ipa block) that's only
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.52.2".freeze
2
+ VERSION = "0.52.3".freeze
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.52.2
4
+ version: 0.52.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -200,7 +200,7 @@ dependencies:
200
200
  requirements:
201
201
  - - ">="
202
202
  - !ruby/object:Gem::Version
203
- version: 0.16.1
203
+ version: 0.16.2
204
204
  - - "<"
205
205
  - !ruby/object:Gem::Version
206
206
  version: 1.0.0
@@ -210,7 +210,7 @@ dependencies:
210
210
  requirements:
211
211
  - - ">="
212
212
  - !ruby/object:Gem::Version
213
- version: 0.16.1
213
+ version: 0.16.2
214
214
  - - "<"
215
215
  - !ruby/object:Gem::Version
216
216
  version: 1.0.0
@@ -341,33 +341,33 @@ dependencies:
341
341
  - !ruby/object:Gem::Version
342
342
  version: '0'
343
343
  - !ruby/object:Gem::Dependency
344
- name: rubocop
344
+ name: danger
345
345
  requirement: !ruby/object:Gem::Requirement
346
346
  requirements:
347
- - - "~>"
347
+ - - ">="
348
348
  - !ruby/object:Gem::Version
349
- version: 0.38.0
349
+ version: 0.1.1
350
350
  type: :development
351
351
  prerelease: false
352
352
  version_requirements: !ruby/object:Gem::Requirement
353
353
  requirements:
354
- - - "~>"
354
+ - - ">="
355
355
  - !ruby/object:Gem::Version
356
- version: 0.38.0
356
+ version: 0.1.1
357
357
  - !ruby/object:Gem::Dependency
358
- name: danger
358
+ name: rubocop
359
359
  requirement: !ruby/object:Gem::Requirement
360
360
  requirements:
361
- - - ">="
361
+ - - "~>"
362
362
  - !ruby/object:Gem::Version
363
- version: 0.1.1
363
+ version: 0.44.0
364
364
  type: :development
365
365
  prerelease: false
366
366
  version_requirements: !ruby/object:Gem::Requirement
367
367
  requirements:
368
- - - ">="
368
+ - - "~>"
369
369
  - !ruby/object:Gem::Version
370
- version: 0.1.1
370
+ version: 0.44.0
371
371
  description: Contains all shared code/dependencies of the fastlane.tools
372
372
  email:
373
373
  - fastlanecore@krausefx.com
@@ -432,7 +432,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
432
432
  version: '0'
433
433
  requirements: []
434
434
  rubyforge_project:
435
- rubygems_version: 2.4.5.1
435
+ rubygems_version: 2.6.6
436
436
  signing_key:
437
437
  specification_version: 4
438
438
  summary: Contains all shared code/dependencies of the fastlane.tools