restful_routing 0.1.3.1 → 0.1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restful_routing/version.rb +1 -1
- data/lib/restful_routing.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e36523f56d1cbd12972d0430e69919ba9fd132c
|
4
|
+
data.tar.gz: f2bce1c67e8f4c21888afe3aa4f7c1bfb4d2eaca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2569057848b0b913a4521c19cc4fef32a952d5f0dbfcb8a5874468aececc9d62dbc7514e3700d5d7ae24db1f1519bebb619979415ad1f8fa59d1eb71dc0c2259
|
7
|
+
data.tar.gz: ef98e3af5d32a730ce5ba270cb396259aa57a25086dbd9aa6c8df629244135d6c98c3053980bd1e472ca7d535297fb737821e220a4a95001b1a5afec64828328
|
data/lib/restful_routing.rb
CHANGED
@@ -3,7 +3,8 @@ require 'listen'
|
|
3
3
|
|
4
4
|
module RestfulRouting
|
5
5
|
base_path = Rails.root.to_s
|
6
|
-
|
6
|
+
listening_to = base_path + '/config'
|
7
|
+
listener = Listen.to(listening_to, only: /routes\.rb$/) do |modified, added, removed|
|
7
8
|
#run `rake routes` and put the output in a file called
|
8
9
|
#restful_routing.rb
|
9
10
|
cmd = "rake routes > #{base_path}/restful_routing.rb"
|