provisinfo 0.1.4 → 0.1.5

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: 84c054f090b22dc5feecaf2bc9951589edf5fba4
4
- data.tar.gz: 6279105bd9997ce3c9a4b9009d9b07b7868ffcb7
3
+ metadata.gz: 6288e94e0fc12aed0d64123a542dffb9f85175cf
4
+ data.tar.gz: cb3498782b47bcaf1558e5865ae2ab86bd7a0f26
5
5
  SHA512:
6
- metadata.gz: 2c43fce6c23ec7d1e17cd57027f7f6adb9657fd6d2b956619ce195cecef29036636f72dbdd6d45c0cf8d61b8a970bf35f30aad1194d5d5cb1cf53bc2f0c3ed6c
7
- data.tar.gz: 1816daafdcec1e08860b97cf8c4002b7de72633312d6b9746d6bbfcab2241dffc09bd53d30aed642ee4ccc94fb74410206f31e05d9cfdd2b50b7664d58ce3d74
6
+ metadata.gz: 3d31e278e41643ac3af0e46219ad7e03baa1ac01b17631dd4002436c62f55134cb3293202a944c276ca30a5e4b3709bc17ce12e6af670a16113b0f0dd6fdaac9
7
+ data.tar.gz: d7272713b8057720d246c17a701c3414d383ff672478f8814897111e4b9acdfb6fd7f6f6795938ffcee35331f412cbf769d93b8c1b0a4fc08909ca531247aba1
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Provisinfo
2
2
 
3
- Welcome to provisinfo Gem! It a CLI tool and a ruby library to extract metadata information (name, UUId, AppID, type) from binary .mobileprovision files (a kind of .plist file)
3
+ Welcome to provisinfo Gem! It a CLI tool and a ruby library to extract metadata information (name, UUId, AppID, type) from binary .mobileprovision files (a kind of .plist file). Also, it can be used to validate matching between provisioning files and .P12 certificates.
4
4
 
5
5
  ## Installation
6
6
 
@@ -35,6 +35,13 @@ Or you can use in your code:
35
35
  p1.appID
36
36
  puts p1.expirationDate < DateTime.now ? "Expired" : "Active"
37
37
 
38
+ # make a matching validation
39
+ if p1.matches_certificate?('3WKJWX.p12','')
40
+ puts_message(RED, "error", "Provisioning profile was not signed with provided certificate.")
41
+ else
42
+ puts_message(GREEN, "passed", "Provisioning profile matches certificate file.")
43
+ end
44
+
38
45
 
39
46
  ## Development
40
47
 
data/lib/provisinfo.rb CHANGED
@@ -3,7 +3,7 @@ require 'provisinfo/provisioning'
3
3
 
4
4
  module Provisinfo
5
5
  def self.show_info(provisioningFileName)
6
- p1 = Provisioning.new(provisionginFileName)
6
+ p1 = Provisioning.new(provisioningFileName)
7
7
  p1.show_info()
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Provisinfo
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/provisinfo.gemspec CHANGED
@@ -23,6 +23,4 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_dependency 'commander', '~> 4.1'
25
25
  spec.add_dependency 'plist', '~> 3.1.0'
26
-
27
-
28
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provisinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oswaldo Rubio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-11 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler