motion-provisioning 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/console +1 -0
- data/bin/export_private_key +0 -0
- data/lib/motion-provisioning/certificate.rb +1 -1
- data/lib/motion-provisioning/provisioning_profile.rb +2 -2
- data/lib/motion-provisioning/spaceship/free_portal_client.rb +1 -1
- data/lib/motion-provisioning/tasks.rb +1 -0
- data/lib/motion-provisioning/version.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 273aab1a938e5d52d30b14c0a2538ec9d4a973ac902e10be63c5969bb238867c
|
4
|
+
data.tar.gz: 14e1ae35c646f2ef1f2430434f0ca31e8526e852202b52e9bc3a5d76b157dcc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef44dead0d80e6db7d71d8ef8f66d9ec74a75be7526acea5d0e58b0471362092bf1dcef7518facc6dc313773e7a324615417627eb360e49cc03fe2d27a29a05e
|
7
|
+
data.tar.gz: 2ae333afe71816a440033eea21e48bea2f754233eef2429bd3692822c732ba6f3f3c9943be359313ef81e6c9272035992914fd784d9818c84888ff15b5574e80
|
data/bin/console
CHANGED
Binary file
|
@@ -57,7 +57,7 @@ module MotionProvisioning
|
|
57
57
|
Utils.log("Error", "Something went wrong when trying to create a new certificate.")
|
58
58
|
abort
|
59
59
|
end
|
60
|
-
# There are certificates in the server, but none
|
60
|
+
# There are certificates in the server, but none are installed locally. Revoke all and create a new one.
|
61
61
|
elsif installed_certificate.nil?
|
62
62
|
Utils.log("Error", "None of the available certificates (#{certificates.count}) is installed on the local machine. Revoking...")
|
63
63
|
|
@@ -30,8 +30,7 @@ module MotionProvisioning
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
# ensure a client is created and logged in
|
34
|
-
client
|
33
|
+
client # ensure a client is created and logged in
|
35
34
|
|
36
35
|
app = Application.find_or_create(bundle_id: bundle_id, name: app_name, mac: platform == :mac)
|
37
36
|
|
@@ -78,6 +77,7 @@ module MotionProvisioning
|
|
78
77
|
certificate_platform = platform == :mac ? :mac : :ios
|
79
78
|
certificate_sha1 = OpenSSL::Digest::SHA1.new(File.read(File.join(output_path, "#{certificate_platform}_distribution_certificate.cer")))
|
80
79
|
cert = client.distribution_certificates(mac: platform == :mac).detect do |c|
|
80
|
+
# Compare downloaded cert content against local cert content to make sure they match
|
81
81
|
OpenSSL::Digest::SHA1.new(c['certContent'].read) == certificate_sha1
|
82
82
|
end
|
83
83
|
|
@@ -5,7 +5,7 @@ module Spaceship
|
|
5
5
|
def teams
|
6
6
|
return @teams if @teams
|
7
7
|
req = request(:post, "https://developerservices2.apple.com/services/#{PROTOCOL_VERSION}/listTeams.action", nil, {
|
8
|
-
'X-Xcode-Version' => XCODE_VERSION # necessary in order to
|
8
|
+
'X-Xcode-Version' => XCODE_VERSION # necessary in order to list Xcode free team
|
9
9
|
})
|
10
10
|
@teams = parse_response(req, 'teams').sort_by do |team|
|
11
11
|
[
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-provisioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Villacampa
|
8
|
+
- Andrew Havens
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2020-05-04 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: highline
|
@@ -92,14 +93,14 @@ dependencies:
|
|
92
93
|
requirements:
|
93
94
|
- - "~>"
|
94
95
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
96
|
+
version: '3.7'
|
96
97
|
type: :development
|
97
98
|
prerelease: false
|
98
99
|
version_requirements: !ruby/object:Gem::Requirement
|
99
100
|
requirements:
|
100
101
|
- - "~>"
|
101
102
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
103
|
+
version: '3.7'
|
103
104
|
- !ruby/object:Gem::Dependency
|
104
105
|
name: simplecov
|
105
106
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,6 +119,7 @@ description: A small library that manages certificates and profiles automaticall
|
|
118
119
|
from the command line, with minimal configuration.
|
119
120
|
email:
|
120
121
|
- m@markvillacampa.com
|
122
|
+
- email@andrewhavens.com
|
121
123
|
executables: []
|
122
124
|
extensions: []
|
123
125
|
extra_rdoc_files: []
|
@@ -125,6 +127,7 @@ files:
|
|
125
127
|
- LICENSE.txt
|
126
128
|
- README.md
|
127
129
|
- bin/console
|
130
|
+
- bin/export_private_key
|
128
131
|
- bin/setup
|
129
132
|
- export_private_key/export_private_key.c
|
130
133
|
- lib/motion-provisioning.rb
|