routes_revealer 2.2.1 → 2.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28ba7c2623c20e5d1e7975547d56c0a6236346bb
|
4
|
+
data.tar.gz: 80b106c97c0b39aa8d38b32a187904d4d60938a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff78fea60304509cbef9c83a2cae31ce9d9c37c10ef261802e9220e49d019a2ebec9a9b16c5a8d8335d8705c7429475850758d8632858ad376e040910489daa0
|
7
|
+
data.tar.gz: 2897a8e64211cc7061ea6e52c8d9eab2db8a3f13dc287c71ad958ab730a8abdd5e3a4f22726d466655b2ddc68966b90a6a3d7c0fe1080fe2e8f75df253bca598
|
@@ -2,15 +2,14 @@
|
|
2
2
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
3
|
# you may not use this file except in compliance with the License.
|
4
4
|
# You may obtain a copy of the License at
|
5
|
-
#
|
5
|
+
#
|
6
6
|
# http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
# Unless required by applicable law or agreed to in writing, software
|
8
8
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
9
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
10
|
# See the License for the specific language governing permissions and limitations under the License.
|
11
11
|
module RoutesRevealer
|
12
|
-
class RoutesController <
|
13
|
-
skip_filter(*_process_action_callbacks.map(&:filter))
|
12
|
+
class RoutesController < ActionController::Metal
|
14
13
|
|
15
14
|
def index
|
16
15
|
output = []
|
@@ -19,7 +18,8 @@ module RoutesRevealer
|
|
19
18
|
output += map_routes(Rails.application.routes.routes).flatten
|
20
19
|
output.compact!.uniq!
|
21
20
|
output.sort! if output
|
22
|
-
|
21
|
+
self.content_type = 'application/json'
|
22
|
+
self.response_body = output.to_json
|
23
23
|
end
|
24
24
|
|
25
25
|
private
|
@@ -2,12 +2,12 @@
|
|
2
2
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
3
|
# you may not use this file except in compliance with the License.
|
4
4
|
# You may obtain a copy of the License at
|
5
|
-
#
|
5
|
+
#
|
6
6
|
# http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
# Unless required by applicable law or agreed to in writing, software
|
8
8
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
9
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
10
|
# See the License for the specific language governing permissions and limitations under the License.
|
11
11
|
module RoutesRevealer
|
12
|
-
VERSION = '2.
|
12
|
+
VERSION = '2.3.0'
|
13
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: routes_revealer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The CareerBuilder.com Consumer Development teams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|