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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d0a710907af2edf081daf02e590e83025a47e1d
4
- data.tar.gz: 922403d0ff85cd6ab4c15586678f1f56e998dade
3
+ metadata.gz: b70dbda002738e46c0e953b796145e67fe4f23ea
4
+ data.tar.gz: 00b5011fa01800d6be5fbc5263609920370bd005
5
5
  SHA512:
6
- metadata.gz: 8dbea491d8c3fa7ee1259fe788b3a77ffaf1f410cc2cfac7d1bf69f4ad0736116997c959304ef9069387124f7981943ccf94c3e66eca46469e83500040e3baf8
7
- data.tar.gz: 0caf5d2416244709b3be1737eaea6f07ed6c9110b7d3cf9cdb345f7f258c5e3b16a7b54543f276a351353ab59fb8fea48d4f87775427534f6eb7ba7bd129c947
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.4)
5
- faraday (>= 0.10.0)
6
- faraday_middleware (>= 0.10.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.15.4
55
+ 1.16.1
@@ -85,7 +85,7 @@ module RealSavvy
85
85
  end
86
86
 
87
87
  def scope_includes!(*scope_parts)
88
- scope_includes?(*scope_parts) || fail(JWTUnauthorized)
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(JWTUnauthorized)
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(JWTUnauthorized)
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
@@ -1,3 +1,3 @@
1
1
  module RealSavvy
2
- VERSION = [0,0,5]
2
+ VERSION = [0,0,6]
3
3
  end
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.5
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-14 00:00:00.000000000 Z
13
+ date: 2018-03-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday