groute 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/groute +1 -1
  2. data/lib/groute/version.rb +1 -1
  3. 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
- 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'
8
+ if !File.exists?(groutes_store) || (File.mtime(groutes_store) < File.mtime(routes_file)) || File.foreach(groutes_store).inject(0){|c, line| c+1} < 10 && File.foreach(groutes_store).collect{|l| l}.join('').strip.size < 9 # Assuming a valid route is longer than 8 chars. 'PUT / a#b'
9
9
  `rake routes > #{groutes_store}`
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module Groute
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groute
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordan Carter