pprof 0.3.6 → 0.3.7
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/pprof/provisioning_profile.rb +15 -4
- data/lib/pprof/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58983ff576d6435e3abb280b9ade36c8267b7e88
|
4
|
+
data.tar.gz: f3ef3a41b2809b6691564e73d026176bd4a3baf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ded448ce8128c84e10afd821bba7acf8717b668759fa83e671393c4a4405a4c535591e2530fb0335770d33c2b7292d2fc7af53199e527788b109e31f9593f3c
|
7
|
+
data.tar.gz: 3b1616d4067ce0b2192d62465e73ce525a2ba3f3e895d646cb5a4e558008d3b3e8957dc3f109ac8e404671f084f0f0a7c6b86418309af4abd859e3f9b4c60498
|
@@ -24,10 +24,21 @@ module PProf
|
|
24
24
|
else
|
25
25
|
path = file
|
26
26
|
end
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
xml = nil
|
28
|
+
begin
|
29
|
+
pkcs7 = OpenSSL::PKCS7.new(File.read(path))
|
30
|
+
pkcs7.verify([], OpenSSL::X509::Store.new)
|
31
|
+
xml = pkcs7.data
|
32
|
+
rescue
|
33
|
+
# Seems like sometimes OpenSSL fails to parse the PKCS7 payload
|
34
|
+
# Besides, OpenSSL is deprecated on macOS so might not be up-to-date on all machines
|
35
|
+
# So as a fallback, we run the `security` command line.
|
36
|
+
# (We could use `security` everytime, but invoking a command line is generally less
|
37
|
+
# efficient than calling the OpenSSL gem if available, so for now it's just used as fallback)
|
38
|
+
xml = `security cms -D -i "#{path}" 2> /dev/null`
|
39
|
+
end
|
40
|
+
@plist = Plist::parse_xml(xml)
|
41
|
+
raise "Unable to parse file #{file}." if @plist.nil?
|
31
42
|
end
|
32
43
|
|
33
44
|
# The name of the Provisioning Profile
|
data/lib/pprof/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pprof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Halligon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plist
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
description: library and binary tool to manipulate Provisioning Profile files
|
@@ -49,19 +49,18 @@ require_paths:
|
|
49
49
|
- lib
|
50
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 2.0.0
|
55
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- -
|
57
|
+
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.5.2
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: A Provisioning Profiles library
|
66
66
|
test_files: []
|
67
|
-
has_rdoc:
|