devise_jwt_controllers 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4e4f13deb52fa238c98ecd24e6efc9265cfae80dfa7dbf4f0f95b81e3e7d5a1
4
- data.tar.gz: 85f83f3ed86f86443d1a939630ebe6b92bf91db87ba75a243e39eb3551278c00
3
+ metadata.gz: 5f2a60f77f9c73a7e1ef30fecbb8fc4294870d63850819b0f9cf3dd6c4c7f6ef
4
+ data.tar.gz: 441632bd8921f518d8a21a45539125051c545a8646b48e30482f0cf39cb56ff0
5
5
  SHA512:
6
- metadata.gz: 5912546a22f997b16c25370b33a2b6ddc4e5b88ff79293daa078997e92e34f7a578d0e9de2eff2e18971d031c818a4f0a257bc7375434acd53a54aec49359054
7
- data.tar.gz: 3ebe528d1d84e60638233ef707bffd0fb66f941a7e13887aeac16022a5ec489b59a5f764ac21d68e3e4100436257186be5408abefb59ac846f4d446ee22b6505
6
+ metadata.gz: 59360a4d8d51608e6d46e81b460ee540f9ba2d67db02745b239c69549796e446007aa0eb57d56b4bd4bb871813008170e104960d1bf417ffef452f8684654dd7
7
+ data.tar.gz: 51b2ec27b527ac3f0308f7080d0aa319e8829706360bd35cc43bfaa31f2164792da744eefb750451adb7cff005a1949deb7ec8cf045fa3d26c23989fab548511
@@ -17,6 +17,14 @@
17
17
 
18
18
  ## LOG
19
19
 
20
+ ### 0.1.1 ([2019-11-15])
21
+
22
+ Fix JWT inflections
23
+
24
+ #### Changes
25
+
26
+ - Fix trouble with finding JWT as a constant.
27
+
20
28
  ### 0.1.0 ([2019-11-14])
21
29
 
22
30
  Initial release
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise_jwt_controllers (0.1.0)
4
+ devise_jwt_controllers (0.1.1)
5
5
  devise (~> 4.7.1)
6
6
  devise-jwt (~> 0.6.0)
7
7
  rails (>= 5.2.0, < 6.1)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DeviseJwtControllers
2
2
 
3
- [![Build Status](https://travis-ci.org/Wolox/devise_jwt_controllers.svg?branch=development-1.x.x)](https://travis-ci.org/Wolox/devise_jwt_controllers) [![Maintainability](https://api.codeclimate.com/v1/badges/d37c76dac875775e487d/maintainability)](https://codeclimate.com/github/Wolox/devise_jwt_controllers/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/d37c76dac875775e487d/test_coverage)](https://codeclimate.com/github/Wolox/devise_jwt_controllers/test_coverage)
3
+ [![Build Status](https://travis-ci.org/Wolox/devise_jwt_controllers.svg?branch=development-1.x.x)](https://travis-ci.org/Wolox/devise_jwt_controllers) [![Maintainability](https://api.codeclimate.com/v1/badges/d37c76dac875775e487d/maintainability)](https://codeclimate.com/github/Wolox/devise_jwt_controllers/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/d37c76dac875775e487d/test_coverage)](https://codeclimate.com/github/Wolox/devise_jwt_controllers/test_coverage) [![Gem Version](https://badge.fury.io/rb/devise_jwt_controllers.svg)](https://badge.fury.io/rb/devise_jwt_controllers)
4
4
 
5
5
  This gem add devise-jwt JSON-like controllers to your application.
6
6
 
@@ -1,7 +1,7 @@
1
1
  module Devise
2
2
  module JWT
3
3
  module Controllers
4
- VERSION = '0.1.0'.freeze
4
+ VERSION = '0.1.1'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,3 @@
1
+ ActiveSupport::Inflector.inflections(:en) do |inflect|
2
+ inflect.acronym 'JWT'
3
+ end
@@ -1,3 +1,9 @@
1
1
  Devise.setup do |config|
2
2
  config.parent_controller = 'Devise::JWT::BaseController'
3
3
  end
4
+
5
+ module Devise
6
+ module Models
7
+ JWTAuthenticatable = Devise::Models::JwtAuthenticatable
8
+ end
9
+ end
@@ -1,3 +1,6 @@
1
+ require 'devise'
2
+ require 'devise/jwt'
3
+
1
4
  require 'devise/jwt/controllers/version'
2
5
 
3
6
  require 'devise/jwt/controllers/engine'
@@ -5,4 +8,5 @@ require 'devise/jwt/controllers/railtie'
5
8
  require_relative 'devise/jwt/extensions/warden_helper'
6
9
 
7
10
  require_relative 'devise/jwt/extensions/action_dispatch'
11
+ require_relative 'devise/jwt/extensions/active_support/inflector'
8
12
  require_relative 'devise/jwt/overrides/devise'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_jwt_controllers
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
  - Ramiro Rojo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-14 00:00:00.000000000 Z
11
+ date: 2019-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -274,12 +274,12 @@ files:
274
274
  - LICENSE.txt
275
275
  - README.md
276
276
  - Rakefile
277
- - app/controllers/devise/j_w_t/base_controller.rb
278
- - app/controllers/devise/j_w_t/confirmations_controller.rb
279
- - app/controllers/devise/j_w_t/passwords_controller.rb
280
- - app/controllers/devise/j_w_t/registrations_controller.rb
281
- - app/controllers/devise/j_w_t/sessions_controller.rb
282
- - app/controllers/devise/j_w_t/unlocks_controller.rb
277
+ - app/controllers/devise/jwt/base_controller.rb
278
+ - app/controllers/devise/jwt/confirmations_controller.rb
279
+ - app/controllers/devise/jwt/passwords_controller.rb
280
+ - app/controllers/devise/jwt/registrations_controller.rb
281
+ - app/controllers/devise/jwt/sessions_controller.rb
282
+ - app/controllers/devise/jwt/unlocks_controller.rb
283
283
  - bin/console
284
284
  - bin/setup
285
285
  - config/database.yml
@@ -288,6 +288,7 @@ files:
288
288
  - lib/devise/jwt/controllers/railtie.rb
289
289
  - lib/devise/jwt/controllers/version.rb
290
290
  - lib/devise/jwt/extensions/action_dispatch.rb
291
+ - lib/devise/jwt/extensions/active_support/inflector.rb
291
292
  - lib/devise/jwt/extensions/warden_helper.rb
292
293
  - lib/devise/jwt/overrides/devise.rb
293
294
  - lib/devise_jwt_controllers.rb