devise-jwt 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/.overcommit.yml +1 -0
- data/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/lib/devise/jwt/defaults_generator.rb +12 -1
- data/lib/devise/jwt/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ecbf7273869cd4de429e93d195909ba9da9d104
|
4
|
+
data.tar.gz: 063fd47a63596b94658f9a51ff2dd7bd42f82a8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc1230d565cf6be101e35461a020980fd65cca899b77f6630f177b6b890c7adfa98f8e2808fd224b1cfdf0c3679965eb8316a5f0962c32b6a75e75f3cfc9994
|
7
|
+
data.tar.gz: 145836767694dceeb3190bfb98d87c4caaf5fdcf3147567206c92dcba347b14a6246c40ef48804189d0bbdcacbd1af3d54d324be57acd43db5255556e7a2ca07
|
data/.overcommit.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Change Log
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
|
+
|
7
|
+
## [0.1.1] - 2017-01-26
|
8
|
+
### Fixed
|
9
|
+
- Request method configuration for Rails < 5
|
data/README.md
CHANGED
@@ -53,10 +53,21 @@ module Devise
|
|
53
53
|
def request_for(named_route)
|
54
54
|
named_path = "#{named_route}_path"
|
55
55
|
route = routes.named_routes[named_route]
|
56
|
-
method = route
|
56
|
+
method = method_for_route(route)
|
57
57
|
path = /^#{routes.url_helpers.send(named_path)}$/
|
58
58
|
[method, path]
|
59
59
|
end
|
60
|
+
|
61
|
+
# :reek:UtilityFunction
|
62
|
+
# @see https://github.com/rails/rails/pull/21849
|
63
|
+
def method_for_route(route)
|
64
|
+
verb = route.verb
|
65
|
+
if Rails.version.to_i < 5
|
66
|
+
verb.source.match(/\w+/)[0]
|
67
|
+
else
|
68
|
+
verb
|
69
|
+
end
|
70
|
+
end
|
60
71
|
end
|
61
72
|
end
|
62
73
|
end
|
data/lib/devise/jwt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-jwt
|
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
|
- Marc Busqué
|
@@ -179,6 +179,7 @@ files:
|
|
179
179
|
- ".rspec"
|
180
180
|
- ".rubocop.yml"
|
181
181
|
- ".travis.yml"
|
182
|
+
- CHANGELOG.md
|
182
183
|
- CODE_OF_CONDUCT.md
|
183
184
|
- Dockerfile
|
184
185
|
- Gemfile
|