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 +4 -4
- data/lib/cru_lib.rb +1 -1
- data/lib/cru_lib/access_token.rb +4 -0
- data/lib/cru_lib/access_token_protected_concern.rb +1 -5
- data/lib/cru_lib/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0939fb226959be557e85ea8ff0227ff7b115df84
|
4
|
+
data.tar.gz: 1b2cae8b6c16939315a41e6dc181c9641d31d5a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ae9d0b2c69e0dd77e5e803f6402f0dd9d8afa505ce168445eeeb3df81b20d1695c8f34a043cf7e19b0cfadb3b2e589a8d79c2dcd11bc3e15716eac3bb155d27
|
7
|
+
data.tar.gz: 7fb068ed357a843007289adadabf1bc5ade06811a5cdd49b64c0059aa0464457070c0df60643313225feb4fa7eb690786a94cc783dbcbb63c559b66521d027c1
|
data/lib/cru_lib.rb
CHANGED
@@ -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
|
-
|
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'
|
data/lib/cru_lib/access_token.rb
CHANGED
@@ -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
|
data/lib/cru_lib/version.rb
CHANGED
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
|
+
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-
|
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:
|