groute 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/groute +2 -3
- data/lib/groute/version.rb +1 -1
- metadata +3 -3
data/bin/groute
CHANGED
@@ -4,9 +4,8 @@ if ARGV.nil? || ARGV.size == 0
|
|
4
4
|
puts "Description: Equivalent to 'rake routes | grep <PATTERN>' but caches output. Relies on config/routes.rb modification time to refresh cache."
|
5
5
|
else
|
6
6
|
search_term = ARGV.first
|
7
|
-
groutes_store = File.expand_path(
|
8
|
-
routes_file = File.expand_path(
|
9
|
-
|
7
|
+
groutes_store = File.expand_path('tmp/.groutes')
|
8
|
+
routes_file = File.expand_path('config/routes.rb')
|
10
9
|
unless File.exists?(groutes_store) && File.mtime(groutes_store) > File.mtime(routes_file)
|
11
10
|
`rake routes > #{groutes_store}`
|
12
11
|
end
|
data/lib/groute/version.rb
CHANGED
metadata
CHANGED