provisinfo 0.1.2 → 0.1.3

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: 5d22528b09799941149d986289567291a08e13e7
4
- data.tar.gz: 9ea6321928f50b94c3fd57b92aee37104e8019f7
3
+ metadata.gz: c085fa743d77df73e59ee42b73987675bbc18480
4
+ data.tar.gz: 15a477681c5149f289e4797c9d506886b9a14f57
5
5
  SHA512:
6
- metadata.gz: 38c4ee23e7cc65358d6a16c21061d73887060716a5d414b56d33e8b94a4a9aa7d87ccd61c4ec6879a4d8d860c292d566effb993bb70e8264c52c4893395bf537
7
- data.tar.gz: 2037140deecb00dbcb3731b148a86834c598524e8dac1e01e8d2348b127b5fa0b14e801c5ebc4746fd3e5c30b51fd14327cae0a661b237d9520c9770bf33a9cd
6
+ metadata.gz: 1b369a3e0588122af96126ca30e0a5da5915ed2b86666f350ca0694c8f21997309967d9c4468c9a2a831f2168920e40db7c312271b762f23cf693ab0a2e50a34
7
+ data.tar.gz: 7d34953cee8f38db88618126e3cb65e6c9b39f5d8c4c9f2c0548c95b381a2563aeed94ff851b0cc11ca0b84e954bde959875923a6819ebaf21d769b3ccb61d9a
@@ -1,5 +1,7 @@
1
1
  require 'plist'
2
2
  require 'json'
3
+ require 'date'
4
+
3
5
 
4
6
  class Provisioning
5
7
  attr_accessor :name
@@ -8,6 +10,7 @@ class Provisioning
8
10
  attr_accessor :appID
9
11
  attr_accessor :teamID
10
12
  attr_accessor :filename
13
+ attr_accessor :expirationDate
11
14
 
12
15
  #by default, it will load the first .mobileprovision file in current directory
13
16
  def initialize(filename = nil)
@@ -32,7 +35,8 @@ class Provisioning
32
35
  @name = xml_parsed['Name']
33
36
  @uuid = xml_parsed['UUID']
34
37
  @appID = xml_parsed['Entitlements']['application-identifier']
35
- puts xml_parsed['application-identifier']
38
+ @expirationDate = xml_parsed['ExpirationDate']
39
+
36
40
 
37
41
  end
38
42
 
@@ -44,11 +48,17 @@ class Provisioning
44
48
  provisioning_file_paths
45
49
  end
46
50
 
51
+ def is_expired()
52
+ now = DateTime.now
53
+ return self.expirationDate < now
54
+ end
55
+
47
56
  def show_info()
48
57
  puts "Name:"+self.name
49
58
  puts "UUDID:"+self.uuid
50
59
  puts "AppID:"+self.appID
51
60
  puts "TeamID:"+self.teamID
61
+ puts "ExpirationDate:"+self.expirationDate.strftime("%c")
52
62
 
53
63
  end
54
64
 
@@ -56,6 +66,6 @@ end
56
66
 
57
67
 
58
68
  if __FILE__ == $0
59
- #p1 = Provisioning.new('failed.mobileprovision')
60
- #p1.show_info()
69
+ p1 = Provisioning.new('failed.mobileprovision')
70
+ p1.show_info()
61
71
  end
@@ -1,3 +1,3 @@
1
1
  module Provisinfo
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/provisinfo.gemspec CHANGED
@@ -13,9 +13,6 @@ Gem::Specification.new do |spec|
13
13
  spec.description = %q{A simple provisioning profile CLI inspector to extract metadata from .mobileprovision file.}
14
14
  spec.homepage = "https://github.com/osrufung/provisinfo"
15
15
 
16
- # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
17
- # delete this section to allow pushing this gem to any host.
18
-
19
16
 
20
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
18
  spec.bindir = "bin"
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.2
4
+ version: 0.1.3
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-05-08 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.4.6
108
+ rubygems_version: 2.4.8
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: A provisioning profile CLI inspector