groute 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/groute +1 -1
- data/lib/groute/version.rb +1 -1
- metadata +3 -3
data/bin/groute
CHANGED
@@ -5,7 +5,7 @@ if ARGV.first == '-h' || ARGV.first == '--help'
|
|
5
5
|
else
|
6
6
|
groutes_store = File.expand_path('tmp/.groutes')
|
7
7
|
routes_file = File.expand_path('config/routes.rb')
|
8
|
-
|
8
|
+
if !File.exists?(groutes_store) || (File.mtime(groutes_store) > File.mtime(routes_file)) || File.foreach(groutes_store).inject(0){|c, line| c+1} < 3 && File.foreach(groutes_store).collect{|l| l}.join('').strip.size < 8 # Assuming a valid route is longer than 6 chars. 'PUT / a#b'
|
9
9
|
`rake routes > #{groutes_store}`
|
10
10
|
end
|
11
11
|
|
data/lib/groute/version.rb
CHANGED
metadata
CHANGED