octopus_auth 0.1.0.rc4 → 0.1.0.rc5

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
  SHA256:
3
- metadata.gz: dea163ab3acbfb9fb64c8dea4596562e14d3ac465ce3c3ba8c9c13c42f186473
4
- data.tar.gz: 30bf9a7272d92c5b81cffa2b28776f81e16a33e9a1ed59c57dad50df7d0ff175
3
+ metadata.gz: 589e52b3cc0c67c377e18f2dcc6b072e2fda4e135610a687d9436fe4c6c2d3e7
4
+ data.tar.gz: 2e4746e95d8df00acb5e48d4889605a31425b3451ff89d9cf60631de46f64e1d
5
5
  SHA512:
6
- metadata.gz: 5b69d6cda506b681ba86863a2fec17ca366b6d7abe61c21b321e447b7b1e8f006b3bb8577fffe9132246d77a5fc1f947c344367c26a403909a12c3e2ab08b047
7
- data.tar.gz: 2840c1bed3397ba04f85e89ce712109a161c6d0fb86fc6c0ec97eaf7ccd7fccd8c58c6717862002ef165263790442d6c251ef66c7e5d0c3609c47ea1adfec4c4
6
+ metadata.gz: 71730bb1473a4018af103d928529f4998bbb33e54ff6c9fc40a65ee3de2fede22c9e8d26f56d0b1f97664e6a6f1788cf7d02ae79165c9467cc30b55b426f6c94
7
+ data.tar.gz: adcc1cb94686a58119451c44809c8f94a1513e068fce4249a62e71fd6c030759dee5d93fc8e6286d7c8ef244e260b844685ae1b71d6ccc00d48755a09a821246
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- octopus_auth (0.1.0.rc4)
4
+ octopus_auth (0.1.0.rc5)
5
5
  activerecord (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -0,0 +1,15 @@
1
+ module OctopusAuth
2
+ module Queries
3
+ class Get
4
+ def initialize(token)
5
+ @token = token
6
+ end
7
+
8
+ def execute
9
+ return nil if @token.nil?
10
+
11
+ OctopusAuth.configuration.model_class.where(token: @token).first
12
+ end
13
+ end
14
+ end
15
+ end
@@ -4,3 +4,4 @@ module OctopusAuth
4
4
  end
5
5
 
6
6
  require "octopus_auth/queries/by_scope"
7
+ require "octopus_auth/queries/get"
@@ -1,3 +1,3 @@
1
1
  module OctopusAuth
2
- VERSION = "0.1.0.rc4"
2
+ VERSION = "0.1.0.rc5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopus_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.rc4
4
+ version: 0.1.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - TINYpulse Devops
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-31 00:00:00.000000000 Z
11
+ date: 2019-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -110,6 +110,7 @@ files:
110
110
  - lib/octopus_auth/issue.rb
111
111
  - lib/octopus_auth/queries.rb
112
112
  - lib/octopus_auth/queries/by_scope.rb
113
+ - lib/octopus_auth/queries/get.rb
113
114
  - lib/octopus_auth/revoke.rb
114
115
  - lib/octopus_auth/token_generator.rb
115
116
  - lib/octopus_auth/version.rb