pliney 0.0.3 → 0.0.4
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/lib/pliney/provisioning_profile.rb +5 -0
- data/lib/pliney/version.rb +1 -1
- data/spec/ipa_spec.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2bfa1e0dfc77474eaabb59345899e03103a99434
|
|
4
|
+
data.tar.gz: aad5759a6adaec3bec3f80f4711fac40781ce558
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22502e81aba65160256be4851bc4e77ab6b492c2862cfc57368e2c999951692cf3f1f1e5cca42ebadcb5187b5bc1ba368692ba816a4b5bc2ff969f63dd48107b
|
|
7
|
+
data.tar.gz: 285a7560ece3b623ee9d7c2281b30ac78e4b90f47f01a590dedebe85ae48c2af673bbad06e014ad9462292dd7b027825500c6c8608f66acbc8a9152b360117cb
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require 'pliney/util'
|
|
2
2
|
require 'pliney/entitlements'
|
|
3
3
|
require 'openssl'
|
|
4
|
+
require 'digest/sha1'
|
|
4
5
|
|
|
5
6
|
module Pliney
|
|
6
7
|
class EntitlementsMask < Entitlements
|
|
@@ -48,6 +49,10 @@ module Pliney
|
|
|
48
49
|
@developer_certs ||= plist["DeveloperCertificates"].map{|cer| OpenSSL::X509::Certificate.new(cer)}
|
|
49
50
|
end
|
|
50
51
|
|
|
52
|
+
def developer_cert_sha1_digests
|
|
53
|
+
@dev_cert_digests ||= plist["DeveloperCertificates"].map{|cer| Digest::SHA1.hexdigest(cer)}
|
|
54
|
+
end
|
|
55
|
+
|
|
51
56
|
def appid_name
|
|
52
57
|
plist["AppIDName"]
|
|
53
58
|
end
|
data/lib/pliney/version.rb
CHANGED
data/spec/ipa_spec.rb
CHANGED
|
@@ -55,6 +55,16 @@ describe Pliney::IPA do
|
|
|
55
55
|
@ipa.provisioning_profile.should be_a Pliney::ProvisioningProfile
|
|
56
56
|
@ipa.provisioning_profile.name.should == "Pliney Test Profile"
|
|
57
57
|
@ipa.provisioning_profile.team_identifier.should == ["UL736KYQR9"]
|
|
58
|
+
certs = @ipa.provisioning_profile.developer_certificates
|
|
59
|
+
certs.count.should == 2
|
|
60
|
+
certs.first.should be_a OpenSSL::X509::Certificate
|
|
61
|
+
|
|
62
|
+
cert_digests = @ipa.provisioning_profile.developer_cert_sha1_digests
|
|
63
|
+
cert_digests.count.should == 2
|
|
64
|
+
cert_digests.should == [
|
|
65
|
+
"2b2c476e0bc509bf5e5485d1de95866e409d3116",
|
|
66
|
+
"84e379b6999efcff905a59d9d1d6017258ec74a1"
|
|
67
|
+
]
|
|
58
68
|
end
|
|
59
69
|
|
|
60
70
|
it "gets the bundle version" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pliney
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Monti
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubyzip
|