fastlane_core 0.25.4 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -8
- data/lib/fastlane_core.rb +1 -1
- data/lib/fastlane_core/configuration/commander_generator.rb +0 -1
- data/lib/fastlane_core/simulator.rb +19 -39
- data/lib/fastlane_core/update_checker/changelog.rb +27 -0
- data/lib/fastlane_core/{update_checker.rb → update_checker/update_checker.rb} +4 -1
- data/lib/fastlane_core/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12d7cb5716865925a93f93366e6d5dbc1ef3a653
|
4
|
+
data.tar.gz: 36ab630a993ceab1fbfe7ae2a1581737a36df7d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb06d1e925cfd2f9f696f30d225d95471f2e31bcd7fd07617d057a2b4a7ef937888a8030a55208978f7573791009c2558b5c172406b77bdaa7bf83bc15cc8a13
|
7
|
+
data.tar.gz: 1dec1558c785079df641ace5988677ce1a7c8c9373b295b435353ad5f32e39f7185429470f572f89351cddbaaa497821799af4a8ee107b9c60c1cbdc8e790014
|
data/README.md
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
<h3 align="center">
|
2
|
-
<a href="https://github.com/
|
2
|
+
<a href="https://github.com/fastlane/fastlane">
|
3
3
|
<img src="assets/fastlane.png" width="150" />
|
4
4
|
<br />
|
5
5
|
fastlane
|
6
6
|
</a>
|
7
7
|
</h3>
|
8
8
|
<p align="center">
|
9
|
-
<a href="https://github.com/
|
10
|
-
<a href="https://github.com/
|
11
|
-
<a href="https://github.com/
|
12
|
-
<a href="https://github.com/
|
13
|
-
<a href="https://github.com/
|
14
|
-
<a href="https://github.com/
|
15
|
-
<a href="https://github.com/
|
9
|
+
<a href="https://github.com/fastlane/deliver">deliver</a> •
|
10
|
+
<a href="https://github.com/fastlane/snapshot">snapshot</a> •
|
11
|
+
<a href="https://github.com/fastlane/frameit">frameit</a> •
|
12
|
+
<a href="https://github.com/fastlane/PEM">PEM</a> •
|
13
|
+
<a href="https://github.com/fastlane/sigh">sigh</a> •
|
14
|
+
<a href="https://github.com/fastlane/produce">produce</a> •
|
15
|
+
<a href="https://github.com/fastlane/cert">cert</a> •
|
16
16
|
<a href="https://github.com/fastlane/spaceship">spaceship</a> •
|
17
17
|
<a href="https://github.com/fastlane/pilot">pilot</a> •
|
18
18
|
<a href="https://github.com/fastlane/boarding">boarding</a> •
|
@@ -43,6 +43,7 @@ This gem contains all shared classes and code:
|
|
43
43
|
- Crash Reporting
|
44
44
|
- More helper methods and classes
|
45
45
|
|
46
|
+
You can hide the inline changelog by setting the `FASTLANE_HIDE_CHANGELOG` environment variable
|
46
47
|
|
47
48
|
# License
|
48
49
|
This project is licensed under the terms of the MIT license. See the LICENSE file.
|
data/lib/fastlane_core.rb
CHANGED
@@ -2,7 +2,7 @@ require 'json'
|
|
2
2
|
require 'fastlane_core/version'
|
3
3
|
require 'fastlane_core/helper'
|
4
4
|
require 'fastlane_core/configuration/configuration'
|
5
|
-
require 'fastlane_core/update_checker'
|
5
|
+
require 'fastlane_core/update_checker/update_checker'
|
6
6
|
require 'fastlane_core/languages'
|
7
7
|
require 'fastlane_core/itunes_search_api'
|
8
8
|
require 'fastlane_core/cert_checker'
|
@@ -13,7 +13,6 @@ module FastlaneCore
|
|
13
13
|
options.each do |option|
|
14
14
|
appendix = (option.is_string ? "STRING" : "")
|
15
15
|
type = (option.is_string ? String : nil)
|
16
|
-
type = nil if [:force, :verbose].include?(option.key)
|
17
16
|
short_option = option.short_option
|
18
17
|
|
19
18
|
raise "Short option #{short_option} already taken for key #{option.key}".red if short_codes.include? short_option
|
@@ -4,32 +4,33 @@ module FastlaneCore
|
|
4
4
|
class Simulator
|
5
5
|
class << self
|
6
6
|
def all
|
7
|
-
return @devices if @devices
|
8
7
|
Helper.log.info "Fetching available devices" if $verbose
|
9
8
|
|
10
|
-
|
9
|
+
@devices = []
|
10
|
+
os_type = 'unknown'
|
11
|
+
os_version = 'unknown'
|
11
12
|
output = ''
|
12
|
-
Open3.popen3('
|
13
|
+
Open3.popen3('xcrun simctl list devices') do |stdin, stdout, stderr, wait_thr|
|
13
14
|
output = stdout.read
|
14
15
|
end
|
15
16
|
|
16
|
-
unless output.include?("
|
17
|
-
Helper.log.error "
|
18
|
-
|
19
|
-
raise "Instruments CLI not working.".red
|
17
|
+
unless output.include?("== Devices ==")
|
18
|
+
Helper.log.error "xcrun simctl CLI broken, run `xcrun simctl list devices` and make sure it works".red
|
19
|
+
raise "xcrun simctl not working.".red
|
20
20
|
end
|
21
21
|
|
22
|
-
output
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
22
|
+
output.split(/\n/).each do |line|
|
23
|
+
next if line.match(/^== /)
|
24
|
+
if line.match(/^-- /)
|
25
|
+
(os_type, os_version) = line.gsub(/-- (.*) --/, '\1').split
|
26
|
+
else
|
27
|
+
# iPad 2 (0EDE6AFC-3767-425A-9658-AAA30A60F212) (Shutdown)
|
28
|
+
# iPad Air 2 (4F3B8059-03FD-4D72-99C0-6E9BBEE2A9CE) (Shutdown) (unavailable, device type profile not found)
|
29
|
+
match = line.match(/\s+([^\(]+) \(([-0-9A-F]+)\) \((?:[^\(]+)\)(.*unavailable.*)?/)
|
30
|
+
if match && !match[3] && os_type == 'iOS'
|
31
|
+
@devices << Device.new(name: match[1], ios_version: os_version, udid: match[2])
|
32
|
+
end
|
33
|
+
end
|
33
34
|
end
|
34
35
|
|
35
36
|
return @devices
|
@@ -40,27 +41,6 @@ module FastlaneCore
|
|
40
41
|
end
|
41
42
|
end
|
42
43
|
|
43
|
-
# Example Output for `instruments -s`
|
44
|
-
#
|
45
|
-
# Known Devices:
|
46
|
-
# Felix [A8B765B9-70D4-5B89-AFF5-EDDAF0BC8AAA]
|
47
|
-
# Felix Krause's iPhone 6 (9.0.1) [2cce6c8deb5ea9a46e19304f4c4e665069ccaaaa]
|
48
|
-
# iPad 2 (9.0) [863234B6-C857-4DF3-9E27-897DEDF26EDA]
|
49
|
-
# iPad Air (9.0) [3827540A-D953-49D3-BC52-B66FC59B085E]
|
50
|
-
# iPad Air 2 (9.0) [6731E2F9-B70A-4102-9B49-6AEFE300F460]
|
51
|
-
# iPad Retina (9.0) [DFEE2E76-DABF-47C6-AA1A-ACF873E57435]
|
52
|
-
# iPhone 4s (9.0) [CDEB0462-9ECD-40C7-9916-B7C44EC10E17]
|
53
|
-
# iPhone 5 (9.0) [1685B071-AFB2-4DC1-BE29-8370BA4A6EBD]
|
54
|
-
# iPhone 5s (9.0) [C60F3E7A-3D0E-407B-8D0A-EDAF033ED626]
|
55
|
-
# iPhone 6 (9.0) [4A822E0C-4873-4F12-B798-8B39613B24CE]
|
56
|
-
# iPhone 6 Plus (9.0) [A522ACFF-7948-4344-8CA8-3F62ED9FFB18]
|
57
|
-
# iPhone 6s (9.0) [C956F5AA-2EA3-4141-B7D2-C5BE6250A60D]
|
58
|
-
# iPhone 6s Plus (9.0) [A3754407-21A3-4A80-9559-3170BB3D50FC]
|
59
|
-
# Known Templates:
|
60
|
-
# "/Applications/Xcode70.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate"
|
61
|
-
# "/Applications/Xcode70.app/Contents/Applications/Instruments.app/Contents/PlugIns/OpenGLESAnalyzerInstrument.xrplugin/Contents/Resources/OpenGL ES Analysis.tracetemplate"
|
62
|
-
# "/Applications/Xcode70.app/Contents/Applications/Instruments.app/Contents/PlugIns/XRMobileDeviceDiscoveryPlugIn.xrplugin/Contents/Resources/Energy Diagnostics.tracetemplate"
|
63
|
-
|
64
44
|
# Use the UDID for the given device when setting the destination
|
65
45
|
# Why? Because we might get this error message
|
66
46
|
# > The requested device could not be found because multiple devices matched the request.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'excon'
|
2
|
+
|
3
|
+
module FastlaneCore
|
4
|
+
class Changelog
|
5
|
+
class << self
|
6
|
+
def show_changes(gem_name, current_version)
|
7
|
+
self.releases(gem_name).each_with_index do |release, index|
|
8
|
+
next unless Gem::Version.new(release['tag_name']) > Gem::Version.new(current_version)
|
9
|
+
puts ""
|
10
|
+
puts release['name'].green
|
11
|
+
puts release['body']
|
12
|
+
|
13
|
+
next unless index == 2
|
14
|
+
puts ""
|
15
|
+
puts "To see all new releases, open https://github.com/fastlane/#{gem_name}/releases".green
|
16
|
+
break
|
17
|
+
end
|
18
|
+
puts "\nUpdate using 'sudo gem update #{gem_name.downcase}'".green
|
19
|
+
end
|
20
|
+
|
21
|
+
def releases(gem_name)
|
22
|
+
url = "https://api.github.com/repos/fastlane/#{gem_name}/releases"
|
23
|
+
JSON.parse(Excon.get(url).body)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'excon'
|
2
2
|
require 'digest'
|
3
3
|
|
4
|
+
require 'fastlane_core/update_checker/changelog'
|
5
|
+
|
4
6
|
module FastlaneCore
|
5
7
|
# Verifies, the user runs the latest version of this gem
|
6
8
|
class UpdateChecker
|
@@ -52,12 +54,13 @@ module FastlaneCore
|
|
52
54
|
puts "# #{gem_name} #{available} is available. You are on #{current_version}.".green
|
53
55
|
puts "# It is recommended to use the latest version.".green
|
54
56
|
puts "# Update using 'sudo gem update #{gem_name.downcase}'.".green
|
55
|
-
puts "# To see what's new, open https://github.com/
|
57
|
+
puts "# To see what's new, open https://github.com/fastlane/#{gem_name}/releases.".green if ENV["FASTLANE_HIDE_CHANGELOG"]
|
56
58
|
if Random.rand(5) == 1
|
57
59
|
puts '#######################################################################'.green
|
58
60
|
puts "# Run `sudo gem cleanup` from time to time to speed up fastlane".green
|
59
61
|
end
|
60
62
|
puts '#######################################################################'.green
|
63
|
+
Changelog.show_changes(gem_name, current_version) unless ENV["FASTLANE_HIDE_CHANGELOG"]
|
61
64
|
end
|
62
65
|
|
63
66
|
# Generate the URL on the main thread (since we're switching directory)
|
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.
|
4
|
+
version: 0.26.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: 2015-10-
|
11
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -339,7 +339,8 @@ files:
|
|
339
339
|
- lib/fastlane_core/project.rb
|
340
340
|
- lib/fastlane_core/provisioning_profile.rb
|
341
341
|
- lib/fastlane_core/simulator.rb
|
342
|
-
- lib/fastlane_core/update_checker.rb
|
342
|
+
- lib/fastlane_core/update_checker/changelog.rb
|
343
|
+
- lib/fastlane_core/update_checker/update_checker.rb
|
343
344
|
- lib/fastlane_core/version.rb
|
344
345
|
homepage: https://fastlane.tools
|
345
346
|
licenses:
|