fastlane_core 0.59.0 → 1.0.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: 2e2ff1e344143708003bc03e69a450a30ad102c2
4
- data.tar.gz: 6cac75551090b34558637a7c3e482a26e045ff97
3
+ metadata.gz: 69b0323c027be4e1810b7748af52a21733ea4c83
4
+ data.tar.gz: 33c4a7feeb715c9f8287ba4989ec17fbe763eb16
5
5
  SHA512:
6
- metadata.gz: abdf6070b64167505a82f546845831a25d77e5ea6af9484e867f2c9c1cb75a9553085e198c2708c50d7eb17b69933f3589551bd8465df12e912cf1f99c709207
7
- data.tar.gz: 2204538ec1e2856a4276f1c4c3efca5d11e7e85472c57b0f801f9045203d34dbff5776ecfa6d0a6b58ce2f0090e03bff6b417365027a5ee88ad48803adbe50cf
6
+ metadata.gz: 4e5129720ea50493990a428185bef4edbd28a9e438ea203296a70d90efdfa5297c5dbee4fd22e5947121dc6db49d5c2070081f3bbacb360756d6f0448b51ce76
7
+ data.tar.gz: 5ab131d5e479c893c86d021cefb6e92974568ed05a26ea44750c961ad554292378a4e8c431292b784c3b856e44a9f3b5027525d44da523ff9f93a309e8d1f418
@@ -1,8 +1,10 @@
1
1
  require 'json'
2
+ require 'fastlane/version'
2
3
 
3
4
  # Ruby monkey-patches - should be before almost all else
4
5
  require 'fastlane_core/core_ext/string'
5
6
 
7
+ require 'fastlane_core/env'
6
8
  require 'fastlane_core/version'
7
9
  require 'fastlane_core/feature/feature'
8
10
  require 'fastlane_core/features'
@@ -1,4 +1,5 @@
1
1
  require 'commander'
2
+ require 'fastlane/version'
2
3
 
3
4
  module FastlaneCore
4
5
  class CommanderGenerator
@@ -0,0 +1,9 @@
1
+ module FastlaneCore
2
+ class Env
3
+ def self.truthy?(env)
4
+ return false unless ENV[env]
5
+ return false if ["no", "false", "off", "0"].include?(ENV[env].to_s)
6
+ return true
7
+ end
8
+ end
9
+ end
@@ -11,8 +11,7 @@ module FastlaneCore
11
11
  def enabled?(env_var)
12
12
  feature = @features[env_var]
13
13
  return false if feature.nil?
14
- return false if ENV[feature.env_var] == '0' # '0' is a non-falsey value that should indicate feature switch disabled
15
- return ENV[feature.env_var] # rely on the truthiness of the value set in the environment variable
14
+ return FastlaneCore::Env.truthy?(feature.env_var)
16
15
  end
17
16
 
18
17
  def register_class_method(klass: nil, symbol: nil, disabled_symbol: nil, enabled_symbol: nil, env_var: nil)
@@ -99,17 +99,17 @@ module FastlaneCore
99
99
 
100
100
  # Do we want to disable the colored output?
101
101
  def self.colors_disabled?
102
- ENV["FASTLANE_DISABLE_COLORS"]
102
+ FastlaneCore::Env.truthy?("FASTLANE_DISABLE_COLORS")
103
103
  end
104
104
 
105
105
  # Does the user use the Mac stock terminal
106
106
  def self.mac_stock_terminal?
107
- !!ENV["TERM_PROGRAM_VERSION"]
107
+ FastlaneCore::Env.truthy?("TERM_PROGRAM_VERSION")
108
108
  end
109
109
 
110
110
  # Does the user use iTerm?
111
111
  def self.iterm?
112
- !!ENV["ITERM_SESSION_ID"]
112
+ FastlaneCore::Env.truthy?("ITERM_SESSION_ID")
113
113
  end
114
114
 
115
115
  # Logs base directory
@@ -204,7 +204,7 @@ module FastlaneCore
204
204
 
205
205
  # @return the full path to the iTMSTransporter executable
206
206
  def self.itms_path
207
- return ENV["FASTLANE_ITUNES_TRANSPORTER_PATH"] if ENV["FASTLANE_ITUNES_TRANSPORTER_PATH"]
207
+ return ENV["FASTLANE_ITUNES_TRANSPORTER_PATH"] if FastlaneCore::Env.truthy?("FASTLANE_ITUNES_TRANSPORTER_PATH")
208
208
  return '' unless self.is_mac? # so tests work on Linx too
209
209
 
210
210
  [
@@ -444,7 +444,7 @@ module FastlaneCore
444
444
  # If scheme not specified, do we want the scheme
445
445
  # matching project name?
446
446
  def automated_scheme_selection?
447
- !!ENV["AUTOMATED_SCHEME_SELECTION"]
447
+ FastlaneCore::Env.truthy?("AUTOMATED_SCHEME_SELECTION")
448
448
  end
449
449
  end
450
450
  end
@@ -55,7 +55,7 @@ module FastlaneCore
55
55
  end
56
56
 
57
57
  def did_finish
58
- return false if ENV["FASTLANE_OPT_OUT_USAGE"]
58
+ return false if FastlaneCore::Env.truthy?("FASTLANE_OPT_OUT_USAGE")
59
59
 
60
60
  if !did_show_message? and !Helper.is_ci?
61
61
  show_message
@@ -98,7 +98,25 @@ module Commander
98
98
  ui.error "not be available to your system installed Ruby (#{RUBY_VERSION})"
99
99
  end
100
100
  ui.error ""
101
- ui.error "The best solution is to install a new version of Ruby"
101
+ ui.error "The best solution is to use the self-contained fastlane version."
102
+ ui.error "Which ships with a bundled OpenSSL,ruby and all gems - so you don't depend on system libraries"
103
+ ui.error " - Use One-Click-Installer:"
104
+ ui.error " - download fastlane at https://download.fastlane.tools"
105
+ ui.error "-----------------------------------------------------------"
106
+ ui.error " - extract the archive and double click the `install`"
107
+ ui.error "-----------------------------------------------------------"
108
+ ui.error " - Use Homebrew"
109
+ ui.error " - update brew with `brew update`"
110
+ ui.error " - install fastlane:"
111
+ ui.error "-----------------------------------------------------------"
112
+ ui.error " - 🚀 `brew cask install fastlane` 🚀"
113
+ ui.error "-----------------------------------------------------------"
114
+ ui.error "for more details on ways to install fastlane please refer the documentation:"
115
+ ui.error "-----------------------------------------------------------"
116
+ ui.error " 🚀 https://docs.fastlane.tools 🚀 "
117
+ ui.error "-----------------------------------------------------------"
118
+ ui.error ""
119
+ ui.error "You can also install a new version of Ruby"
102
120
  ui.error ""
103
121
  ui.error "- Make sure OpenSSL is installed with Homebrew: `brew update && brew upgrade openssl`"
104
122
  ui.error "- If you use system Ruby:"
@@ -152,7 +170,7 @@ module Commander
152
170
  end
153
171
 
154
172
  def show_github_issues(message_or_error)
155
- return if ENV["FASTLANE_HIDE_GITHUB_ISSUES"]
173
+ return if FastlaneCore::Env.truthy?("FASTLANE_HIDE_GITHUB_ISSUES")
156
174
  return if FastlaneCore::Helper.test?
157
175
 
158
176
  require 'gh_inspector'
@@ -16,7 +16,7 @@ module FastlaneCore
16
16
  @log.formatter = proc do |severity, datetime, progname, msg|
17
17
  if $verbose
18
18
  string = "#{severity} [#{datetime.strftime('%Y-%m-%d %H:%M:%S.%2N')}]: "
19
- elsif ENV["FASTLANE_HIDE_TIMESTAMP"]
19
+ elsif FastlaneCore::Env.truthy?("FASTLANE_HIDE_TIMESTAMP")
20
20
  string = ""
21
21
  else
22
22
  string = "[#{datetime.strftime('%H:%M:%S')}]: "
@@ -11,7 +11,7 @@ module FastlaneCore
11
11
 
12
12
  def self.start_looking_for_update(gem_name)
13
13
  return if Helper.is_test?
14
- return if ENV["FASTLANE_SKIP_UPDATE_CHECK"]
14
+ return if FastlaneCore::Env.truthy?("FASTLANE_SKIP_UPDATE_CHECK")
15
15
 
16
16
  @start_time = Time.now
17
17
 
@@ -62,7 +62,7 @@ module FastlaneCore
62
62
  puts "# It is recommended to use the latest version.".green
63
63
  puts "# Please update using `#{self.update_command(gem_name: gem_name)}`.".green
64
64
 
65
- puts "# To see what's new, open https://github.com/fastlane/#{gem_name}/releases.".green if ENV["FASTLANE_HIDE_CHANGELOG"]
65
+ puts "# To see what's new, open https://github.com/fastlane/#{gem_name}/releases.".green if FastlaneCore::Env.truthy?("FASTLANE_HIDE_CHANGELOG")
66
66
 
67
67
  if !Helper.bundler? && !Helper.contained_fastlane? && Random.rand(5) == 1
68
68
  # We want to show this message from time to time, if the user doesn't use bundler, nor bundled fastlane
@@ -70,7 +70,7 @@ module FastlaneCore
70
70
  puts "# Run `sudo gem cleanup` from time to time to speed up fastlane".green
71
71
  end
72
72
  puts '#######################################################################'.green
73
- Changelog.show_changes(gem_name, current_version) unless ENV["FASTLANE_HIDE_CHANGELOG"]
73
+ Changelog.show_changes(gem_name, current_version) unless FastlaneCore::Env.truthy?("FASTLANE_HIDE_CHANGELOG")
74
74
  end
75
75
 
76
76
  # The command that the user should use to update their mac
@@ -128,7 +128,7 @@ module FastlaneCore
128
128
  end
129
129
 
130
130
  ["FASTLANE", "DELIVER", "PILOT", "PRODUCE", "PEM", "SIGH", "SNAPSHOT", "MATCH"].each do |current|
131
- return ENV["#{current}_APP_IDENTIFIER"] if ENV["#{current}_APP_IDENTIFIER"]
131
+ return ENV["#{current}_APP_IDENTIFIER"] if FastlaneCore::Env.truthy?("#{current}_APP_IDENTIFIER")
132
132
  end
133
133
 
134
134
  return CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
@@ -151,8 +151,8 @@ module FastlaneCore
151
151
  end
152
152
  end
153
153
 
154
- app_identifier ||= ENV["SUPPLY_PACKAGE_NAME"] if ENV["SUPPLY_PACKAGE_NAME"]
155
- app_identifier ||= ENV["SCREENGRAB_APP_PACKAGE_NAME"] if ENV["SCREENGRAB_APP_PACKAGE_NAME"]
154
+ app_identifier ||= ENV["SUPPLY_PACKAGE_NAME"] if FastlaneCore::Env.truthy?("SUPPLY_PACKAGE_NAME")
155
+ app_identifier ||= ENV["SCREENGRAB_APP_PACKAGE_NAME"] if FastlaneCore::Env.truthy?("SCREENGRAB_APP_PACKAGE_NAME")
156
156
  app_identifier ||= CredentialsManager::AppfileConfig.try_fetch_value(:package_name)
157
157
 
158
158
  # Add Android prefix to prevent collisions if there is an iOS app with the same identifier
@@ -173,7 +173,7 @@ module FastlaneCore
173
173
  # Use the `FASTLANE_OPT_OUT_USAGE` variable to opt out
174
174
  # The resulting value is e.g. ce12f8371df11ef6097a83bdf2303e4357d6f5040acc4f76019489fa5deeae0d
175
175
  def self.p_hash(args, gem_name)
176
- return nil if ENV["FASTLANE_OPT_OUT_USAGE"]
176
+ return nil if FastlaneCore::Env.truthy?("FASTLANE_OPT_OUT_USAGE")
177
177
  require 'credentials_manager'
178
178
 
179
179
  # check if this is an android project first because some of the same params exist for iOS and Android tools
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.59.0".freeze
2
+ VERSION = "1.0.0".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.59.0
4
+ version: 1.0.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: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2016-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -181,25 +181,25 @@ dependencies:
181
181
  - !ruby/object:Gem::Version
182
182
  version: 2.0.0
183
183
  - !ruby/object:Gem::Dependency
184
- name: credentials_manager
184
+ name: fastlane
185
185
  requirement: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - ">="
188
188
  - !ruby/object:Gem::Version
189
- version: 0.16.2
189
+ version: 2.0.0
190
190
  - - "<"
191
191
  - !ruby/object:Gem::Version
192
- version: 1.0.0
192
+ version: 3.0.0
193
193
  type: :runtime
194
194
  prerelease: false
195
195
  version_requirements: !ruby/object:Gem::Requirement
196
196
  requirements:
197
197
  - - ">="
198
198
  - !ruby/object:Gem::Version
199
- version: 0.16.2
199
+ version: 2.0.0
200
200
  - - "<"
201
201
  - !ruby/object:Gem::Version
202
- version: 1.0.0
202
+ version: 3.0.0
203
203
  - !ruby/object:Gem::Dependency
204
204
  name: bundler
205
205
  requirement: !ruby/object:Gem::Requirement
@@ -218,16 +218,16 @@ dependencies:
218
218
  name: rake
219
219
  requirement: !ruby/object:Gem::Requirement
220
220
  requirements:
221
- - - ">="
221
+ - - "<"
222
222
  - !ruby/object:Gem::Version
223
- version: '0'
223
+ version: '12'
224
224
  type: :development
225
225
  prerelease: false
226
226
  version_requirements: !ruby/object:Gem::Requirement
227
227
  requirements:
228
- - - ">="
228
+ - - "<"
229
229
  - !ruby/object:Gem::Version
230
- version: '0'
230
+ version: '12'
231
231
  - !ruby/object:Gem::Dependency
232
232
  name: rspec
233
233
  requirement: !ruby/object:Gem::Requirement
@@ -312,20 +312,6 @@ dependencies:
312
312
  - - ">="
313
313
  - !ruby/object:Gem::Version
314
314
  version: '0'
315
- - !ruby/object:Gem::Dependency
316
- name: fastlane
317
- requirement: !ruby/object:Gem::Requirement
318
- requirements:
319
- - - ">="
320
- - !ruby/object:Gem::Version
321
- version: '0'
322
- type: :development
323
- prerelease: false
324
- version_requirements: !ruby/object:Gem::Requirement
325
- requirements:
326
- - - ">="
327
- - !ruby/object:Gem::Version
328
- version: '0'
329
315
  - !ruby/object:Gem::Dependency
330
316
  name: danger
331
317
  requirement: !ruby/object:Gem::Requirement
@@ -373,6 +359,7 @@ files:
373
359
  - lib/fastlane_core/configuration/configuration_file.rb
374
360
  - lib/fastlane_core/core_ext/string.rb
375
361
  - lib/fastlane_core/device_manager.rb
362
+ - lib/fastlane_core/env.rb
376
363
  - lib/fastlane_core/fastlane_folder.rb
377
364
  - lib/fastlane_core/feature/feature.rb
378
365
  - lib/fastlane_core/features.rb
@@ -420,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
420
407
  version: '0'
421
408
  requirements: []
422
409
  rubyforge_project:
423
- rubygems_version: 2.4.5
410
+ rubygems_version: 2.6.8
424
411
  signing_key:
425
412
  specification_version: 4
426
413
  summary: Contains all shared code/dependencies of the fastlane.tools