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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bb23808a8ff6997f64eb403083346eb9cc029c9
4
- data.tar.gz: 7017076a91ec453ab25ed71da61b372fde330e17
3
+ metadata.gz: 401c021e4e7b5f1819434ae0f3c53344648d7ea9
4
+ data.tar.gz: 93db73a96aa7f7e9b0859c333a413c056b446443
5
5
  SHA512:
6
- metadata.gz: 87946802f40d357a9c00721bc1d6d7fd7ec0ab85d3d0ad89d7ddd4b421fd81c2ce82c3bd44fa2d6cfed4f8a7c865199a67b94dd7d822d1928b9ece6109262886
7
- data.tar.gz: 18100ef707cb4f0571680068269da75eedd341c9d054cd92edceb55d4b17f981d507b6431281aa4dae7f6a86990daec694d50e5267f54a7746ae14135a3bc5b6
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 your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/provisinfo`. To experiment with that code, run `bin/console` for an interactive prompt.
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
@@ -3,9 +3,8 @@ require 'provisinfo/provisioning'
3
3
 
4
4
  module Provisinfo
5
5
  def self.process(provisioninFileName)
6
- puts provisioninFileName
7
6
  p1 = Provisioning.new(provisioninFileName)
8
- puts p1.name
9
-
7
+ puts "Name:"+p1.name
8
+ puts "UUDID:"+p1.uuid
10
9
  end
11
10
  end
@@ -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
- xml_parsed = Plist::parse_xml(xml_raw)
30
- @name = xml_parsed['Name']
31
- @uuid = xml_parsed['UUID']
32
- @appID = xml_parsed['application-identifier']
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
- Dir.entries('.').each do |path|
39
- provisioning_file_paths << path if path=~ /.*\.mobileprovision$/
40
- end
41
- provisioning_file_paths
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
 
@@ -1,3 +1,3 @@
1
1
  module Provisinfo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provisinfo
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
  - Oswaldo Rubio