rails_jwt_admin 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa0138f72063844bfe41d165ae7e9f767f05ac7ba449101e83f2b833d524026e
4
- data.tar.gz: 9c9300c0eac1f2d816ca28dbae9bb77e6d6557a26716b924040c343a8e000832
3
+ metadata.gz: 44dfe721b404954a985a7923c5d94199145bde14b81ee5529878588b6f5af6cc
4
+ data.tar.gz: 7bb05b2736a221f97c62d0a8884dcf1f64f5a300ee4c5e6e026875148b662990
5
5
  SHA512:
6
- metadata.gz: bdd8f063c72799549be709f767c2b5b8adfa4669fa8ed59a660209238097e0e0fa417ccef57fbffaea41772baf3a9de2e52305a8927e50eed54af20cb99e00e2
7
- data.tar.gz: c051482415d9200d3ac53d3942e4fcd468bc8fe8c5632b0b5391d8d9c393561783926476a9322da5505fa490427f71613bff8d511549f21fe6923e82d2a5c3ba
6
+ metadata.gz: a27797ef46ec873393b21aea217316f6eabd77ab345e3d3f08aa0c5a58328a3598f5b0c9f8a9097ad2c29c2532041b2961d3b0c3c7190b6edc26ddad2ed8f9ac
7
+ data.tar.gz: 0eae9d67fbd1459286f193219f7f10bfe7f2c55334728e2ff26d8314d6f9f7223200951722d991e9ea8104a1d97cd9acc321ec00227877e68fbfa0cb39fb290f
data/README.md CHANGED
@@ -6,14 +6,23 @@
6
6
  # gem
7
7
  gem install 'rails_jwt_admin'
8
8
 
9
- # rails - bundle install
9
+ # rails
10
+ # 1. add gen & bundle install
10
11
  gem 'rails_jwt_admin'
12
+
13
+ # 2. install admin
14
+ rails g rails_jwt_admin:install
15
+
16
+ # 3. check talbe & rake db:migrate
17
+ rake db:migrate
11
18
  ```
12
19
 
20
+
13
21
  ## resources
14
22
  - https://edgeapi.rubyonrails.org/classes/Rails/Engine.html
15
23
  - https://guides.rubyonrails.org/engines.html
16
24
  - https://www.jianshu.com/p/56467f890516
17
25
  - https://www.pluralsight.com/guides/token-based-authentication-with-ruby-on-rails-5-api
18
26
  - https://github.com/jwt/ruby-jwt
19
- - https://github.com/afeiship/rails-module-jwt
27
+ - https://github.com/afeiship/rails-module-jwt
28
+ - https://github.com/afeiship/rails_admin_users
@@ -0,0 +1,13 @@
1
+ module RailsJwtAdmin
2
+ class InstallGenerator < Rails::Generators::Base
3
+ desc "Configure necessary files to use RailsJwtAdmin"
4
+
5
+ def generate_model
6
+ rake "rails_jwt_admin:install:migrations"
7
+ end
8
+
9
+ def create_routes
10
+ route 'mount RailsJwtAdmin::Engine => "/rails_jwt_admin"'
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsJwtAdmin
2
- VERSION = '0.1.0'
2
+ VERSION = "0.1.1"
3
3
  end
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - afeiship
@@ -61,6 +61,7 @@ files:
61
61
  - app/models/rails_jwt_admin/user.rb
62
62
  - config/routes.rb
63
63
  - db/migrate/20201202013006_create_rails_jwt_admin_users.rb
64
+ - lib/generators/rails_jwt_admin/install_generator.rb
64
65
  - lib/rails_jwt_admin.rb
65
66
  - lib/rails_jwt_admin/engine.rb
66
67
  - lib/rails_jwt_admin/version.rb