cert 0.3.3 → 1.0.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: 88229cf680a91240aeed1791a54e568a13549a11
4
- data.tar.gz: 5acd569ede0bf47bbd5c52f0bc9f755477653367
3
+ metadata.gz: e1d4aec6199e0b08534d676261e597402218e4fc
4
+ data.tar.gz: 53fd14752012eb9f1c07decdd0af9f082a7fecec
5
5
  SHA512:
6
- metadata.gz: 68bd433d9523547edcbe31eef175fdf543d8744c411bc7e55d4974bd34f7ef628c590faa6f497a9b7b3f03f719e7923cc541b5b0e9970dcf37cb7ebd166ac61a
7
- data.tar.gz: 7c714f5d69ba69d19f19dcc2cee018c31b6cfc091219b0152b66e235fa610349daf776e932a0e1b474ece109c92ba8f034005cf910b8864108d63e49c8e12594
6
+ metadata.gz: ae4557834092342671af55323d30b20e1ef489653bbf13d0f1baa5e04920bd3e9813aab9d98e26200a38ab792ebd9d39a91656bf13bec5d8e361e8135fac4c5b
7
+ data.tar.gz: d4ced878ac0bbdcce5d84cf813ba3991f433f5f5a0e54827e0852b089ad6f754897c66275ddbec23de1ef967557713403bfdb69e854af6945cdfb37796e18354
data/README.md CHANGED
@@ -34,8 +34,6 @@ cert
34
34
 
35
35
  ###### Automatically create and maintain iOS code signing certificates.
36
36
 
37
- ##### This tool was sponsored by [AppInstitute](http://appinstitute.co.uk/).
38
-
39
37
  Get in contact with the developer on Twitter: [@KrauseFx](https://twitter.com/KrauseFx)
40
38
 
41
39
  -------
@@ -98,14 +96,11 @@ For a list of available commands run
98
96
 
99
97
  cert --help
100
98
 
99
+ Keep in mind, there is no way for `cert` to download existing certificates + private keys from the Apple Developer Portal, as the private key never leaves your computer.
100
+
101
101
  ## Environment Variables
102
- In case you prefer environment variables:
103
102
 
104
- - ```CERT_USERNAME```
105
- - ```CERT_TEAM_ID```
106
- - ```CERT_KEYCHAIN_PATH``` The path to a specific Keychain if you don't want to use the default one
107
- - ```CERT_SIGNING_REQUEST_PATH``` Path to your own signing request file
108
- - ```FASTLANE_TEAM_NAME``` (the Team Name, e.g. `Felix Krause`)
103
+ Run `cert --help` to get a list of all available environment variables.
109
104
 
110
105
  ## Use with [`sigh`](https://github.com/KrauseFx/sigh)
111
106
 
@@ -125,7 +120,7 @@ This will result in `sigh` always using the correct signing certificate, which i
125
120
 
126
121
 
127
122
  ## How is my password stored?
128
- ```cert``` uses the [password manager](https://github.com/fastlane/CredentialsManager) from `fastlane`. Take a look the [CredentialsManager README](https://github.com/fastlane/CredentialsManager) for more information.
123
+ `cert` uses the [password manager](https://github.com/fastlane/CredentialsManager) from `fastlane`. Take a look the [CredentialsManager README](https://github.com/fastlane/CredentialsManager) for more information.
129
124
 
130
125
  # Tips
131
126
 
data/bin/cert CHANGED
@@ -29,7 +29,7 @@ class CertApplication
29
29
 
30
30
  c.action do |args, options|
31
31
  Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__)
32
- Cert::CertRunner.new.launch
32
+ Cert::Runner.new.launch
33
33
  end
34
34
  end
35
35
 
data/lib/cert/options.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'fastlane_core'
2
+ require 'credentials_manager'
2
3
 
3
4
  module Cert
4
5
  class Options
@@ -34,14 +35,6 @@ module Cert
34
35
  optional: true,
35
36
  verify_block: proc do |value|
36
37
  raise "Keychain not found at path '#{value}'".red unless File.exist? value
37
- end),
38
- FastlaneCore::ConfigItem.new(key: :signing_request_path,
39
- short_option: "-s",
40
- env_name: "CERT_SIGNING_REQUEST_PATH",
41
- description: "Path to a signing request file (optional)",
42
- optional: true,
43
- verify_block: proc do |value|
44
- raise "File not found at path '#{value}'".red unless File.exist? value
45
38
  end)
46
39
  ]
47
40
  end
@@ -1,9 +1,9 @@
1
1
  module Cert
2
- class CertRunner
2
+ class Runner
3
3
  def launch
4
4
  run
5
5
 
6
- installed = FastlaneCore::CertChecker.installed? ENV["CER_FILE_PATH"]
6
+ installed = FastlaneCore::CertChecker.installed?(ENV["CER_FILE_PATH"])
7
7
  raise "Could not find the newly generated certificate installed" unless installed
8
8
  end
9
9
 
@@ -30,7 +30,7 @@ module Cert
30
30
  certificates.each do |certificate|
31
31
  path = store_certificate(certificate)
32
32
 
33
- if FastlaneCore::CertChecker.installed? path
33
+ if FastlaneCore::CertChecker.installed?(path)
34
34
  # This certificate is installed on the local machine
35
35
  ENV["CER_CERTIFICATE_ID"] = certificate.id
36
36
  ENV["CER_FILE_PATH"] = path
data/lib/cert/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cert
2
- VERSION = "0.3.3"
2
+ VERSION = "1.0.0"
3
3
  end
data/lib/cert.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'cert/version'
2
- require 'cert/dependency_checker'
3
- require 'cert/cert_runner'
2
+ require 'cert/runner'
4
3
  require 'cert/keychain_importer'
4
+ require 'cert/options'
5
5
 
6
6
  require 'fastlane_core'
7
7
  require 'spaceship'
@@ -12,12 +12,7 @@ module Cert
12
12
  attr_accessor :config
13
13
  end
14
14
 
15
- TMP_FOLDER = "/tmp/cert/"
16
- FileUtils.mkdir_p TMP_FOLDER
17
-
18
15
  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
19
16
 
20
17
  ENV['FASTLANE_TEAM_ID'] ||= ENV["CERT_TEAM_ID"]
21
-
22
- DependencyChecker.check_dependencies
23
18
  end
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: 0.3.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-01 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -128,6 +128,48 @@ dependencies:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
130
  version: 1.19.0
131
+ - !ruby/object:Gem::Dependency
132
+ name: coveralls
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: fastlane
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: rubocop
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '0.34'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '0.34'
131
173
  description: Create new iOS code signing certificates
132
174
  email:
133
175
  - cert@krausefx.com
@@ -140,10 +182,9 @@ files:
140
182
  - README.md
141
183
  - bin/cert
142
184
  - lib/cert.rb
143
- - lib/cert/cert_runner.rb
144
- - lib/cert/dependency_checker.rb
145
185
  - lib/cert/keychain_importer.rb
146
186
  - lib/cert/options.rb
187
+ - lib/cert/runner.rb
147
188
  - lib/cert/version.rb
148
189
  homepage: https://fastlane.tools
149
190
  licenses:
@@ -165,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
206
  version: '0'
166
207
  requirements: []
167
208
  rubyforge_project:
168
- rubygems_version: 2.4.6
209
+ rubygems_version: 2.4.5
169
210
  signing_key:
170
211
  specification_version: 4
171
212
  summary: Create new iOS code signing certificates
@@ -1,19 +0,0 @@
1
- module Cert
2
- class DependencyChecker
3
- def self.check_dependencies
4
- self.check_xcode_select
5
- end
6
-
7
- def self.check_xcode_select
8
- return if Helper.is_test?
9
- unless `xcode-select -v`.include? "xcode-select version "
10
- Helper.log.fatal '#############################################################'
11
- Helper.log.fatal "# You have to install the Xcode commdand line tools to use cert"
12
- Helper.log.fatal "# Install the latest version of Xcode from the AppStore"
13
- Helper.log.fatal "# Run xcode-select --install to install the developer tools"
14
- Helper.log.fatal '#############################################################'
15
- raise "Run 'xcode-select --install' and start cert again"
16
- end
17
- end
18
- end
19
- end