fastlane 2.1.1 → 2.1.2

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: ade2f90d83d2c06360722b929f0302888ead0929
4
- data.tar.gz: eb62ff2b610dde3e38e375fe3cb4e19b3e6deb7d
3
+ metadata.gz: 78a55201b2421586a21915db3e3981d1cca810a4
4
+ data.tar.gz: 089e66d2223340253e677aaeb569f2b183807b00
5
5
  SHA512:
6
- metadata.gz: 60f80d0a06da467d57441c77e3c9dfbb5bb88dc4b766d5879a2417d3ffbdcaa14de82fac3b3a2f7cd7c11bd17ccd2012334866e51594199ec0c233282e156e27
7
- data.tar.gz: 661d657d7b49997543273c06f71147e5b0d18260257cc341b276b47d4bdafc168382a5ac8b641edc1eebfd2ad73b72785712f9fc5677b0f971cfca22391a0744
6
+ metadata.gz: 4dc5052ac54bd6b98aec3117c6aa24b3ef2f443c16e728067367f52d435994610f7bcd49753ed85c19659b8bd8b0da09bd37915ddd730a8ab3ade6d07458f3d2
7
+ data.tar.gz: 4a3b4819296ef5bcc3215d3f6cfbabd266743dbc7af9c810c628c5f7e7bc78cd69352dde12785f84f6a2ffe392fba7323ac373aa9a96788d97f0ebf4a90bc1c1
Binary file
Binary file
@@ -5,9 +5,9 @@ module Fastlane
5
5
 
6
6
  class GitBranchAction < Action
7
7
  def self.run(params)
8
- return ENV['GIT_BRANCH'] if ENV['GIT_BRANCH']
9
- return ENV["TRAVIS_BRANCH"] if ENV["TRAVIS_BRANCH"]
10
- return ENV["BITRISE_GIT_BRANCH"] if ENV["BITRISE_GIT_BRANCH"]
8
+ return ENV['GIT_BRANCH'] if FastlaneCore::Env.truthy?('GIT_BRANCH')
9
+ return ENV["TRAVIS_BRANCH"] if FastlaneCore::Env.truthy?("TRAVIS_BRANCH")
10
+ return ENV["BITRISE_GIT_BRANCH"] if FastlaneCore::Env.truthy?("BITRISE_GIT_BRANCH")
11
11
  `git symbolic-ref HEAD --short 2>/dev/null`.strip
12
12
  end
13
13
 
@@ -206,7 +206,7 @@ module Fastlane
206
206
 
207
207
  # git_author
208
208
  if Actions.git_author_email && should_add_payload[:git_author]
209
- if ENV['FASTLANE_SLACK_HIDE_AUTHOR_ON_SUCCESS'] && options[:success]
209
+ if FastlaneCore::Env.truthy?('FASTLANE_SLACK_HIDE_AUTHOR_ON_SUCCESS') && options[:success]
210
210
  # We only show the git author if the build failed
211
211
  else
212
212
  slack_attachment[:fields] << {
@@ -71,7 +71,7 @@ module Fastlane
71
71
 
72
72
  def print_slow_fastlane_warning
73
73
  # `BUNDLE_BIN_PATH` is used when the user uses `bundle exec`
74
- return if ENV['BUNDLE_BIN_PATH'] || ENV['SKIP_SLOW_FASTLANE_WARNING'] || FastlaneCore::Helper.contained_fastlane?
74
+ return if FastlaneCore::Env.truthy?('BUNDLE_BIN_PATH') || FastlaneCore::Env.truthy?('SKIP_SLOW_FASTLANE_WARNING') || FastlaneCore::Helper.contained_fastlane?
75
75
 
76
76
  gemfile_path = PluginManager.new.gemfile_path
77
77
  if gemfile_path
@@ -61,7 +61,7 @@ module Fastlane
61
61
  end
62
62
 
63
63
  # After running the lanes, since skip_docs might be somewhere in-between
64
- Fastlane::DocsGenerator.run(ff) unless ENV["FASTLANE_SKIP_DOCS"]
64
+ Fastlane::DocsGenerator.run(ff) unless FastlaneCore::Env.truthy?("FASTLANE_SKIP_DOCS")
65
65
 
66
66
  duration = ((Time.now - started) / 60.0).round
67
67
 
@@ -294,7 +294,7 @@ module Fastlane
294
294
  UI.error("Please follow the troubleshooting guide: #{TROUBLESHOOTING_URL}")
295
295
  end
296
296
 
297
- skip_print_plugin_info = self.plugin_references.empty? || CLIToolsDistributor.running_version_command? || ENV["FASTLANE_ENV_PRINTER"]
297
+ skip_print_plugin_info = self.plugin_references.empty? || CLIToolsDistributor.running_version_command? || FastlaneCore::Env.truthy?("FASTLANE_ENV_PRINTER")
298
298
 
299
299
  # We want to avoid printing output other than the version number if we are running `fastlane -v`
300
300
  print_plugin_information(self.plugin_references) unless skip_print_plugin_info
@@ -2,7 +2,7 @@ module Fastlane
2
2
  # Alert the user when updates for plugins are available
3
3
  class PluginUpdateManager
4
4
  def self.start_looking_for_updates
5
- return if ENV["FASTLANE_SKIP_UPDATE_CHECK"]
5
+ return if FastlaneCore::Env.truthy?("FASTLANE_SKIP_UPDATE_CHECK")
6
6
 
7
7
  Thread.new do
8
8
  self.plugin_references.each do |plugin_name, current_plugin|
@@ -15,7 +15,7 @@ module Fastlane
15
15
  end
16
16
 
17
17
  def self.show_update_status
18
- return if ENV["FASTLANE_SKIP_UPDATE_CHECK"]
18
+ return if FastlaneCore::Env.truthy?("FASTLANE_SKIP_UPDATE_CHECK")
19
19
 
20
20
  # We set self.server_results to be nil
21
21
  # this way the table is not printed twice
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.1.1'.freeze
2
+ VERSION = '2.1.2'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -32,24 +32,22 @@ module FastlaneCore
32
32
  file = zipfile.glob('**/Payload/*.app/Info.plist').first
33
33
  return nil unless file
34
34
 
35
- # We can not be completely sure, that's the correct plist file, so we have to try
36
- begin
35
+ # Creates a temporary directory with a unique name tagged with 'fastlane'
36
+ # The directory is deleted automatically at the end of the block
37
+ Dir.mktmpdir("fastlane") do |tmp|
37
38
  # The XML file has to be properly unpacked first
38
- tmp_path = "/tmp/deploytmp.plist"
39
+ tmp_path = File.join(tmp, "Info.plist")
39
40
  File.write(tmp_path, zipfile.read(file))
40
41
  system("plutil -convert xml1 #{tmp_path}")
41
42
  result = Plist.parse_xml(tmp_path)
42
- File.delete(tmp_path)
43
43
 
44
44
  if result['CFBundleIdentifier'] or result['CFBundleVersion']
45
45
  return result
46
46
  end
47
- rescue
48
- # We don't really care, look for another XML file
49
47
  end
50
48
  end
51
49
 
52
- nil
50
+ return nil
53
51
  end
54
52
  end
55
53
  end
@@ -11,15 +11,15 @@ module Gym
11
11
  clear_old_files
12
12
  build_app
13
13
  end
14
- verify_archive if Gym.project.produces_archive?
14
+ verify_archive
15
15
  FileUtils.mkdir_p(File.expand_path(Gym.config[:output_directory]))
16
16
 
17
17
  if Gym.project.ios? || Gym.project.tvos?
18
18
  fix_generic_archive # See https://github.com/fastlane/fastlane/pull/4325
19
- package_app if Gym.project.produces_archive?
19
+ package_app
20
20
  fix_package
21
21
  compress_and_move_dsym
22
- path = move_ipa if Gym.project.produces_archive?
22
+ path = move_ipa
23
23
  move_manifest
24
24
  move_app_thinning
25
25
  move_app_thinning_size_report
@@ -33,14 +33,6 @@ module Gym
33
33
  end
34
34
  copy_files_from_path(File.join(BuildCommandGenerator.archive_path, "Products/usr/local/bin/*")) if Gym.project.command_line_tool?
35
35
  end
36
-
37
- if Gym.project.library? || Gym.project.framework?
38
- base_framework_path = Gym.project.build_settings(key: "BUILD_ROOT")
39
- base_framework_path = Gym.config[:derived_data_path] + "/Build/Products/" if Gym.config[:derived_data_path]
40
-
41
- copy_files_from_path("#{base_framework_path}/*/*")
42
- path = base_framework_path
43
- end
44
36
  path
45
37
  end
46
38
 
@@ -85,7 +77,7 @@ module Gym
85
77
  end
86
78
 
87
79
  def fix_generic_archive
88
- return if ENV["GYM_USE_GENERIC_ARCHIVE_FIX"].nil?
80
+ return unless FastlaneCore::Env.truthy?("GYM_USE_GENERIC_ARCHIVE_FIX")
89
81
  Gym::XcodebuildFixes.generic_archive_fix
90
82
  end
91
83
 
@@ -97,7 +89,6 @@ module Gym
97
89
  end
98
90
 
99
91
  def mark_archive_as_built_by_gym(archive_path)
100
- return if Gym.project.library? || Gym.project.framework?
101
92
  escaped_archive_path = archive_path.shellescape
102
93
  system("xattr -w info.fastlane.generated_by_gym 1 #{escaped_archive_path}")
103
94
  end
Binary file
@@ -23,13 +23,13 @@ xcode-select --install
23
23
  Navigate to your project folder and run
24
24
 
25
25
  ```
26
- match appstore
26
+ fastlane match appstore
27
27
  ```
28
28
  ```
29
- match adhoc
29
+ fastlane match adhoc
30
30
  ```
31
31
  ```
32
- match development
32
+ fastlane match development
33
33
  ```
34
34
 
35
35
  For more information open [fastlane match git repo](https://github.com/fastlane/fastlane/tree/master/match#readme)
data/match/lib/match.rb CHANGED
@@ -28,13 +28,7 @@ module Match
28
28
 
29
29
  # @return [Boolean] returns true if the unsupported enterprise mode should be enabled
30
30
  def self.enterprise?
31
- force_enterprise = ENV["MATCH_FORCE_ENTERPRISE"]
32
-
33
- return false if (force_enterprise.kind_of?(String) || force_enterprise.kind_of?(Numeric)) &&
34
- (force_enterprise.to_s == "0")
35
- return false if force_enterprise.kind_of?(String) &&
36
- (force_enterprise == "" || force_enterprise.casecmp("false") == 0 || force_enterprise.casecmp("no") == 0)
37
- return !!force_enterprise
31
+ return FastlaneCore::Env.truthy?("MATCH_FORCE_ENTERPRISE")
38
32
  end
39
33
 
40
34
  # @return [Boolean] returns true if match should interpret the given [certificate|profile] type as an enterprise one
@@ -92,7 +92,7 @@ module Scan
92
92
  end
93
93
 
94
94
  def open_simulator_for_device(device)
95
- return unless ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR']
95
+ return unless FastlaneCore::Env.truthy?('FASTLANE_EXPLICIT_OPEN_SIMULATOR')
96
96
 
97
97
  UI.message("Killing all running simulators")
98
98
  `killall Simulator &> /dev/null`
@@ -71,7 +71,7 @@ module Scan
71
71
  formatter = []
72
72
  if Scan.config[:formatter]
73
73
  formatter << "-f `#{Scan.config[:formatter]}`"
74
- elsif ENV.key?("TRAVIS")
74
+ elsif FastlaneCore::Env.truthy?("TRAVIS")
75
75
  formatter << "-f `xcpretty-travis-formatter`"
76
76
  UI.success("Automatically switched to Travis formatter")
77
77
  end
@@ -1,7 +1,7 @@
1
1
  module Snapshot
2
2
  class LatestOsVersion
3
3
  def self.ios_version
4
- return ENV["SNAPSHOT_IOS_VERSION"] if ENV["SNAPSHOT_IOS_VERSION"]
4
+ return ENV["SNAPSHOT_IOS_VERSION"] if FastlaneCore::Env.truthy?("SNAPSHOT_IOS_VERSION")
5
5
  self.version("iOS")
6
6
  end
7
7
 
@@ -5,7 +5,7 @@ module Snapshot
5
5
  # !! Warning: This script will remove all your existing simulators !!
6
6
  # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7
7
 
8
- sure = true if ENV["SNAPSHOT_FORCE_DELETE"] || force
8
+ sure = true if FastlaneCore::Env.truthy?("SNAPSHOT_FORCE_DELETE") || force
9
9
  sure = agree("Are you sure? All your simulators will be DELETED and new ones will be created! (y/n)".red, true) unless sure
10
10
  UI.user_error!("User cancelled action") unless sure
11
11
 
@@ -199,7 +199,7 @@ module Snapshot
199
199
  end
200
200
 
201
201
  def open_simulator_for_device(device_name)
202
- return unless ENV['FASTLANE_EXPLICIT_OPEN_SIMULATOR']
202
+ return unless FastlaneCore::Env.truthy?('FASTLANE_EXPLICIT_OPEN_SIMULATOR')
203
203
 
204
204
  device = TestCommandGenerator.find_device(device_name)
205
205
  FastlaneCore::Simulator.launch(device) if device
@@ -57,7 +57,7 @@ module Supply
57
57
 
58
58
  auth_client.fetch_access_token!
59
59
 
60
- if ENV["DEBUG"]
60
+ if FastlaneCore::Env.truthy?("DEBUG")
61
61
  Google::Apis.logger.level = Logger::DEBUG
62
62
  end
63
63
 
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.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-12-19 00:00:00.000000000 Z
17
+ date: 2016-12-20 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: slack-notifier
@@ -733,6 +733,7 @@ files:
733
733
  - deliver/lib/deliver/upload_price_tier.rb
734
734
  - deliver/lib/deliver/upload_screenshots.rb
735
735
  - fastlane/README.md
736
+ - fastlane/lib/.DS_Store
736
737
  - fastlane/lib/assets/Actions.md.erb
737
738
  - fastlane/lib/assets/AppfileTemplate
738
739
  - fastlane/lib/assets/AppfileTemplateAndroid
@@ -749,8 +750,10 @@ files:
749
750
  - fastlane/lib/assets/s3_plist_template.erb
750
751
  - fastlane/lib/assets/s3_version_template.erb
751
752
  - fastlane/lib/fastlane.rb
753
+ - fastlane/lib/fastlane/.DS_Store
752
754
  - fastlane/lib/fastlane/action.rb
753
755
  - fastlane/lib/fastlane/action_collector.rb
756
+ - fastlane/lib/fastlane/actions/.DS_Store
754
757
  - fastlane/lib/fastlane/actions/README.md
755
758
  - fastlane/lib/fastlane/actions/actions_helper.rb
756
759
  - fastlane/lib/fastlane/actions/adb.rb
@@ -1079,6 +1082,7 @@ files:
1079
1082
  - gym/lib/gym/xcodebuild_fixes/watchkit2_fix.rb
1080
1083
  - gym/lib/gym/xcodebuild_fixes/watchkit_fix.rb
1081
1084
  - match/README.md
1085
+ - match/lib/.DS_Store
1082
1086
  - match/lib/assets/MatchfileTemplate
1083
1087
  - match/lib/assets/READMETemplate.md
1084
1088
  - match/lib/match.rb