provisinfo 0.1.0 → 0.1.1
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/README.md +1 -3
- data/lib/provisinfo.rb +2 -3
- data/lib/provisinfo/provisioning.rb +8 -8
- data/lib/provisinfo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 401c021e4e7b5f1819434ae0f3c53344648d7ea9
|
4
|
+
data.tar.gz: 93db73a96aa7f7e9b0859c333a413c056b446443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eccada17f1626601607a978f43012c28e7b4e3e4e1a3450edb3dc4119ab4aa1625a5b925497c2b2b5656f28b7a27d333af4fa65739bcaad2d5a8a9673fa82d02
|
7
|
+
data.tar.gz: 5219f2e58b1a42c71d1d35de1d68768b263c578adbeae9022afc00ad175c1245676bff346949f2db109e8e41f4c75877c45132789dd691e954658084ba4dc4b2
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Provisinfo
|
2
2
|
|
3
|
-
Welcome to
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Welcome to provisinfo Gem! It a CLI tool to extract metadata information for binary .MobileProvision files (really .plist)
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
data/lib/provisinfo.rb
CHANGED
@@ -26,19 +26,19 @@ class Provisioning
|
|
26
26
|
def load_from_file(filepath)
|
27
27
|
@filename = filepath
|
28
28
|
xml_raw = `security cms -D -i #{@filename}`
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
xml_parsed = Plist::parse_xml(xml_raw)
|
30
|
+
@name = xml_parsed['Name']
|
31
|
+
@uuid = xml_parsed['UUID']
|
32
|
+
@appID = xml_parsed['application-identifier']
|
33
33
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def self.list_files()
|
37
37
|
provisioning_file_paths = []
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
Dir.entries('.').each do |path|
|
39
|
+
provisioning_file_paths << path if path=~ /.*\.mobileprovision$/
|
40
|
+
end
|
41
|
+
provisioning_file_paths
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
data/lib/provisinfo/version.rb
CHANGED