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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e5eb84d598dcfa9dafb47c3391a8a94ae2dc3b2f5961e748237e5b290250b12
4
- data.tar.gz: 5325af62491a2016c2a27e58ecc3385248e40ec37984cd940d20b8e8e19c2c48
3
+ metadata.gz: 273aab1a938e5d52d30b14c0a2538ec9d4a973ac902e10be63c5969bb238867c
4
+ data.tar.gz: 14e1ae35c646f2ef1f2430434f0ca31e8526e852202b52e9bc3a5d76b157dcc9
5
5
  SHA512:
6
- metadata.gz: 256c4993b4af03cd0b36493b82c870d28e9534bc872944f43364ff8f394227aa8abb96811e113ac043133ac9c4815ce7444caa1e82f2568bf1cdc7d6a25fe675
7
- data.tar.gz: 150beea08fcc7b495bf6339a598616c541c7ed9751aad40740d99ccd38619fd22c1a630541b77e3dea3ecd8053630cdb57b3a185c5a1ecc825b32e62809e56cb
6
+ metadata.gz: ef44dead0d80e6db7d71d8ef8f66d9ec74a75be7526acea5d0e58b0471362092bf1dcef7518facc6dc313773e7a324615417627eb360e49cc03fe2d27a29a05e
7
+ data.tar.gz: 2ae333afe71816a440033eea21e48bea2f754233eef2429bd3692822c732ba6f3f3c9943be359313ef81e6c9272035992914fd784d9818c84888ff15b5574e80
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
+ require "motion-provisioning"
4
5
 
5
6
  require "irb"
6
7
  IRB.start
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 is installed locally. Revoke all and create a new one.
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 work with Xcode free team
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
  [
@@ -1,4 +1,5 @@
1
1
  require 'rake'
2
+
2
3
  namespace 'motion-provisioning' do
3
4
  desc 'Add a device to the provisioning portal: rake "motion-provisioning:add-device[device_name,device_id]"'
4
5
  task 'add-device', [:name, :id] do |t, args|
@@ -1,3 +1,3 @@
1
1
  module MotionProvisioning
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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.2
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: 2019-11-14 00:00:00.000000000 Z
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: '1.21'
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: '1.21'
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