fastlane_core 0.53.0 → 0.54.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: de297dac76156da36d6a66901d9ba27e0127be60
4
- data.tar.gz: bef6ac3110c95a12cc5d1685027786ede376c975
3
+ metadata.gz: ac4e1e5deb4f2d9dd7202c9b24bf841eea86fcb6
4
+ data.tar.gz: 8b9ae8ce984f6f6ab9e8ac8efc8730728273d8dd
5
5
  SHA512:
6
- metadata.gz: c9d71b57e5b5b1ab9c044bdab6b203efcaee0f7c7f72d4d7789fd4bc5878cda78aa1a3e274eb53c4b6f2000f38a12549f4d5d01bb53bc4fcde3626d50e700ee7
7
- data.tar.gz: d05afcbf2f3cd54195f0532890f0c0bbf01e66905b4220abec19e7ead72fea4ab80f773c1edb39e93968c82c0913bdbf6cb898276448c5d81f49d1aac7b68726
6
+ metadata.gz: d1ba10195358ced1558d39f1d363e78c287db7e838929156fc3109fb9feec310985f41dcd49efac1078f59386fe819402352b7ec12c2ddb758a1de7c62138f3d
7
+ data.tar.gz: 79ee89994e46beea3fe4506e5bfb16cc0c0119c22d55d3e51e02d863278e43545e4a0fcc0b2f8d470530ac4c0955c1eec036d79e363b9a0d62dcea202bddcda3
data/README.md CHANGED
@@ -26,9 +26,8 @@ FastlaneCore
26
26
  ============
27
27
 
28
28
  [![Twitter: @FastlaneTools](https://img.shields.io/badge/contact-@FastlaneTools-blue.svg?style=flat)](https://twitter.com/FastlaneTools)
29
- [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/fastlane/blob/master/fastlane_core/LICENSE)
29
+ [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/fastlane/blob/master/fastlane_core/LICENSE)
30
30
  [![Gem](https://img.shields.io/gem/v/fastlane_core.svg?style=flat)](http://rubygems.org/gems/fastlane_core)
31
- [![Build Status](https://img.shields.io/circleci/project/fastlane/fastlane/master.svg?style=flat)](https://circleci.com/gh/fastlane/fastlane)
32
31
 
33
32
  All shared code of the fastlane tools is stored in this repository.
34
33
 
data/lib/fastlane_core.rb CHANGED
@@ -25,6 +25,7 @@ require 'fastlane_core/project'
25
25
  require 'fastlane_core/device_manager'
26
26
  require 'fastlane_core/ui/ui'
27
27
  require 'fastlane_core/tool_collector'
28
+ require 'fastlane_core/fastlane_folder'
28
29
 
29
30
  # Third Party code
30
31
  require 'colored'
@@ -177,6 +177,13 @@ module FastlaneCore
177
177
 
178
178
  # `if value == nil` instead of ||= because false is also a valid value
179
179
  if value.nil? and option.env_name and ENV[option.env_name]
180
+
181
+ # We want to inform the user that we took the value
182
+ # from an environment variable
183
+ # however we don't print the actual value, as it may contain sensitive information
184
+ # The user can easily find the actual value by print out the environment
185
+ UI.verbose("Taking value for '#{key}' from environment variable '#{option.env_name}'")
186
+
180
187
  value = option.auto_convert_value(ENV[option.env_name].dup)
181
188
  option.verify!(value) if value
182
189
  end
@@ -0,0 +1,35 @@
1
+ module FastlaneCore
2
+ class FastlaneFolder
3
+ FOLDER_NAME = 'fastlane'
4
+
5
+ # Path to the fastlane folder containing the Fastfile and other configuration files
6
+ def self.path
7
+ value ||= "./#{FOLDER_NAME}/" if File.directory?("./#{FOLDER_NAME}/")
8
+ value ||= "./.#{FOLDER_NAME}/" if File.directory?("./.#{FOLDER_NAME}/") # hidden folder
9
+ value ||= "./" if File.basename(Dir.getwd) == FOLDER_NAME && File.exist?('Fastfile') # inside the folder
10
+ value ||= "./" if File.basename(Dir.getwd) == ".#{FOLDER_NAME}" && File.exist?('Fastfile') # inside the folder and hidden
11
+
12
+ value = nil if Helper.is_test? # this is required, as the tests would use the ./fastlane folder otherwise
13
+ return value
14
+ end
15
+
16
+ # Path to the Fastfile inside the fastlane folder. This is nil when none is available
17
+ def self.fastfile_path
18
+ path = File.join(self.path || '.', 'Fastfile')
19
+ return path if File.exist?(path)
20
+ return nil
21
+ end
22
+
23
+ # Does a fastlane configuration already exist?
24
+ def self.setup?
25
+ return false unless self.fastfile_path
26
+ File.exist?(self.fastfile_path)
27
+ end
28
+
29
+ def self.create_folder!(path = nil)
30
+ path = File.join(path || '.', FOLDER_NAME)
31
+ FileUtils.mkdir_p(path)
32
+ UI.success "Created new folder '#{path}'."
33
+ end
34
+ end
35
+ end
@@ -25,6 +25,11 @@ module FastlaneCore
25
25
  defined? SpecHelper
26
26
  end
27
27
 
28
+ # removes ANSI colors from string
29
+ def self.strip_ansi_colors(str)
30
+ str.gsub(/\e\[([;\d]+)?m/, '')
31
+ end
32
+
28
33
  # @return [boolean] true if executing with bundler (like 'bundle exec fastlane [action]')
29
34
  def self.bundler?
30
35
  # Bundler environment variable
@@ -34,6 +39,13 @@ module FastlaneCore
34
39
  return false
35
40
  end
36
41
 
42
+ # Do we run from a bundled fastlane, which contains Ruby and OpenSSL?
43
+ # Usually this means the fastlane directory is ~/.fastlane/bin/
44
+ # We set this value via the environment variable `SELF_CONTAINED`
45
+ def self.contained_fastlane?
46
+ ENV["SELF_CONTAINED"].to_s == "true"
47
+ end
48
+
37
49
  # @return [boolean] true if building in a known CI environment
38
50
  def self.ci?
39
51
  # Check for Jenkins, Travis CI, ... environment variables
@@ -43,6 +55,15 @@ module FastlaneCore
43
55
  return false
44
56
  end
45
57
 
58
+ def self.windows?
59
+ # taken from: http://stackoverflow.com/a/171011/1945875
60
+ (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
61
+ end
62
+
63
+ def self.linux?
64
+ (/linux/ =~ RUBY_PLATFORM) != nil
65
+ end
66
+
46
67
  # Is the currently running computer a Mac?
47
68
  def self.mac?
48
69
  (/darwin/ =~ RUBY_PLATFORM) != nil
@@ -25,6 +25,7 @@ module Fastlane
25
25
  def inspector_recieved_empty_report(report, inspector)
26
26
  puts "Found no similar issues. To create a new issue, please visit:"
27
27
  puts "https://github.com/#{inspector.repo_owner}/#{inspector.repo_name}/issues/new"
28
+ puts "Run `fastlane env` to append the fastlane environment to your issue"
28
29
  end
29
30
 
30
31
  # Called when there have been networking issues in creating the report.
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.53.0".freeze
2
+ VERSION = "0.54.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.53.0
4
+ version: 0.54.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-10-21 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -387,6 +387,7 @@ files:
387
387
  - lib/fastlane_core/configuration/configuration_file.rb
388
388
  - lib/fastlane_core/core_ext/string.rb
389
389
  - lib/fastlane_core/device_manager.rb
390
+ - lib/fastlane_core/fastlane_folder.rb
390
391
  - lib/fastlane_core/feature/feature.rb
391
392
  - lib/fastlane_core/features.rb
392
393
  - lib/fastlane_core/helper.rb
@@ -432,7 +433,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
432
433
  version: '0'
433
434
  requirements: []
434
435
  rubyforge_project:
435
- rubygems_version: 2.6.6
436
+ rubygems_version: 2.6.7
436
437
  signing_key:
437
438
  specification_version: 4
438
439
  summary: Contains all shared code/dependencies of the fastlane.tools