routes_page 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
  SHA256:
3
- metadata.gz: '09e9a33baf3700143864498f3511398803f5a959c6547273d67478d11361c79d'
4
- data.tar.gz: 3bcfdc805bc2dcafeeebf14dcf2170aba17b3e0647ada0e978491c65947e6cac
3
+ metadata.gz: 7b9616e70d0ec4a2e28818d74580eb669af3d9a760e9b2a97ae88f61f1c4f15a
4
+ data.tar.gz: 9b71d181f8a56ef697a465b54a77cdbcff2bd370e8458dd9621d483212aa416a
5
5
  SHA512:
6
- metadata.gz: 7ca5106bc32fefa7d0ea813524a22fc4ddc69e620435977fe029a2072ebab7282752df05933c9e83e607eb9d631ef3487446c508e6200d9a02bec31c8550f537
7
- data.tar.gz: e06b48de29b7825a67e0aa8276577a9f3ec39661d002f325ccf75dd08dbe2b090203ca0c146f962a0522c14967a175ddc3c612f7a2c049004ba9e32acf7e49c6
6
+ metadata.gz: c528e60cfbfce8b78ed64a97191003a1d65d54f84167336a292c6e37d4c643db5818754a92d0127c084ff368bccc259c3724c02b5b4156191bb7a75c0298c5a0
7
+ data.tar.gz: e1b93f0afdd62f91550a0358e706639e07bfff0f8c24310a3b11d5b9a8f92f0dd8c7a913bf864c09c5afe991bd18ea53dbb652f2b26b7a17c06aa10a298176c6
@@ -5,12 +5,9 @@ module RoutesPage
5
5
  RAILS_ROUTE_INSPECTOR = ActionDispatch::Routing::RoutesInspector.new([])
6
6
 
7
7
  def self.format_routes(routes = all_routes)
8
- routes_formated = RAILS_ROUTE_INSPECTOR.send :collect_routes, routes
9
-
10
- grape_routes_formated = format_grape_routes(find_grape_routes(routes))
11
8
  {
12
- rails_routes: routes_formated,
13
- grape_routes: grape_routes_formated
9
+ rails_routes: RAILS_ROUTE_INSPECTOR.send :collect_routes, routes,
10
+ grape_routes: format_grape_routes(find_grape_routes(routes))
14
11
  }
15
12
  end
16
13
 
@@ -45,9 +42,4 @@ module RoutesPage
45
42
  Rails.application.reload_routes!
46
43
  Rails.application.routes.routes
47
44
  end
48
-
49
- def self.enable_grape_routes!
50
- @enable_grape = true
51
- end
52
-
53
45
  end
@@ -1,3 +1,3 @@
1
1
  module RoutesPage
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: routes_page
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
  - Jason Heylon