apple_id 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/apple_id.gemspec +1 -1
- data/lib/apple_id/event_token/event.rb +24 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fee18e5a9878a0458806d26573fc4434ced6d9cec92700189c8f31077874280
|
4
|
+
data.tar.gz: 18bbca83bb744fe286e908785418eb0583fa3f3b3f059dbba56f4166be3bb496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d01d0cf6e69b4146b58c9d2a5354bdf235bd836b3778fcc90d89d2d760c40272182df367f665cf1e8137a397921867df7d3bfc4fec056bd3b48724773f8b371
|
7
|
+
data.tar.gz: 8d2410bbd7134dde8a58ab157717d35880b397810c5769ab2bf673f1d6a1b4c11658f781f29e51f6f6d705d3bf8d9bc3763da8ce444969d1f7e6682918029a98
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.2
|
data/apple_id.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_runtime_dependency 'rack-oauth2', '~> 1.21'
|
21
|
+
spec.add_runtime_dependency 'rack-oauth2', '~> 1.21.2'
|
22
22
|
spec.add_runtime_dependency 'openid_connect', '~> 1.3.0'
|
23
23
|
spec.add_development_dependency 'bundler'
|
24
24
|
spec.add_development_dependency 'rake'
|
@@ -2,6 +2,30 @@ module AppleID
|
|
2
2
|
class EventToken::Event < OpenIDConnect::ConnectObject
|
3
3
|
attr_required :type, :sub, :event_time
|
4
4
|
|
5
|
+
module Type
|
6
|
+
EMAIL_ENABLED = 'email-enabled'
|
7
|
+
EMAIL_DISABLED = 'email-disabled'
|
8
|
+
CONSENT_REVOKED = 'consent-revoked'
|
9
|
+
ACCOUNT_DELETED = 'account-delete'
|
10
|
+
end
|
11
|
+
|
12
|
+
def email_enabled?
|
13
|
+
type == Type::EMAIL_ENABLED
|
14
|
+
end
|
15
|
+
|
16
|
+
def email_disabled?
|
17
|
+
type == Type::EMAIL_DISABLED
|
18
|
+
end
|
19
|
+
|
20
|
+
def consent_revoked?
|
21
|
+
type == Type::CONSENT_REVOKED
|
22
|
+
end
|
23
|
+
|
24
|
+
def account_deleted?
|
25
|
+
type == Type::ACCOUNT_DELETED
|
26
|
+
end
|
27
|
+
alias_method :account_delete?, :account_deleted?
|
28
|
+
|
5
29
|
class << self
|
6
30
|
def decode(json_string)
|
7
31
|
new JSON.parse(json_string).with_indifferent_access
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apple_id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack-oauth2
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.21.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.21.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: openid_connect
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|