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: ffa27ef9ffe75cd1d8a596b0b01d7f248df72b24
4
- data.tar.gz: 51f4f34474c2fa44d9e1b92a684a21e140fe0444
3
+ metadata.gz: 28ba7c2623c20e5d1e7975547d56c0a6236346bb
4
+ data.tar.gz: 80b106c97c0b39aa8d38b32a187904d4d60938a8
5
5
  SHA512:
6
- metadata.gz: 8f7f2c87169a1b1e13d57de1b71cd46529baec427a936d57970cd8c7015e5610fe0899a5a4d78c1cba3f297c9a562e77745705b70ef3becce3fdb9fa67a45f0b
7
- data.tar.gz: cf702ce31597e75615a72023ea496c508bfb37b20b27749c40ffd0c921ba5dfd1efc2ef6e5864d5a1cf1e35f95239c657c2efde4dbf5ffa1a578858bf780f417
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 < ApplicationController
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
- render json: output
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.2.1'
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.2.1
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: 2016-10-24 00:00:00.000000000 Z
11
+ date: 2017-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails