app-tools 1.7.0 → 1.8.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 +4 -4
- data/bin/app-tools +4 -0
- data/bin/syncpp +14 -14
- data/lib/app_tools/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e09105cf7da5752ae13aac5a3313424f44fc8d0f
|
4
|
+
data.tar.gz: e208a748c0697832a6ae056ffbdd3fa5d4d1cd5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc18427da3273c5454e5fb1af4db1c1a577aa6bc50d88fa30059378080939c45639984234a67df2d3095b77448000ed1e6ed5f067f5f78925a42e597adbc587e
|
7
|
+
data.tar.gz: 35a6e1f2abbd9a8b25a71391d2505c0e03791ba0bfad72d6fdfcee275b2492c9e3c98ce3f41f5828c0e566d29634f2c0b70dd0afbc2127d92eaf159590c07e61
|
data/bin/app-tools
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
puts "xcarchive2ipa - Generate IPA from XCArchive"
|
3
3
|
puts "upload2itunes - Upload an IPA to iTunesConnect"
|
4
|
+
puts "kcpass - Add Apple account password to keychain"
|
4
5
|
puts "resignipa - Resign an IPA file"
|
6
|
+
puts "syncpp - Synchronize a provisioning profile locally"
|
7
|
+
puts "setsimkbd - Turn the simulator keyboard on or off"
|
8
|
+
puts "gencov - Generate code coverage data"
|
data/bin/syncpp
CHANGED
@@ -54,36 +54,36 @@ module AppTools
|
|
54
54
|
|
55
55
|
profile = nil
|
56
56
|
|
57
|
-
# Sometimes the call to the Apple API can fail
|
57
|
+
# NOTE: Sometimes the call to the Apple API can fail, hence the retries
|
58
|
+
|
59
|
+
# Get the provisioning profile that matches the name given
|
58
60
|
keep_trying do
|
59
|
-
profiles = Spaceship.provisioning_profile.
|
61
|
+
profiles = Spaceship.provisioning_profile.all
|
60
62
|
profile = profiles.find do |profile|
|
61
63
|
profile.name == profile_name
|
62
64
|
end
|
63
65
|
end
|
64
66
|
|
65
67
|
if profile.nil?
|
66
|
-
exit_now! "Provisioning profile #{profile_name} not found"
|
67
|
-
end
|
68
|
-
|
69
|
-
if profile.type != 'iOS Distribution'
|
70
|
-
exit_now! "The profile must use an iOS distribution certificate"
|
68
|
+
exit_now! "Provisioning profile '#{profile_name}' not found"
|
71
69
|
end
|
72
70
|
|
71
|
+
# If it's not valid, repair it now, i.e. get it re-issued.
|
73
72
|
unless profile.valid?
|
74
73
|
profile = profile.repair!
|
75
74
|
end
|
76
75
|
|
77
|
-
|
76
|
+
# Get the profile certificate that matches the profile type
|
77
|
+
profile_cert = profile.certificates.find do |cert|
|
78
78
|
cert.name == profile.type
|
79
79
|
end
|
80
80
|
|
81
|
-
|
82
|
-
|
81
|
+
# Get the full certificate record
|
82
|
+
cert = nil
|
83
83
|
keep_trying do
|
84
|
-
|
85
|
-
|
86
|
-
cert.id ==
|
84
|
+
certs = Spaceship.certificate.all
|
85
|
+
cert = certs.find do |cert|
|
86
|
+
cert.id == profile_cert.id
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
@@ -91,7 +91,7 @@ module AppTools
|
|
91
91
|
|
92
92
|
File.write(profile_path, profile.download)
|
93
93
|
|
94
|
-
puts
|
94
|
+
puts cert.name
|
95
95
|
end
|
96
96
|
|
97
97
|
description 'syncpp - Synchronize a certificate and provisioning profile'
|
data/lib/app_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Lyon-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
103
|
+
version: '0.26'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
110
|
+
version: '0.26'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: highline
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|