fastlane_core 0.57.1 → 0.57.2

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: 4ef8059d39fd6e1a079ca43d6b5c27c13612cf83
4
- data.tar.gz: cdcf352b8a85040f5899791a2f2d958ebb1afe7f
3
+ metadata.gz: a20ff1a3f4f84575caada1955e8d9972ae40f1dd
4
+ data.tar.gz: c3b142a3855f7c2c0e1532e952b08b66437662e4
5
5
  SHA512:
6
- metadata.gz: ef4941cf7ef06a7c292c5251cffb7c2e8787603117b6b91a0c3c6a37d098316bf5a5b6ede607da2dd59498050874a99f520f3bfb36b6b1b9919eddb1e73af25e
7
- data.tar.gz: 0d26acb90628de7131639bd044fb4eb9f6f0e2ae4c408e61569f1bf8967ceb054649a122714c93050252c1ac90aa7d08dcb1b01d8cdfd50c740f7f6d408ddf19
6
+ metadata.gz: 1f162e2f8037112f4c1c93c918e9b81496a919bbce67b48b35d81d6754e66dfaffb0650f3ef028620b7ebbb72a213cb5ee77ea1658b0dd2e13ce127480df9cab
7
+ data.tar.gz: 794e509798e95c8036882ab4aed97d76cb36158730540861b9a35c699b10e7062e8153bdac65b20b34b59ba011591ea7d155afc3c08b55e142fbb60e335e4949
@@ -1,6 +1,6 @@
1
1
  module FastlaneCore
2
2
  class ConfigItem
3
- attr_accessor :key, :env_name, :description, :short_option, :default_value, :verify_block, :optional, :conflicting_options, :conflict_block, :deprecated
3
+ attr_accessor :key, :env_name, :description, :short_option, :default_value, :verify_block, :optional, :conflicting_options, :conflict_block, :deprecated, :sensitive
4
4
 
5
5
  # Creates a new option
6
6
  # @param key (Symbol) the key which is used as command paramters or key in the fastlane tools
@@ -17,7 +17,8 @@ module FastlaneCore
17
17
  # @param conflicting_options ([]) array of conflicting option keys(@param key). This allows to resolve conflicts intelligently
18
18
  # @param conflict_block an optional block which is called when options conflict happens
19
19
  # @param deprecated (String) Set if the option is deprecated. A deprecated option should be optional and is made optional if the parameter isn't set, and fails otherwise
20
- def initialize(key: nil, env_name: nil, description: nil, short_option: nil, default_value: nil, verify_block: nil, is_string: true, type: nil, optional: nil, conflicting_options: nil, conflict_block: nil, deprecated: nil)
20
+ # @param sensitive (Boolean) Set if the variable is sensitive, such as a password or API token, to prevent echoing when prompted for the parameter
21
+ def initialize(key: nil, env_name: nil, description: nil, short_option: nil, default_value: nil, verify_block: nil, is_string: true, type: nil, optional: nil, conflicting_options: nil, conflict_block: nil, deprecated: nil, sensitive: nil)
21
22
  UI.user_error!("key must be a symbol") unless key.kind_of? Symbol
22
23
  UI.user_error!("env_name must be a String") unless (env_name || '').kind_of? String
23
24
 
@@ -42,6 +43,8 @@ module FastlaneCore
42
43
  end
43
44
  optional = false if optional.nil?
44
45
 
46
+ sensitive = false if sensitive.nil?
47
+
45
48
  @key = key
46
49
  @env_name = env_name
47
50
  @description = description
@@ -54,6 +57,7 @@ module FastlaneCore
54
57
  @conflicting_options = conflicting_options
55
58
  @conflict_block = conflict_block
56
59
  @deprecated = deprecated
60
+ @sensitive = sensitive
57
61
  end
58
62
 
59
63
  # This will raise an exception if the value is not valid
@@ -207,7 +207,7 @@ module FastlaneCore
207
207
 
208
208
  while value.nil?
209
209
  UI.important("To not be asked about this value, you can specify it using '#{option.key}'")
210
- value = UI.input("#{option.description}: ")
210
+ value = option.sensitive ? UI.password("#{option.description}: ") : UI.input("#{option.description}: ")
211
211
  # Also store this value to use it from now on
212
212
  begin
213
213
  set(key, value)
@@ -28,6 +28,8 @@ module FastlaneCore
28
28
 
29
29
  def self.create_folder!(path = nil)
30
30
  path = File.join(path || '.', FOLDER_NAME)
31
+ return if File.directory?(path) # directory is already there
32
+ UI.user_error!("Found a file called 'fastlane' at path '#{path}', please delete it") if File.exist?(path)
31
33
  FileUtils.mkdir_p(path)
32
34
  UI.success "Created new folder '#{path}'."
33
35
  end
@@ -68,9 +68,9 @@ module FastlaneCore
68
68
  url += URI.encode_www_form(
69
69
  versions: versions.to_json,
70
70
  steps: launches.to_json,
71
- error: @error,
72
- crash: @crash ? @error : nil,
73
- fastfile_id: ENV["GENERATED_FASTFILE_ID"]
71
+ error: @error || "",
72
+ crash: @crash ? @error : "",
73
+ fastfile_id: ENV["GENERATED_FASTFILE_ID"] || ""
74
74
  )
75
75
 
76
76
  if Helper.is_test? # don't send test data
@@ -104,11 +104,11 @@ module Commander
104
104
  ui.error "- If you use system Ruby:"
105
105
  ui.error " - Run `brew update && brew install ruby`"
106
106
  ui.error "- If you use rbenv with ruby-build:"
107
- ui.error " - Run `brew update && brew upgrade ruby-build && rbenv install ruby-2.3.1`"
108
- ui.error " - Run `rbenv global ruby-2.3.1` to make it the new global default Ruby version"
107
+ ui.error " - Run `brew update && brew upgrade ruby-build && rbenv install 2.3.1`"
108
+ ui.error " - Run `rbenv global 2.3.1` to make it the new global default Ruby version"
109
109
  ui.error "- If you use rvm:"
110
110
  ui.error " - First run `rvm osx-ssl-certs update all`"
111
- ui.error " - Then run `rvm reinstall ruby-2.3.1 --with-openssl-dir=/usr/local"
111
+ ui.error " - Then run `rvm reinstall ruby-2.3.1 --with-openssl-dir=/usr/local`"
112
112
  ui.error ""
113
113
  ui.error "If that doesn't fix your issue, please google for the following error message:"
114
114
  ui.error " '#{e}'"
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.57.1".freeze
2
+ VERSION = "0.57.2".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.57.1
4
+ version: 0.57.2
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-11-23 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -86,20 +86,6 @@ dependencies:
86
86
  - - "<="
87
87
  - !ruby/object:Gem::Version
88
88
  version: 5.0.0
89
- - !ruby/object:Gem::Dependency
90
- name: babosa
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- version: '0'
96
- type: :runtime
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: '0'
103
89
  - !ruby/object:Gem::Dependency
104
90
  name: excon
105
91
  requirement: !ruby/object:Gem::Requirement
@@ -434,7 +420,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
434
420
  version: '0'
435
421
  requirements: []
436
422
  rubyforge_project:
437
- rubygems_version: 2.2.2
423
+ rubygems_version: 2.5.1
438
424
  signing_key:
439
425
  specification_version: 4
440
426
  summary: Contains all shared code/dependencies of the fastlane.tools