tramway-api 1.1 → 1.1.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15a37c45bc7e5c0628296885e619e8081402ec6c2e08dd4667dac931f725e31e
|
4
|
+
data.tar.gz: c7b0d35d1f0e292936b776e9b1f500baf102a324e23a9d3b4d51587150e7c090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d507ebf4f4134352edd16a64e545ff2572c9a315c401e3ddb238e963d5fbd687c2ef10561de04395c90719264fce26d889229db40c09779a417c60672a830d56
|
7
|
+
data.tar.gz: 7102cbd966ef91bc4a65de1645450af677648cfc5a0923f52a8f69e403d371d0532ab47bbc2cc10fb93a181a3c60ef7b1527e24e7e355782a2bae9d9d544862b
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Tramway
|
2
2
|
module Api
|
3
3
|
class ApplicationController < ::Tramway::Core::ApplicationController
|
4
|
-
include Knock::Authenticable
|
4
|
+
include ::Knock::Authenticable
|
5
5
|
protect_from_forgery with: :null_session, if: proc { |c| c.request.format == 'application/json' }
|
6
6
|
rescue_from ActiveRecord::RecordNotFound, with: :not_found
|
7
7
|
|
@@ -23,9 +23,9 @@ module Tramway
|
|
23
23
|
|
24
24
|
def auth_token
|
25
25
|
if entity.respond_to? :to_token_payload
|
26
|
-
Knock::AuthToken.new payload: entity.to_token_payload
|
26
|
+
::Knock::AuthToken.new payload: entity.to_token_payload
|
27
27
|
else
|
28
|
-
Knock::AuthToken.new payload: { sub: entity.id }
|
28
|
+
::Knock::AuthToken.new payload: { sub: entity.id }
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
data/lib/tramway/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: knock
|