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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5059317e23ed849c9d62cea8954a293b30ee4d76
4
- data.tar.gz: 56dad0b86b27e5ded58b046e45e3cbed7bc236ee
3
+ metadata.gz: 2ecbf7273869cd4de429e93d195909ba9da9d104
4
+ data.tar.gz: 063fd47a63596b94658f9a51ff2dd7bd42f82a8d
5
5
  SHA512:
6
- metadata.gz: 5c339448845a43f83a50e70e3737c923c7d202abdcf94c37a37fb12cbdd5ad1477624b200340dfbcf8c9febc6deb5f91ca9aeae23b3970740377e0d538666453
7
- data.tar.gz: 1eb58364cad0088955fcc2582c79778afc7b9d397b6c1c0366eb84a666f49fa9b1276ac49fe8dc1fd785d170fe2c1ec42b702caa1b32e76376696a717bd1c16a
6
+ metadata.gz: 6bc1230d565cf6be101e35461a020980fd65cca899b77f6630f177b6b890c7adfa98f8e2808fd224b1cfdf0c3679965eb8316a5f0962c32b6a75e75f3cfc9994
7
+ data.tar.gz: 145836767694dceeb3190bfb98d87c4caaf5fdcf3147567206c92dcba347b14a6246c40ef48804189d0bbdcacbd1af3d54d324be57acd43db5255556e7a2ca07
@@ -14,6 +14,7 @@ CommitMsg:
14
14
  - devise-jwt.gemspec
15
15
  - spec/fixtures/rails_app/**/*
16
16
  - README.md
17
+ - CHANGELOG.md
17
18
 
18
19
  HardTabs:
19
20
  enabled: true
@@ -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
@@ -20,7 +20,7 @@ You can read about which security concerns this library takes into account and a
20
20
  Add this line to your application's Gemfile:
21
21
 
22
22
  ```ruby
23
- gem 'devise-jwt', '~> 0.1.0'
23
+ gem 'devise-jwt', '~> 0.1.1'
24
24
  ```
25
25
 
26
26
  And then execute:
@@ -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.verb
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Devise
4
4
  module JWT
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
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.0
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