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 +4 -4
- data/lib/provisinfo/provisioning.rb +13 -3
- data/lib/provisinfo/version.rb +1 -1
- data/provisinfo.gemspec +0 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c085fa743d77df73e59ee42b73987675bbc18480
|
4
|
+
data.tar.gz: 15a477681c5149f289e4797c9d506886b9a14f57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
60
|
-
|
69
|
+
p1 = Provisioning.new('failed.mobileprovision')
|
70
|
+
p1.show_info()
|
61
71
|
end
|
data/lib/provisinfo/version.rb
CHANGED
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.
|
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-
|
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.
|
108
|
+
rubygems_version: 2.4.8
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: A provisioning profile CLI inspector
|