jwt_rails_api_auth 1.0.2 → 1.0.3
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 +4 -4
- data/README.md +2 -2
- data/lib/generators/auth/auth_generator.rb +8 -8
- data/lib/jwt_rails_api_auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9064f923b970a71c5a2c5c89529c4b75b0ccc44c338d0b51449a4f424f7ce66f
|
4
|
+
data.tar.gz: ca03ceac4f04ad00872e34b39a57e684801897e3374b3541105b34d486bb2deb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60f16effeccec4579791f68424d816fd599b411f08f370ad688f6c80c08adfb2102c77daf848b5d231c483b27d3398ed29b5e0fd40453ee36471f9bf0a5d182c
|
7
|
+
data.tar.gz: b454e74e5b0177200844f0d406edb149b727575f566cb4549c03e76866f5350c69ee6ee385274c1556d4a405539a872592a11eb16b95ab0e92d8480d49fba037
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
Add this line to your application's Gemfile:
|
34
34
|
|
35
35
|
```bash
|
36
|
-
gem 'jwt_rails_api_auth', '~> 1.0'
|
36
|
+
gem 'jwt_rails_api_auth', '~> 1.0', '>= 1.0.2'
|
37
37
|
```
|
38
38
|
|
39
39
|
and then run :
|
@@ -125,4 +125,4 @@ This project follows a [Code of Conduct](CODE_OF_CONDUCT.md). Please respect it
|
|
125
125
|
|
126
126
|
## Authors
|
127
127
|
|
128
|
-
- [@Zeyad Hassan](https://https://github.com/Zeyad-Hassan-1)
|
128
|
+
- [@Zeyad Hassan](https://https://github.com/Zeyad-Hassan-1)
|
@@ -2,16 +2,16 @@ class AuthGenerator < Rails::Generators::Base
|
|
2
2
|
include Rails::Generators::Migration
|
3
3
|
source_root File.expand_path("templates", __dir__)
|
4
4
|
|
5
|
-
def modify_gemfile
|
5
|
+
def modify_gemfile
|
6
6
|
insert_into_file "Gemfile", after: /^source ['"].*['"]\n/ do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
<<~RUBY
|
8
|
+
gem "bcrypt", ">= 3.1.12"
|
9
|
+
gem "jwt", ">= 2.5"
|
10
|
+
gem "rack-cors", ">= 0"
|
11
|
+
gem "active_model_serializers", ">= 0.10.12"
|
12
|
+
RUBY
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
15
15
|
|
16
16
|
def modify_application_rb
|
17
17
|
insert_into_file "config/application.rb", after: "config.api_only = true\n" do
|