rails_jwt_admin 0.1.3 → 0.1.4

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: 80656f42694db1083d39c31fff8f59139594ad05c8129f7a2a2b0469994b78ed
4
- data.tar.gz: bd6b6040189297c07a4fe1c851bcd52334b56c809a94dd1d0f0ba3be39de2f7b
3
+ metadata.gz: fbb78d3abec7f464ffe3c382fe92d6f95f14203b11809dd838e6c25d19914586
4
+ data.tar.gz: 9e3eebce3d7fd83f2e5b2e85799080fe7e9e5c7cb561bbb3947b2356afa536b0
5
5
  SHA512:
6
- metadata.gz: 07603b191c13effd423564e27115d279e9d9eb740bce3f04dd8ee83db9227ea89f4bd488373ab14c21d3b76ceedcfd90536f39671fb57bc84932485a5b0b7797
7
- data.tar.gz: c12ef886edfbc2d4f0028faba83ba874b2fc613a1cb150c7cb843a51020a773a93f49a62dd0ab66fb2c0e020d08f77eefc68fa0f2e78e81dec9d66deac92e3cd
6
+ metadata.gz: 3cf2345396a1c0eedfb463084dd60e1c0a0b4cd8d0491393e858d5984841231a278da0b3f7bf2074759c85dd24007d83a1278f6a4da58264d5a3afecf8dee09a
7
+ data.tar.gz: 5fa3a5d0a803a666116b211e6b0be9321833b8f580df81a01bbe1fc38a0796de13d67f94bdb9548d9e76cc3f88f8077545a230e01a3b4577c4f45ff212591af5
data/README.md CHANGED
@@ -13,7 +13,7 @@ gem 'rails_jwt_admin'
13
13
  # 2. install admin
14
14
  rails g rails_jwt_admin:install
15
15
 
16
- # 3. check talbe & rake db:migrate
16
+ # 3. check table & rake db:migrate
17
17
  rake db:migrate
18
18
  ```
19
19
 
@@ -1,4 +1,5 @@
1
1
  require "rails_jwt_admin/engine"
2
+ require "vendors/token.rb"
2
3
 
3
4
  module RailsJwtAdmin
4
5
  # Your code goes here...
@@ -2,6 +2,5 @@ module RailsJwtAdmin
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace RailsJwtAdmin
4
4
  config.generators.api_only = true
5
- config.autoload_paths += Dir["#{config.root}/lib/vendors"]
6
5
  end
7
6
  end
@@ -1,3 +1,3 @@
1
1
  module RailsJwtAdmin
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -1,6 +1,8 @@
1
1
  require "rails_jwt_admin/engine"
2
2
 
3
3
  module RailsJwtAdmin
4
+ puts "load token"
5
+
4
6
  class Token
5
7
  def self.encode(payload)
6
8
  JWT.encode(payload, Rails.application.secrets.secret_key_base)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_jwt_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - afeiship