mobile_provision 1.1.1 → 2.0.0
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 +16 -5
- data/lib/mobile_provision/representation.rb +24 -5
- data/lib/mobile_provision/version.rb +1 -1
- metadata +5 -6
- data/mobile_provision-1.1.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e7fb867f909c326995658168acc7bd7325310cf
|
4
|
+
data.tar.gz: 2600acda050bebe6c1596cb1b47decd18cfd447e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5707e57ee63bb16bb23e068b72836ba2461dc51353f5673d851c7a168b0903a04f0c93e2ce5c8bcf078f3735db7bed18aeb0c186e725acf6dff27d1ff9ebd22d
|
7
|
+
data.tar.gz: 87ffeb9e25bb9d2f3702e65df881deb8ef13f1b6ff3b2a022c9076b4cd7e172d4c61e49fff290fa9efad5a6161c04149abaac7c63bbbf17b378c223b18997232
|
data/README.md
CHANGED
@@ -38,11 +38,14 @@ Extractible info
|
|
38
38
|
---
|
39
39
|
Currently, we can extract:
|
40
40
|
|
41
|
-
+
|
42
|
-
+
|
41
|
+
+ expiration_date
|
42
|
+
+ app_id
|
43
|
+
+ team_id
|
44
|
+
+ bundle_id
|
43
45
|
+ certificate
|
44
|
-
+
|
45
|
-
+
|
46
|
+
+ profile_type
|
47
|
+
+ registered_udids in case of an Ad-Hoc type
|
48
|
+
+ has_associated_domains
|
46
49
|
|
47
50
|
Contributing
|
48
51
|
---
|
@@ -50,4 +53,12 @@ Contributing
|
|
50
53
|
2. Create your feature branch (git checkout -b my-new-feature)
|
51
54
|
3. Commit your changes (git commit -am 'Add some feature')
|
52
55
|
4. Push to the branch (git push origin my-new-feature)
|
53
|
-
5. Create a new Pull Request
|
56
|
+
5. Create a new Pull Request
|
57
|
+
|
58
|
+
2.0.0 -2017-09-06
|
59
|
+
---
|
60
|
+
|
61
|
+
+ Changed: `bundle_id` has been renamed `app_id` for the application identifier
|
62
|
+
+ Added: `team_id` is now available
|
63
|
+
+ Added: `bundle_id` is now available from `app_id` extraction
|
64
|
+
+ Added: `has_associated_domains` is available
|
@@ -5,20 +5,25 @@ module MobileProvision
|
|
5
5
|
class Representation
|
6
6
|
EXPIRATION_DATE_KEY = 'ExpirationDate'
|
7
7
|
ENTITLEMENTS_KEY = 'Entitlements'
|
8
|
-
|
8
|
+
APP_ID_KEY = 'application-identifier'
|
9
9
|
CERTIFICATE_KEY = 'DeveloperCertificates'
|
10
10
|
INHOUSE_PROFILE_KEY = 'ProvisionsAllDevices'
|
11
11
|
ADHOC_PROFILE_KEY = 'ProvisionedDevices'
|
12
|
+
TEAM_ID_KEY = 'com.apple.developer.team-identifier'
|
13
|
+
HAS_ASSOCIATED_DOMAINS = 'com.apple.developer.associated-domains'
|
12
14
|
|
13
|
-
attr_reader :expiration_date, :
|
15
|
+
attr_reader :expiration_date, :app_id, :certificate, :profile_type, :registered_udids, :team_id, :bundle_id, :has_associated_domains
|
14
16
|
|
15
17
|
def initialize(file)
|
16
18
|
read!(file)
|
17
19
|
@expiration_date = build_expiration_date
|
18
20
|
@certificate = build_certificate
|
19
|
-
@
|
21
|
+
@app_id = build_app_id
|
20
22
|
@profile_type = build_profile_type
|
21
23
|
@registered_udids = build_registered_udids
|
24
|
+
@team_id = build_team_id
|
25
|
+
@bundle_id = build_bundle_id
|
26
|
+
@has_associated_domains = has_associated_domains?
|
22
27
|
end
|
23
28
|
|
24
29
|
private
|
@@ -68,9 +73,9 @@ module MobileProvision
|
|
68
73
|
Time.parse(expiration_date.to_s).utc
|
69
74
|
end
|
70
75
|
|
71
|
-
def
|
76
|
+
def build_app_id
|
72
77
|
entitlements = read_plist_value(ENTITLEMENTS_KEY)
|
73
|
-
read_plist_value(
|
78
|
+
read_plist_value(APP_ID_KEY, entitlements)
|
74
79
|
end
|
75
80
|
|
76
81
|
def build_certificate
|
@@ -93,5 +98,19 @@ module MobileProvision
|
|
93
98
|
return nil unless @profile_type == AD_HOC_TYPE
|
94
99
|
read_plist_value(ADHOC_PROFILE_KEY)
|
95
100
|
end
|
101
|
+
|
102
|
+
def build_team_id
|
103
|
+
entitlements = read_plist_value(ENTITLEMENTS_KEY)
|
104
|
+
read_plist_value(TEAM_ID_KEY, entitlements)
|
105
|
+
end
|
106
|
+
|
107
|
+
def build_bundle_id
|
108
|
+
build_app_id[/(?<=\.).*/]
|
109
|
+
end
|
110
|
+
|
111
|
+
def has_associated_domains?
|
112
|
+
entitlements = read_plist_value(ENTITLEMENTS_KEY)
|
113
|
+
read_plist_value(HAS_ASSOCIATED_DOMAINS, entitlements).kind_of? String
|
114
|
+
end
|
96
115
|
end
|
97
116
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobile_provision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Ignjatovic
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
@@ -55,8 +55,8 @@ dependencies:
|
|
55
55
|
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '2.3'
|
58
|
-
description:
|
59
|
-
|
58
|
+
description: " MobileProvision is a convenient Mobile Provision wrapper written
|
59
|
+
in Ruby.\n"
|
60
60
|
email: dev@appaloosa-store.com
|
61
61
|
executables: []
|
62
62
|
extensions: []
|
@@ -71,7 +71,6 @@ files:
|
|
71
71
|
- lib/mobile_provision.rb
|
72
72
|
- lib/mobile_provision/representation.rb
|
73
73
|
- lib/mobile_provision/version.rb
|
74
|
-
- mobile_provision-1.1.0.gem
|
75
74
|
- mobile_provision.gemspec
|
76
75
|
homepage: http://github.com/appaloosa-store/mobile_provision
|
77
76
|
licenses:
|
@@ -93,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
92
|
version: '0'
|
94
93
|
requirements: []
|
95
94
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.6.13
|
97
96
|
signing_key:
|
98
97
|
specification_version: 4
|
99
98
|
summary: MobileProvision is a convenient Mobile Provision wrapper written in Ruby.
|
data/mobile_provision-1.1.0.gem
DELETED
Binary file
|