egalite 1.5.21 → 1.5.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6fd3b5c1b4e8fbf04a70cede521f109d0caa2507e6ec65e47fa40fc5acba594
4
- data.tar.gz: efa0a98954427e7d9162b460675cdbb2c0ecbf81102dd4f93a8d0cfa81c492f5
3
+ metadata.gz: 8e3b78b8a853e4bb84b0c13206206d4058715cdd296ec4af1516a415b3207caa
4
+ data.tar.gz: 02ce749e01256e76cbe9cd9d2f3372529d8aa60b26639bbad7d7a7fbd3e86a79
5
5
  SHA512:
6
- metadata.gz: 1fe15bdbbe09ab6a27100c70140da9e39ebfc06c66a29140979d22449a9a86ee002b2e89333d0d343c78443909b4391b45341acade26c533028819a91b1e71fa
7
- data.tar.gz: 6a06ad9ae47d08f31839aa01e625e8f9636c20d6b623fcb606d7983f2b42926009916d0ca0d11e30df89c3c1205b5149b777aa5b5d55966032d1eefc7686048c
6
+ metadata.gz: 64dc046003821b4ae7a32cb3ffd7366a3ff91be6cb8ba436bd61b474400875bad06e908db0a3f9a59e9b98a649a57fba7f2ddd14dc6cd6e42bc553b93632b3d1
7
+ data.tar.gz: 52d774cf20ca0871e1c838a8d1465dcdf05f9e842624c5c68edc4d12ca9304d8737db419c753478aebd1a6782c71c310b20c84b72db64e3b37c71f513199df5c
@@ -1,3 +1,3 @@
1
1
  module Egalite
2
- VERSION = "1.5.21"
2
+ VERSION = "1.5.22"
3
3
  end
data/lib/egalite.rb CHANGED
@@ -469,8 +469,7 @@ class Handler
469
469
  action.gsub!(/[^0-9a-z_]/,'')
470
470
 
471
471
  return nil if action == ""
472
-
473
- Controller.new.methods.each { |s| raise SecurityError if action == s }
472
+ Controller.new.methods.each { |s| return nil if action.downcase == s.to_s }
474
473
 
475
474
  controllername ||= ''
476
475
  controllername = controllername.split('/').map { |c|
data/test/test_route.rb CHANGED
@@ -200,5 +200,8 @@ class T_Route < Test::Unit::TestCase
200
200
  get "/route/head"
201
201
  assert last_response.ok?
202
202
  assert last_response.body == "head"
203
+ get "/route/tap"
204
+ assert last_response.ok?
205
+ assert last_response.body == "tap"
203
206
  end
204
207
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egalite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.21
4
+ version: 1.5.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shunichi Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-10 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler