fastlane_core 0.18.2 → 0.19.0

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: b676e59d44c4765d81c51f835d59528b1d7d097f
4
- data.tar.gz: 0c50ae8d35dda5fca9d467f341d5f2ccc9920acc
3
+ metadata.gz: 9e67c862d0011ece1cac8c986476f38347917df1
4
+ data.tar.gz: d945f27fe8f0799e73915c914af7aef164f8e8c7
5
5
  SHA512:
6
- metadata.gz: f665773841eb949b5f3cd7909d6fe13e06bdb6daf38593959f17dfe55013b344dfa384c869bc2cfa6793e742f9a8fb55c79e3679ee3463db9203dc32bc2b69a5
7
- data.tar.gz: d83427a804a5038a3fcee7f4e81d85f8c4574235ee1b5be6aef7f1e30d10e1615fedcc3c00dee9c4b04573f288b702a271291c934be9a9e7d20acc0f3cf2229b
6
+ metadata.gz: 23bbba2dc74a198d68a2dd0898d6a28e19f1367a788ce066a38096cbaf9c2501c5689cbe7cdb76c3981dadcebca7c6eafe5c2c79451d6ec6805d7642ae6cb7dc
7
+ data.tar.gz: 30003541ce54583e9a05a4e657eaff9d0ccced802badc667beabfa46047bd8de43b3e6dc49bb8f6e894b227a3a48fc7e326fe6311c889e05a26501ad26c8c997
data/lib/fastlane_core.rb CHANGED
@@ -11,6 +11,7 @@ require 'fastlane_core/itunes_transporter'
11
11
  require 'fastlane_core/provisioning_profile'
12
12
  require 'fastlane_core/command_executor'
13
13
  require 'fastlane_core/ipa_upload_package_builder'
14
+ require 'fastlane_core/print_table'
14
15
 
15
16
  # Third Party code
16
17
  require 'colored'
@@ -9,19 +9,22 @@ module FastlaneCore
9
9
  def initialize(config, path, block_for_missing)
10
10
  self.config = config
11
11
  @block_for_missing = block_for_missing
12
+ content = File.read(path)
13
+
14
+ if content.tr!('“”‘’‛', %(""'''))
15
+ Helper.log.error "Your #{File.basename(path)} has had smart quotes sanitised. " \
16
+ 'To avoid issues in the future, you should not use ' \
17
+ 'TextEdit for editing it. If you are not using TextEdit, ' \
18
+ 'you should turn off smart quotes in your editor of choice.'.red
19
+ end
12
20
 
13
21
  begin
14
22
  # rubocop:disable Lint/Eval
15
- eval(File.read(path)) # this is okay in this case
23
+ eval(content) # this is okay in this case
16
24
  # rubocop:enable Lint/Eval
17
25
  rescue SyntaxError => ex
18
- if ex.to_s.include? "‘"
19
- Helper.log.fatal ex
20
- raise "Invalid quotation: You used the invalid quote ‘ instead of '. Make sure to use a good text editor like Sublime Text to edit your configuration file".red
21
- else
22
- line = ex.to_s.match(/\(eval\):(\d+)/)[1]
23
- raise "Syntax error in your configuration file '#{path}' on line #{line}: #{ex}".red
24
- end
26
+ line = ex.to_s.match(/\(eval\):(\d+)/)[1]
27
+ raise "Syntax error in your configuration file '#{path}' on line #{line}: #{ex}".red
25
28
  end
26
29
  end
27
30
 
@@ -0,0 +1,31 @@
1
+ module FastlaneCore
2
+ class PrintTable
3
+ class << self
4
+ # This method prints out all the user inputs in a nice table. Useful to summarize the run
5
+ # You can pass an array to `hide_key` if you don't want certain elements to show up (symbols)
6
+ def print_values(config: nil, title: nil, hide_keys: [])
7
+ require 'terminal-table'
8
+ rows = []
9
+
10
+ config.available_options.each do |config_item|
11
+ value = config[config_item.key]
12
+ next if value.nil?
13
+ next if value.to_s == ""
14
+ next if hide_keys.include?(config_item.key)
15
+
16
+ rows << [config_item.key, value]
17
+ end
18
+
19
+ params = {}
20
+ params[:rows] = rows
21
+ params[:title] = title if title
22
+
23
+ puts ""
24
+ puts Terminal::Table.new(params)
25
+ puts ""
26
+
27
+ return params
28
+ end
29
+ end
30
+ end
31
+ end
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.18.2"
2
+ VERSION = "0.19.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.18.2
4
+ version: 0.19.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-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '3.1'
139
+ - !ruby/object:Gem::Dependency
140
+ name: terminal-table
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.4.5
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.4.5
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: credentials_manager
141
155
  requirement: !ruby/object:Gem::Requirement
@@ -323,6 +337,7 @@ files:
323
337
  - lib/fastlane_core/itunes_search_api.rb
324
338
  - lib/fastlane_core/itunes_transporter.rb
325
339
  - lib/fastlane_core/languages.rb
340
+ - lib/fastlane_core/print_table.rb
326
341
  - lib/fastlane_core/provisioning_profile.rb
327
342
  - lib/fastlane_core/update_checker.rb
328
343
  - lib/fastlane_core/version.rb
@@ -346,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
346
361
  version: '0'
347
362
  requirements: []
348
363
  rubyforge_project:
349
- rubygems_version: 2.4.5
364
+ rubygems_version: 2.4.6
350
365
  signing_key:
351
366
  specification_version: 4
352
367
  summary: Contains all shared code/dependencies of the fastlane.tools