restful_routing 0.1.3 → 0.1.3.1
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 +1 -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: 9afa27a9cd98c6053d55e2d8868c7636010c9825
|
4
|
+
data.tar.gz: 824959165029d74d9d33d47940eb42a0d7f1e35b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1c1d3762d1c9a44a1509bd68879e446c8342e6086fb240dadd311e3db3582ae91e36ad163e79927be622efc1e523fbfde5615417eb9287ae14235ec2e4a6476
|
7
|
+
data.tar.gz: 6b27632d50bc1ef389b169052443d42952241988e03c37d79eb48d012a55c1c3a3c9f8fa26d69e0ed211b57993f3ca12fe05212fb704f94a397968750bfad3bd
|
data/lib/restful_routing.rb
CHANGED
@@ -3,7 +3,7 @@ require 'listen'
|
|
3
3
|
|
4
4
|
module RestfulRouting
|
5
5
|
base_path = Rails.root.to_s
|
6
|
-
listener = Listen.to(base_path + '/config
|
6
|
+
listener = Listen.to(base_path + '/config', only: /routes\.rb$/) do |modified, added, removed|
|
7
7
|
#run `rake routes` and put the output in a file called
|
8
8
|
#restful_routing.rb
|
9
9
|
cmd = "rake routes > #{base_path}/restful_routing.rb"
|