real_savvy 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/real_savvy/jwt/token.rb +4 -4
- data/lib/real_savvy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b70dbda002738e46c0e953b796145e67fe4f23ea
|
4
|
+
data.tar.gz: 00b5011fa01800d6be5fbc5263609920370bd005
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c7f6071923ed687d91efa485a07017f3acc6d4fc84563261951d36db3db474ee698f171fb7ec03d6eba7464a79f159e197310aca7dcf591d2762ea9057ec2ae
|
7
|
+
data.tar.gz: c34eb8226def258055179b077d51b2aad6bbc412157d34dc491f651c2a638604496f56cc647ce2e5c6b883429e226ab886fd6e4aa775e6c1b5a6bb744a49023c
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
real_savvy (0.0.
|
5
|
-
faraday (>= 0.
|
6
|
-
faraday_middleware (>= 0.
|
4
|
+
real_savvy (0.0.6)
|
5
|
+
faraday (>= 0.8.0)
|
6
|
+
faraday_middleware (>= 0.8.0)
|
7
7
|
jwt (>= 1.0.0)
|
8
8
|
|
9
9
|
GEM
|
@@ -52,4 +52,4 @@ DEPENDENCIES
|
|
52
52
|
rspec_junit_formatter (~> 0.3)
|
53
53
|
|
54
54
|
BUNDLED WITH
|
55
|
-
1.
|
55
|
+
1.16.1
|
data/lib/real_savvy/jwt/token.rb
CHANGED
@@ -85,7 +85,7 @@ module RealSavvy
|
|
85
85
|
end
|
86
86
|
|
87
87
|
def scope_includes!(*scope_parts)
|
88
|
-
scope_includes?(*scope_parts) || fail(
|
88
|
+
scope_includes?(*scope_parts) || fail(::RealSavvy::JWT::Unauthorized)
|
89
89
|
end
|
90
90
|
|
91
91
|
def self.verbs_matches(verb)
|
@@ -98,7 +98,7 @@ module RealSavvy
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def for_site!
|
101
|
-
for_site? || fail(
|
101
|
+
for_site? || fail(::RealSavvy::JWT::Unauthorized)
|
102
102
|
end
|
103
103
|
|
104
104
|
def for_user?
|
@@ -126,7 +126,7 @@ module RealSavvy
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def for_user!
|
129
|
-
for_user? || fail(
|
129
|
+
for_user? || fail(::RealSavvy::JWT::Unauthorized)
|
130
130
|
end
|
131
131
|
|
132
132
|
def valid?
|
@@ -149,7 +149,7 @@ module RealSavvy
|
|
149
149
|
algorithm: 'RS256',
|
150
150
|
).first
|
151
151
|
rescue ::JWT::DecodeError => e
|
152
|
-
raise RealSavvy::JWT::BadCredentials.new(e.message)
|
152
|
+
raise ::RealSavvy::JWT::BadCredentials.new(e.message)
|
153
153
|
end
|
154
154
|
|
155
155
|
def retrieve_audience
|
data/lib/real_savvy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: real_savvy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Rauh
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-03-
|
13
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|