cert 1.2.7 → 1.2.8

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: a0747b588d8840b568bc8da6de2457e512e831e5
4
- data.tar.gz: ba553b92434f56c37c4cc7f73fb448b1ee6766e6
3
+ metadata.gz: b83121a20da8350a26a94bfae790b6d9b239d0eb
4
+ data.tar.gz: 9ecc5e95bfe57e2ef1c8e5d4b744104d4f3e1acf
5
5
  SHA512:
6
- metadata.gz: 770b97b133e13746b1e1d1213dc3597a1d7f78bb4ea38ef8b02adf3e94a54aa5996f30aa4bce72ee0241a49284269ae1bf0108621650098a803323d93326e23b
7
- data.tar.gz: d327995a0ea39c88a6fe7daa0c179d8bf3c7a0e1f0002a3fab74c6de88012e530a140ca1a5e8b44d4c6a5eeda878908132978945d7025ec3afc81e2609afab0b
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> &bull;
10
10
  <a href="https://github.com/fastlane/snapshot">snapshot</a> &bull;
11
11
  <a href="https://github.com/fastlane/frameit">frameit</a> &bull;
12
- <a href="https://github.com/fastlane/PEM">PEM</a> &bull;
12
+ <a href="https://github.com/fastlane/pem">pem</a> &bull;
13
13
  <a href="https://github.com/fastlane/sigh">sigh</a> &bull;
14
14
  <a href="https://github.com/fastlane/produce">produce</a> &bull;
15
15
  <b>cert</b> &bull;
@@ -17,7 +17,8 @@
17
17
  <a href="https://github.com/fastlane/pilot">pilot</a> &bull;
18
18
  <a href="https://github.com/fastlane/boarding">boarding</a> &bull;
19
19
  <a href="https://github.com/fastlane/gym">gym</a> &bull;
20
- <a href="https://github.com/fastlane/scan">scan</a>
20
+ <a href="https://github.com/fastlane/scan">scan</a> &bull;
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
- [![Twitter: @KauseFx](https://img.shields.io/badge/contact-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
32
- [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/KrauseFx/cert/blob/master/LICENSE)
32
+ [![Twitter: @FastlaneTools](https://img.shields.io/badge/contact-@FastlaneTools-blue.svg?style=flat)](https://twitter.com/fastlanetools)
33
+ [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/cert/blob/master/LICENSE)
33
34
  [![Gem](https://img.shields.io/gem/v/cert.svg?style=flat)](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 developer on Twitter: [@KrauseFx](https://twitter.com/KrauseFx)
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
- - [`PEM`](https://github.com/fastlane/PEM): Automatically generate and renew your push notification profiles
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/krausefx/cert'
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] || "#{Dir.home}/Library/Keychains/login.keychain")
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
- optional: true,
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? value
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
@@ -1,3 +1,3 @@
1
1
  module Cert
2
- VERSION = "1.2.7"
2
+ VERSION = "1.2.8"
3
3
  end
data/lib/cert.rb CHANGED
@@ -13,6 +13,7 @@ module Cert
13
13
  end
14
14
 
15
15
  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
16
+ UI = FastlaneCore::UI
16
17
 
17
18
  ENV['FASTLANE_TEAM_ID'] ||= ENV["CERT_TEAM_ID"]
18
19
  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: 1.2.7
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: 2015-12-03 00:00:00.000000000 Z
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.26.4
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.26.4
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.15.1
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.15.1
49
+ version: 0.16.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.0.0