cert 0.2.0 → 0.2.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: 302850811f77c5a8ce271230f50e3bd432956e47
4
- data.tar.gz: de082bbf128e9f94b3f372c8d369dc4f1be95f31
3
+ metadata.gz: 1613b46cf5a0b4f57ac5e90ba9b08551c03bb78c
4
+ data.tar.gz: 635914b5ce20080fd08c25d8536d4b471a1c59af
5
5
  SHA512:
6
- metadata.gz: 45a630b1de478c35ed1f34aa956854bd4516085fd3fb68d6bbe8b546e280462d68f2b02afde076630ddeaf7759e95e02244c94979bcf1e919e42fdd96d21a15b
7
- data.tar.gz: ab718b2614aee45d932eeb7708d104dcd5f371d92ae1a4e0d782232d0e8aabb45c2aebb2c092bd0cc8b22dcf8a422b611b306b23f5076a1361f9cae22658b905
6
+ metadata.gz: 7d5ccf6591453392d977741fc12ff51e4151f7f4b4a35a7d85f7797a46f053714ef308767e811ebd5bad37ef4e406e41f0ee8f7d4389b9f232a405346db35af4
7
+ data.tar.gz: ed9086fc6162cf754b612b0e0019be63ebc5b99836f38f123245e6c4577bbb4ea392d263e2b6d5df621736fb1a6eac7408099ccd2f2f4564aa0e91990890fd03
data/README.md CHANGED
@@ -127,7 +127,7 @@ This will result in `sigh` always using the correct signing certificate, which i
127
127
 
128
128
 
129
129
  ## How is my password stored?
130
- ```cert``` uses the [password manager](https://github.com/KrauseFx/CredentialsManager) from `fastlane`. Take a look the [CredentialsManager README](https://github.com/KrauseFx/CredentialsManager) for more information.
130
+ ```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.
131
131
 
132
132
  # Tips
133
133
 
@@ -126,7 +126,10 @@ module Cert
126
126
 
127
127
  raise "Something went wrong when downloading the certificate" unless data
128
128
 
129
- dataWritten = File.write(output_path, data)
129
+ # write data to file
130
+ dataWritten = File.open(output_path, "wb") do |f|
131
+ f.write(data)
132
+ end
130
133
 
131
134
  if dataWritten == 0
132
135
  raise "Can't write to #{output_path}"
@@ -174,9 +177,9 @@ module Cert
174
177
 
175
178
  raise "Something went wrong with request to #{url}" unless certs
176
179
  certs.each do |current_cert|
177
- if current_cert['typeString'] == certTypeName
178
- # The other profiles are push profiles
179
- # We only care about the distribution profile
180
+ if current_cert['typeString'] == certTypeName and current_cert['canDownload']
181
+ # The other profiles are push profiles or ones we are not allowed to download
182
+ # We only care about the distribution profile that we can download
180
183
  available << current_cert # mostly we only care about the 'certificateId'
181
184
  end
182
185
  end
data/lib/cert/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cert
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  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.2.0
4
+ version: 0.2.1
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-05-05 00:00:00.000000000 Z
11
+ date: 2015-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core