cru_lib 0.0.4 → 0.0.5

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: 697695780ce2aabcab8f279e0a85ea13c912d569
4
- data.tar.gz: e24780ec01f7cdd63897644bd0b50a360b7590d8
3
+ metadata.gz: 0939fb226959be557e85ea8ff0227ff7b115df84
4
+ data.tar.gz: 1b2cae8b6c16939315a41e6dc181c9641d31d5a0
5
5
  SHA512:
6
- metadata.gz: 52d1336f04fa09b958115c7667aec814439df2d86b5dfa5a5c1be2b04998dd75b939cb4209f6e2571f938bd657ad75322d040f9a1ff3a33668b68532d1e72026
7
- data.tar.gz: 6a80cd362d2ca89ec0eb5cbda957a0b1e47f17505fecb87d50456bbc95334f83428c6c4803e32eddd3e29343a74697e33ed8ddc39aecdfc5f520ac2c37fed821
6
+ metadata.gz: 7ae9d0b2c69e0dd77e5e803f6402f0dd9d8afa505ce168445eeeb3df81b20d1695c8f34a043cf7e19b0cfadb3b2e589a8d79c2dcd11bc3e15716eac3bb155d27
7
+ data.tar.gz: 7fb068ed357a843007289adadabf1bc5ade06811a5cdd49b64c0059aa0464457070c0df60643313225feb4fa7eb690786a94cc783dbcbb63c559b66521d027c1
@@ -2,7 +2,7 @@ require 'cru_lib/version'
2
2
  require 'cru_lib/async'
3
3
  require 'cru_lib/global_registry_methods'
4
4
  require 'cru_lib/global_registry_relationship_methods'
5
- require_dependency 'cru_lib/access_token'
5
+ require 'cru_lib/access_token'
6
6
  require 'cru_lib/access_token_serializer'
7
7
  require 'cru_lib/access_token_protected_concern'
8
8
  require 'cru_lib/api_error'
@@ -28,6 +28,10 @@ module CruLib
28
28
  def redis_key(token)
29
29
  ['cru_lib:access_token', token].join(':')
30
30
  end
31
+
32
+ def del(token)
33
+ redis_client.del(redis_key(token))
34
+ end
31
35
  end
32
36
 
33
37
  private
@@ -2,10 +2,6 @@ module CruLib
2
2
  module AccessTokenProtectedConcern
3
3
  extend ActiveSupport::Concern
4
4
 
5
- included do
6
- before_action :authenticate_request
7
- end
8
-
9
5
  protected
10
6
 
11
7
  def authenticate_request
@@ -31,4 +27,4 @@ module CruLib
31
27
  render_error('Bad token', status: 401)
32
28
  end
33
29
  end
34
- end
30
+ end
@@ -1,3 +1,3 @@
1
1
  module CruLib
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cru_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Starcher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-05 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: global_registry
@@ -124,9 +124,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.4.5
127
+ rubygems_version: 2.4.5.1
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Misc libraries for Cru
131
131
  test_files:
132
132
  - spec/shared_examples_for_global_registry_models.rb
133
+ has_rdoc: