cert 1.2.7 → 1.2.8
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/README.md +8 -6
- data/bin/cert +1 -2
- data/lib/cert/keychain_importer.rb +1 -1
- data/lib/cert/options.rb +2 -2
- data/lib/cert/runner.rb +6 -2
- data/lib/cert/version.rb +1 -1
- data/lib/cert.rb +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b83121a20da8350a26a94bfae790b6d9b239d0eb
|
4
|
+
data.tar.gz: 9ecc5e95bfe57e2ef1c8e5d4b744104d4f3e1acf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee45a271d3484e439ace1ece885be434881469613281c1ab89ed9c4f6ff727a95ce7155ad37b746de36561fb30b4448ac7d7afa57ea3eafc4cd4bbdc011b29f
|
7
|
+
data.tar.gz: 9f69ff268db60cf34b46ddc486da7ddc6276c7b5e5b260048e0ecc94bba3655e1ce00f40cf33f5b57f80a64d9381dfc7db32f4e20814b04b20b95f0107cf8a23
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
<a href="https://github.com/fastlane/deliver">deliver</a> •
|
10
10
|
<a href="https://github.com/fastlane/snapshot">snapshot</a> •
|
11
11
|
<a href="https://github.com/fastlane/frameit">frameit</a> •
|
12
|
-
<a href="https://github.com/fastlane/
|
12
|
+
<a href="https://github.com/fastlane/pem">pem</a> •
|
13
13
|
<a href="https://github.com/fastlane/sigh">sigh</a> •
|
14
14
|
<a href="https://github.com/fastlane/produce">produce</a> •
|
15
15
|
<b>cert</b> •
|
@@ -17,7 +17,8 @@
|
|
17
17
|
<a href="https://github.com/fastlane/pilot">pilot</a> •
|
18
18
|
<a href="https://github.com/fastlane/boarding">boarding</a> •
|
19
19
|
<a href="https://github.com/fastlane/gym">gym</a> •
|
20
|
-
<a href="https://github.com/fastlane/scan">scan</a>
|
20
|
+
<a href="https://github.com/fastlane/scan">scan</a> •
|
21
|
+
<a href="https://github.com/fastlane/match">match</a>
|
21
22
|
</p>
|
22
23
|
-------
|
23
24
|
|
@@ -28,13 +29,13 @@
|
|
28
29
|
cert
|
29
30
|
============
|
30
31
|
|
31
|
-
[](https://github.com/
|
32
|
+
[](https://twitter.com/fastlanetools)
|
33
|
+
[](https://github.com/fastlane/cert/blob/master/LICENSE)
|
33
34
|
[](http://rubygems.org/gems/cert)
|
34
35
|
|
35
36
|
###### Automatically create and maintain iOS code signing certificates.
|
36
37
|
|
37
|
-
Get in contact with the
|
38
|
+
Get in contact with the developers on Twitter: [@FastlaneTools](https://twitter.com/FastlaneTools)
|
38
39
|
|
39
40
|
-------
|
40
41
|
<p align="center">
|
@@ -130,7 +131,7 @@ This will result in `sigh` always using the correct signing certificate, which i
|
|
130
131
|
- [`deliver`](https://github.com/fastlane/deliver): Upload screenshots, metadata and your app to the App Store
|
131
132
|
- [`snapshot`](https://github.com/fastlane/snapshot): Automate taking localized screenshots of your iOS app on every device
|
132
133
|
- [`frameit`](https://github.com/fastlane/frameit): Quickly put your screenshots into the right device frames
|
133
|
-
- [`
|
134
|
+
- [`pem`](https://github.com/fastlane/pem): Automatically generate and renew your push notification profiles
|
134
135
|
- [`sigh`](https://github.com/fastlane/sigh): Because you would rather spend your time building stuff than fighting provisioning
|
135
136
|
- [`produce`](https://github.com/fastlane/produce): Create new iOS apps on iTunes Connect and Dev Portal using the command line
|
136
137
|
- [`spaceship`](https://github.com/fastlane/spaceship): Ruby library to access the Apple Dev Center and iTunes Connect
|
@@ -138,6 +139,7 @@ This will result in `sigh` always using the correct signing certificate, which i
|
|
138
139
|
- [`boarding`](https://github.com/fastlane/boarding): The easiest way to invite your TestFlight beta testers
|
139
140
|
- [`gym`](https://github.com/fastlane/gym): Building your iOS apps has never been easier
|
140
141
|
- [`scan`](https://github.com/fastlane/scan): The easiest way to run tests of your iOS and Mac app
|
142
|
+
- [`match`](https://github.com/fastlane/match): Easily sync your certificates and profiles across your team using git
|
141
143
|
|
142
144
|
##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
|
143
145
|
|
data/bin/cert
CHANGED
@@ -4,7 +4,6 @@ $:.push File.expand_path("../../lib", __FILE__)
|
|
4
4
|
|
5
5
|
require 'cert'
|
6
6
|
require 'commander'
|
7
|
-
require 'credentials_manager/password_manager'
|
8
7
|
require 'credentials_manager/appfile_config'
|
9
8
|
require 'cert/options'
|
10
9
|
|
@@ -18,7 +17,7 @@ class CertApplication
|
|
18
17
|
program :description, 'CLI for \'cert\' - Create new iOS code signing certificates'
|
19
18
|
program :help, 'Author', 'Felix Krause <cert@krausefx.com>'
|
20
19
|
program :help, 'Website', 'https://fastlane.tools'
|
21
|
-
program :help, 'GitHub', 'https://github.com/
|
20
|
+
program :help, 'GitHub', 'https://github.com/fastlane/cert'
|
22
21
|
program :help_formatter, :compact
|
23
22
|
|
24
23
|
FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options)
|
@@ -2,7 +2,7 @@ module Cert
|
|
2
2
|
class KeychainImporter
|
3
3
|
def self.import_file(path)
|
4
4
|
raise "Could not find file '#{path}'".red unless File.exist?(path)
|
5
|
-
keychain = File.expand_path(Cert.config[:keychain_path]
|
5
|
+
keychain = File.expand_path(Cert.config[:keychain_path])
|
6
6
|
|
7
7
|
command = "security import #{path.shellescape} -k '#{keychain}'"
|
8
8
|
command << " -T /usr/bin/codesign" # to not be asked for permission when running a tool like `gym`
|
data/lib/cert/options.rb
CHANGED
@@ -50,10 +50,10 @@ module Cert
|
|
50
50
|
short_option: "-k",
|
51
51
|
env_name: "CERT_KEYCHAIN_PATH",
|
52
52
|
description: "Path to a custom keychain",
|
53
|
-
|
53
|
+
default_value: Dir["#{Dir.home}/Library/Keychains/login.keychain"].last,
|
54
54
|
verify_block: proc do |value|
|
55
55
|
value = File.expand_path(value)
|
56
|
-
raise "Keychain not found at path '#{value}'".red unless File.exist?
|
56
|
+
raise "Keychain not found at path '#{value}'".red unless File.exist?(value)
|
57
57
|
end)
|
58
58
|
]
|
59
59
|
end
|
data/lib/cert/runner.rb
CHANGED
@@ -13,7 +13,7 @@ module Cert
|
|
13
13
|
def run
|
14
14
|
FileUtils.mkdir_p(Cert.config[:output_path])
|
15
15
|
|
16
|
-
FastlaneCore::PrintTable.print_values(config: Cert.config, hide_keys: [], title: "Summary for cert #{Cert::VERSION}")
|
16
|
+
FastlaneCore::PrintTable.print_values(config: Cert.config, hide_keys: [:output_path], title: "Summary for cert #{Cert::VERSION}")
|
17
17
|
|
18
18
|
Helper.log.info "Starting login with user '#{Cert.config[:username]}'"
|
19
19
|
Spaceship.login(Cert.config[:username], nil)
|
@@ -37,6 +37,10 @@ module Cert
|
|
37
37
|
|
38
38
|
def find_existing_cert
|
39
39
|
certificates.each do |certificate|
|
40
|
+
unless certificate.can_download
|
41
|
+
next
|
42
|
+
end
|
43
|
+
|
40
44
|
path = store_certificate(certificate)
|
41
45
|
private_key_path = File.expand_path(File.join(Cert.config[:output_path], "#{certificate.id}.p12"))
|
42
46
|
|
@@ -77,8 +81,8 @@ module Cert
|
|
77
81
|
# The kind of certificate we're interested in
|
78
82
|
def certificate_type
|
79
83
|
cert_type = Spaceship.certificate.production
|
80
|
-
cert_type = Spaceship.certificate.development if Cert.config[:development]
|
81
84
|
cert_type = Spaceship.certificate.in_house if Spaceship.client.in_house?
|
85
|
+
cert_type = Spaceship.certificate.development if Cert.config[:development]
|
82
86
|
|
83
87
|
cert_type
|
84
88
|
end
|
data/lib/cert/version.rb
CHANGED
data/lib/cert.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.29.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.29.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.
|
39
|
+
version: 0.16.0
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.0.0
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.16.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.0.0
|