devise_jwt_controllers 0.1.2 → 0.1.3

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: f2a51c1ee750f958a4c9940a8df862548bce10296d0e9629269918055e05f3b5
4
- data.tar.gz: 073b3ff19eba5f5c10ed16d4923a5e20b0232758cf33d018d34c27aca826c427
3
+ metadata.gz: 2173d91050f840640921e7e37a8c050f2fdfac0cd72ce05dd040886e90f363c7
4
+ data.tar.gz: 7cdfe513478817036a2f54f812935fae71f33ed3b95c3001bf5ce891b754b8d6
5
5
  SHA512:
6
- metadata.gz: d374a14c16be0ffe04fdd5fff078e403510214dca1af24588e73ed3d448fc72ddc96db7c25437f4d906eea1058e8104d7f29110818d22738728ddcd763a5a500
7
- data.tar.gz: 784f16bf478a4369403a4181c503ceaf75ffd4239c6638472b80711e9c4b2efc9878ebe052c83f18d77d6b3cb386cef4bb7b47beeabcc091990d968e259653c3
6
+ metadata.gz: 939956bd356bce7160db1ea3387acab3d6b1003c6fc42b1b20b5166530310a07358de567ca128cd5792bc0ef90e19ce940a3c8be2e306bd6fdc0202132880165
7
+ data.tar.gz: 1e52ad199aa3492a38d1f41cd15762d8c37e6ef592585b594f9a79950456796986e610f986b12b6b87d23a77818c2ea0b7af5142e4b7d7acc7eedc006fb249f3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise_jwt_controllers (0.1.2)
4
+ devise_jwt_controllers (0.1.3)
5
5
  devise (~> 4.7.1)
6
6
  devise-jwt (~> 0.6.0)
7
7
  rails (>= 5.2.0, < 6.1)
@@ -85,7 +85,7 @@ GEM
85
85
  docile (1.3.2)
86
86
  dry-auto_inject (0.6.1)
87
87
  dry-container (>= 0.3.4)
88
- dry-configurable (0.8.3)
88
+ dry-configurable (0.9.0)
89
89
  concurrent-ruby (~> 1.0)
90
90
  dry-core (~> 0.4, >= 0.4.7)
91
91
  dry-container (0.7.2)
data/README.md CHANGED
@@ -28,6 +28,19 @@ You then just replace your `devise_for` in `config/routes.rb` with `devise_jwt_f
28
28
 
29
29
  `devise_jwt_for` accepts the same arguments as `devise_for`, and configurations.
30
30
 
31
+ If you are only planning to use it as an API only, remember to configure devise to respond only to JSON:
32
+
33
+
34
+ In your `config/initializers/devise.rb` add:
35
+
36
+ ```rb
37
+ config.jwt do |jwt|
38
+ jwt.secret = 'Some secret key'
39
+ end
40
+
41
+ config.navigational_formats = %i[json]
42
+ ```
43
+
31
44
  ## Development
32
45
 
33
46
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,7 +1,7 @@
1
1
  module Devise
2
2
  module JWT
3
3
  module Controllers
4
- VERSION = '0.1.2'.freeze
4
+ VERSION = '0.1.3'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -1,5 +1,6 @@
1
1
  Devise.setup do |config|
2
2
  config.parent_controller = 'Devise::JWT::BaseController'
3
+ config.navigational_formats = %i[json]
3
4
  end
4
5
 
5
6
  module Devise
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_jwt_controllers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramiro Rojo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-11-15 00:00:00.000000000 Z
12
+ date: 2019-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails