cert 1.4.1 → 1.4.2
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 +2 -0
- data/bin/cert +2 -54
- data/lib/cert.rb +1 -0
- data/lib/cert/commands_generator.rb +53 -0
- data/lib/cert/runner.rb +3 -3
- data/lib/cert/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 558564d9b18d2e15dbd1b99445c01163b7bf11b6
|
4
|
+
data.tar.gz: ca5594868e04c93cdfd775811b4cf6e374fb758a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cd18e6cece7f47e8b3700b71d427b0d9f9b8329c7bdcab612ffdf19bbaaac3e907371a582033164b5d3d050db99887b874a8a6f09a60f6f961269f066758986
|
7
|
+
data.tar.gz: cb84c0ba9bcf62f4ff1dd37680b2845f9f43d44f662527e6ced66330512f860c62b3ec65b93f25114474065f1b6ce27e0c84289a732edae06313c2625a4ada46
|
data/README.md
CHANGED
@@ -35,6 +35,8 @@ cert
|
|
35
35
|
|
36
36
|
###### Automatically create and maintain iOS code signing certificates.
|
37
37
|
|
38
|
+
`cert` is focused exclusively on code signing. You can create new code signing identities for different environments (development and distribution) and use any existing valid certificates installed locally.
|
39
|
+
|
38
40
|
Get in contact with the developers on Twitter: [@FastlaneTools](https://twitter.com/FastlaneTools)
|
39
41
|
|
40
42
|
-------
|
data/bin/cert
CHANGED
@@ -1,58 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
3
2
|
$:.push File.expand_path("../../lib", __FILE__)
|
4
3
|
|
5
4
|
require 'cert'
|
6
|
-
require '
|
7
|
-
|
8
|
-
require 'cert/options'
|
9
|
-
|
10
|
-
HighLine.track_eof = false
|
11
|
-
|
12
|
-
class CertApplication
|
13
|
-
include Commander::Methods
|
14
|
-
|
15
|
-
def run
|
16
|
-
program :version, Cert::VERSION
|
17
|
-
program :description, 'CLI for \'cert\' - Create new iOS code signing certificates'
|
18
|
-
program :help, 'Author', 'Felix Krause <cert@krausefx.com>'
|
19
|
-
program :help, 'Website', 'https://fastlane.tools'
|
20
|
-
program :help, 'GitHub', 'https://github.com/fastlane/cert'
|
21
|
-
program :help_formatter, :compact
|
22
|
-
|
23
|
-
global_option('--verbose') { $verbose = true }
|
24
|
-
|
25
|
-
FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options)
|
26
|
-
|
27
|
-
command :create do |c|
|
28
|
-
c.syntax = 'cert create'
|
29
|
-
c.description = 'Create new iOS code signing certificates'
|
30
|
-
|
31
|
-
c.action do |args, options|
|
32
|
-
Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__)
|
33
|
-
Cert::Runner.new.launch
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
command :revoke_expired do |c|
|
38
|
-
c.syntax = 'cert revoke_expired'
|
39
|
-
c.description = 'Revoke expired iOS code signing certificates'
|
40
|
-
|
41
|
-
c.action do |args, options|
|
42
|
-
Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__)
|
43
|
-
Cert::Runner.new.revoke_expired_certs!
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
default_command :create
|
48
|
-
|
49
|
-
run!
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
begin
|
54
|
-
FastlaneCore::UpdateChecker.start_looking_for_update('cert')
|
55
|
-
CertApplication.new.run
|
56
|
-
ensure
|
57
|
-
FastlaneCore::UpdateChecker.show_update_status('cert', Cert::VERSION)
|
58
|
-
end
|
5
|
+
require 'cert/commands_generator'
|
6
|
+
Cert::CommandsGenerator.start
|
data/lib/cert.rb
CHANGED
@@ -14,6 +14,7 @@ module Cert
|
|
14
14
|
|
15
15
|
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
|
16
16
|
UI = FastlaneCore::UI
|
17
|
+
ROOT = Pathname.new(File.expand_path('../..', __FILE__))
|
17
18
|
|
18
19
|
ENV['FASTLANE_TEAM_ID'] ||= ENV["CERT_TEAM_ID"]
|
19
20
|
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'commander'
|
2
|
+
|
3
|
+
HighLine.track_eof = false
|
4
|
+
|
5
|
+
module Cert
|
6
|
+
class CommandsGenerator
|
7
|
+
include Commander::Methods
|
8
|
+
|
9
|
+
def self.start
|
10
|
+
FastlaneCore::UpdateChecker.start_looking_for_update('cert')
|
11
|
+
self.new.run
|
12
|
+
ensure
|
13
|
+
FastlaneCore::UpdateChecker.show_update_status('cert', Cert::VERSION)
|
14
|
+
end
|
15
|
+
|
16
|
+
def run
|
17
|
+
program :version, Cert::VERSION
|
18
|
+
program :description, 'CLI for \'cert\' - Create new iOS code signing certificates'
|
19
|
+
program :help, 'Author', 'Felix Krause <cert@krausefx.com>'
|
20
|
+
program :help, 'Website', 'https://fastlane.tools'
|
21
|
+
program :help, 'GitHub', 'https://github.com/fastlane/cert'
|
22
|
+
program :help_formatter, :compact
|
23
|
+
|
24
|
+
global_option('--verbose') { $verbose = true }
|
25
|
+
|
26
|
+
FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options)
|
27
|
+
|
28
|
+
command :create do |c|
|
29
|
+
c.syntax = 'cert create'
|
30
|
+
c.description = 'Create new iOS code signing certificates'
|
31
|
+
|
32
|
+
c.action do |args, options|
|
33
|
+
Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__)
|
34
|
+
Cert::Runner.new.launch
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
command :revoke_expired do |c|
|
39
|
+
c.syntax = 'cert revoke_expired'
|
40
|
+
c.description = 'Revoke expired iOS code signing certificates'
|
41
|
+
|
42
|
+
c.action do |args, options|
|
43
|
+
Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__)
|
44
|
+
Cert::Runner.new.revoke_expired_certs!
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
default_command :create
|
49
|
+
|
50
|
+
run!
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/lib/cert/runner.rb
CHANGED
@@ -6,8 +6,8 @@ module Cert
|
|
6
6
|
run
|
7
7
|
|
8
8
|
installed = FastlaneCore::CertChecker.installed?(ENV["CER_FILE_PATH"])
|
9
|
-
UI.message "Verifying the
|
10
|
-
UI.user_error!("Could not find the newly generated certificate installed") unless installed
|
9
|
+
UI.message "Verifying the certificate is properly installed locally..."
|
10
|
+
UI.user_error!("Could not find the newly generated certificate installed", show_github_issues: true) unless installed
|
11
11
|
UI.success "Successfully installed certificate #{ENV['CER_CERTIFICATE_ID']}"
|
12
12
|
return ENV["CER_FILE_PATH"]
|
13
13
|
end
|
@@ -137,7 +137,7 @@ module Cert
|
|
137
137
|
certificate = certificate_type.create!(csr: csr)
|
138
138
|
rescue => ex
|
139
139
|
if ex.to_s.include?("You already have a current")
|
140
|
-
UI.user_error!("Could not create another certificate, reached the maximum number of available certificates.")
|
140
|
+
UI.user_error!("Could not create another certificate, reached the maximum number of available certificates.", show_github_issues: true)
|
141
141
|
end
|
142
142
|
|
143
143
|
raise ex
|
data/lib/cert/version.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.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-29 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.50.3
|
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.50.3
|
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.32.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.32.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.0.0
|
@@ -202,6 +202,7 @@ files:
|
|
202
202
|
- README.md
|
203
203
|
- bin/cert
|
204
204
|
- lib/cert.rb
|
205
|
+
- lib/cert/commands_generator.rb
|
205
206
|
- lib/cert/keychain_importer.rb
|
206
207
|
- lib/cert/options.rb
|
207
208
|
- lib/cert/runner.rb
|