app-tools 1.7.0 → 1.8.0

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: 7dd1f67f63cc8c75cc0fb6ca2bfa58d78753be2c
4
- data.tar.gz: f0f953d6fa120e72bfe5a96e49282bf738053976
3
+ metadata.gz: e09105cf7da5752ae13aac5a3313424f44fc8d0f
4
+ data.tar.gz: e208a748c0697832a6ae056ffbdd3fa5d4d1cd5b
5
5
  SHA512:
6
- metadata.gz: 31176d385a64c64e2290cea6b517729f2b5e64398065d650eae6bee3f81e4c0f67a78918b6b5f22dea13a04235fa99e9f9d28553ed7c536974556f78c641be47
7
- data.tar.gz: 4eb481dbdabb2a9ce901fd94dd93190bfacdae2ff910151da32e3a9eece7becaa4a3890dbb236bb50592e741fa60952641de42fd13f087283ed0405fc8295672
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.app_store.all
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
- profile_prod_cert = profile.certificates.find do |cert|
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
- prod_cert = nil
82
-
81
+ # Get the full certificate record
82
+ cert = nil
83
83
  keep_trying do
84
- prod_certs = Spaceship.certificate.production.all
85
- prod_cert = prod_certs.find do |cert|
86
- cert.id == profile.certificates.first.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 prod_cert.name
94
+ puts cert.name
95
95
  end
96
96
 
97
97
  description 'syncpp - Synchronize a certificate and provisioning profile'
@@ -1,3 +1,3 @@
1
1
  module AppTools
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
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.7.0
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-04-12 00:00:00.000000000 Z
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.22'
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.22'
110
+ version: '0.26'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: highline
113
113
  requirement: !ruby/object:Gem::Requirement