fastlane 2.86.0.beta.20180313050023 → 2.86.0.beta.20180314050053

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: 325cc1eeb8c8d50d0df026d754c75fd6ae0991ce
4
- data.tar.gz: 5807512bdfd109b9529b8045ded991c5c728ff4f
3
+ metadata.gz: 6c64170eb0f3296197bd7f4e5929aed1462a711f
4
+ data.tar.gz: e9f573e81c6d48ba363498a838c043186e0d228c
5
5
  SHA512:
6
- metadata.gz: 35b21bbb60a9118176d3399c57240367a43ce84ccc3a6880cc1a33463b0845eb09f4a6af8d6cf348bf2b74a4da20091d603a064ba8635a0e1015c33159e645b2
7
- data.tar.gz: 30263f39bd7543332c0527b97f8f7a1476c7ae2402e3a223856fe91cb59ab41e901b10ed72db8c5791c67e65b4d7f3e4e987c3a3e02641c7681acf26a25b029e
6
+ metadata.gz: f4dafbfc3ad2cf5f309705a59b3f0371bec7948ef53ad527e12ee4ab4f95200f4238a9627cc2c2a20d1df791e9bb59473334a24a78444a08b415ac742e2761e8
7
+ data.tar.gz: b17594171fabbf745583e93639a8901a85a213f4e794777ea12ce95b8ff16af1d33a4e4f27537396d593c02a186868181ca08c146b9faa9b17e4cecc61384423
@@ -56,6 +56,15 @@ module Fastlane
56
56
 
57
57
  FastlaneCore::UpdateChecker.start_looking_for_update('fastlane')
58
58
 
59
+ # Loading any .env files before any lanes are called since
60
+ # variables like FASTLANE_HIDE_CHANGELOG and FASTLANE_DISABLE_COLORS
61
+ # need to be set early on in execution
62
+ require 'fastlane/helper/dotenv_helper'
63
+ Fastlane::Helper::DotenvHelper.load_dot_env(nil)
64
+
65
+ # Disabling colors if environment variable set
66
+ require 'fastlane_core/ui/disable_colors' if FastlaneCore::Helper.colors_disabled?
67
+
59
68
  ARGV.unshift("spaceship") if ARGV.first == "spaceauth"
60
69
  tool_name = ARGV.first ? ARGV.first.downcase : nil
61
70
 
@@ -0,0 +1,50 @@
1
+ module Fastlane
2
+ module Helper
3
+ class DotenvHelper
4
+ # @param env_cl_param [String] an optional list of dotenv environment names separated by commas, without space
5
+ def self.load_dot_env(env_cl_param)
6
+ base_path = find_dotenv_directory
7
+
8
+ return unless base_path
9
+
10
+ load_dot_envs_from(env_cl_param, base_path)
11
+ end
12
+
13
+ # finds the first directory of [fastlane, its parent] containing dotenv files
14
+ def self.find_dotenv_directory
15
+ path = FastlaneCore::FastlaneFolder.path
16
+ search_paths = [path]
17
+ search_paths << path + "/.." unless path.nil?
18
+ search_paths.compact!
19
+ search_paths.find do |dir|
20
+ Dir.glob(File.join(dir, '*.env*'), File::FNM_DOTMATCH).count > 0
21
+ end
22
+ end
23
+
24
+ # loads the dotenvs. First the .env and .env.default and
25
+ # then override with all speficied extra environments
26
+ def self.load_dot_envs_from(env_cl_param, base_path)
27
+ require 'dotenv'
28
+
29
+ # Making sure the default '.env' and '.env.default' get loaded
30
+ env_file = File.join(base_path, '.env')
31
+ env_default_file = File.join(base_path, '.env.default')
32
+ Dotenv.load(env_file, env_default_file)
33
+
34
+ return unless env_cl_param
35
+
36
+ Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::ENVIRONMENT] = env_cl_param
37
+
38
+ # multiple envs?
39
+ envs = env_cl_param.split(",")
40
+
41
+ # Loads .env file for the environment(s) passed in through options
42
+ envs.each do |env|
43
+ env_file = File.join(base_path, ".env.#{env}")
44
+ UI.success("Loading from '#{env_file}'")
45
+ Dotenv.overload(env_file)
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -49,7 +49,7 @@ module Fastlane
49
49
  # Setting this environment variable causes xcodeproj to work around the problem
50
50
  ENV["FORK_XCODE_WRITING"] = "true" unless platform == 'android'
51
51
 
52
- load_dot_env(env)
52
+ Fastlane::Helper::DotenvHelper.load_dot_env(env)
53
53
 
54
54
  started = Time.now
55
55
  e = nil
@@ -55,51 +55,6 @@ module Fastlane
55
55
  puts("")
56
56
  end
57
57
 
58
- # @param env_cl_param [String] an optional list of dotenv environment names separated by commas, without space
59
- def self.load_dot_env(env_cl_param)
60
- base_path = find_dotenv_directory
61
-
62
- return unless base_path
63
-
64
- load_dot_envs_from(env_cl_param, base_path)
65
- end
66
-
67
- # finds the first directory of [fastlane, its parent] containing dotenv files
68
- def self.find_dotenv_directory
69
- path = FastlaneCore::FastlaneFolder.path
70
- search_paths = [path]
71
- search_paths << path + "/.." unless path.nil?
72
- search_paths.compact!
73
- search_paths.find do |dir|
74
- Dir.glob(File.join(dir, '*.env*'), File::FNM_DOTMATCH).count > 0
75
- end
76
- end
77
-
78
- # loads the dotenvs. First the .env and .env.default and
79
- # then override with all speficied extra environments
80
- def self.load_dot_envs_from(env_cl_param, base_path)
81
- require 'dotenv'
82
-
83
- # Making sure the default '.env' and '.env.default' get loaded
84
- env_file = File.join(base_path, '.env')
85
- env_default_file = File.join(base_path, '.env.default')
86
- Dotenv.load(env_file, env_default_file)
87
-
88
- return unless env_cl_param
89
-
90
- Actions.lane_context[Actions::SharedValues::ENVIRONMENT] = env_cl_param
91
-
92
- # multiple envs?
93
- envs = env_cl_param.split(",")
94
-
95
- # Loads .env file for the environment(s) passed in through options
96
- envs.each do |env|
97
- env_file = File.join(base_path, ".env.#{env}")
98
- UI.success("Loading from '#{env_file}'")
99
- Dotenv.overload(env_file)
100
- end
101
- end
102
-
103
58
  def self.print_lane_context
104
59
  return if Actions.lane_context.empty?
105
60
 
@@ -18,7 +18,7 @@ module Fastlane
18
18
  # https://github.com/fastlane/fastlane/issues/11913
19
19
  # FastlaneCore.session.is_fastfile = true
20
20
 
21
- load_dot_env(env)
21
+ Fastlane::Helper::DotenvHelper.load_dot_env(env)
22
22
 
23
23
  started = Time.now
24
24
  e = nil
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.86.0.beta.20180313050023'.freeze
2
+ VERSION = '2.86.0.beta.20180314050053'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -26,8 +26,6 @@ module FastlaneCore
26
26
  "#{format_string(datetime, severity)}#{msg}\n"
27
27
  end
28
28
 
29
- require 'fastlane_core/ui/disable_colors' if FastlaneCore::Helper.colors_disabled?
30
-
31
29
  @log
32
30
  end
33
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.86.0.beta.20180313050023
4
+ version: 2.86.0.beta.20180314050053
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maksym Grebenets
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-03-13 00:00:00.000000000 Z
30
+ date: 2018-03-14 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1145,6 +1145,7 @@ files:
1145
1145
  - fastlane/lib/fastlane/helper/adb_helper.rb
1146
1146
  - fastlane/lib/fastlane/helper/cocoapod_helper.rb
1147
1147
  - fastlane/lib/fastlane/helper/crashlytics_helper.rb
1148
+ - fastlane/lib/fastlane/helper/dotenv_helper.rb
1148
1149
  - fastlane/lib/fastlane/helper/gem_helper.rb
1149
1150
  - fastlane/lib/fastlane/helper/git_helper.rb
1150
1151
  - fastlane/lib/fastlane/helper/gradle_helper.rb
@@ -1605,24 +1606,24 @@ metadata:
1605
1606
  post_install_message:
1606
1607
  rdoc_options: []
1607
1608
  require_paths:
1608
- - sigh/lib
1609
- - produce/lib
1610
- - match/lib
1611
- - fastlane_core/lib
1609
+ - gym/lib
1610
+ - deliver/lib
1612
1611
  - snapshot/lib
1612
+ - pilot/lib
1613
1613
  - supply/lib
1614
- - credentials_manager/lib
1614
+ - precheck/lib
1615
+ - scan/lib
1616
+ - sigh/lib
1615
1617
  - spaceship/lib
1618
+ - cert/lib
1616
1619
  - screengrab/lib
1617
- - pilot/lib
1618
- - scan/lib
1619
- - precheck/lib
1620
+ - match/lib
1621
+ - pem/lib
1622
+ - fastlane_core/lib
1623
+ - produce/lib
1620
1624
  - frameit/lib
1621
- - deliver/lib
1622
- - gym/lib
1625
+ - credentials_manager/lib
1623
1626
  - fastlane/lib
1624
- - cert/lib
1625
- - pem/lib
1626
1627
  required_ruby_version: !ruby/object:Gem::Requirement
1627
1628
  requirements:
1628
1629
  - - ">="