rails_jwt_admin 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/lib/generators/rails_jwt_admin/install_generator.rb +13 -0
- data/lib/rails_jwt_admin/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44dfe721b404954a985a7923c5d94199145bde14b81ee5529878588b6f5af6cc
|
4
|
+
data.tar.gz: 7bb05b2736a221f97c62d0a8884dcf1f64f5a300ee4c5e6e026875148b662990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
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
|