fastlane-plugin-certificate_expirydate 0.1.0 → 0.1.1

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: 0cf12ead3ae197877bd1fb00646165c2b676e33a
4
- data.tar.gz: 7935dec3bb184fe7ee60e0e5c3cef64870b9fbb0
3
+ metadata.gz: 80ffa8497b2650082b0106e44564d49f37f3d056
4
+ data.tar.gz: 154b9b14d1aafa8527dfbd6ee9c5c5f4245756cf
5
5
  SHA512:
6
- metadata.gz: 9b11614a695f56f56ed752fc50ed43dd06278a7f6819365eaf3da0978cd63dc240f24358f75efedaac7746576526f639645d9695030fecad00bec647b10f15e6
7
- data.tar.gz: 91a0b960c8bf722a67de0a2430b0277243b4d5fbccf420ef33317dc3d441e9a98a6cb1f29d39bf507a691ba3377b42f2aebd5d2bcbe6b7b3571a31d90826f6e0
6
+ metadata.gz: 99c34b57e69e27bd95e179ff7e3abe95cba14fa68ff5f5fa60d12790772d7b7a661510a064b4a16c7ec3046b44cb0155e3a5d4934ce503294e7ce4765eb4f6a5
7
+ data.tar.gz: e508909b68085b3d623b0cdee55f818f91644c2af01940c404fe4258aaa1f15269654a0c54be05a9ec1d49a9376aa1eb0f91436dec03577e3ac9b25814421fbc
@@ -6,8 +6,8 @@ module Fastlane
6
6
  certificate_pem_file = File.join("/tmp", "#{certificate_basename}.pem")
7
7
  File.delete(certificate_pem_file) if File.exist?(certificate_pem_file)
8
8
 
9
- Fastlane::Action.sh("openssl pkcs12 -in #{params[:certificate_filepath].shellescape} -out #{certificate_pem_file} -nodes -password pass:#{params[:certificate_password].shellescape}")
10
- expirydate_string = Fastlane::Actions.sh("cat #{certificate_pem_file} | openssl x509 -noout -enddate")[/notAfter=(.*)/, 1]
9
+ Actions.sh("openssl pkcs12 -in #{params[:certificate_filepath].shellescape} -out #{certificate_pem_file} -nodes -password pass:#{params[:certificate_password].shellescape}", log: false)
10
+ expirydate_string = Actions.sh("cat #{certificate_pem_file} | openssl x509 -noout -enddate", log: false)[/notAfter=(.*)/, 1]
11
11
 
12
12
  DateTime.parse(expirydate_string)
13
13
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module CertificateExpirydate
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-certificate_expirydate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson