groute 0.1.6 → 0.1.7

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 +4 -3
  2. data/lib/groute/version.rb +1 -1
  3. metadata +3 -3
data/bin/groute CHANGED
@@ -5,13 +5,14 @@ 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
+ unless File.exists?(groutes_store) && File.mtime(groutes_store) > File.mtime(routes_file)
9
+ `rake routes > #{groutes_store}`
10
+ end
11
+
8
12
  if ARGV.nil? || ARGV.size == 0
9
13
  puts `cat #{groutes_store}`
10
14
  else
11
15
  search_term = ARGV.first
12
- unless File.exists?(groutes_store) && File.mtime(groutes_store) > File.mtime(routes_file)
13
- `rake routes > #{groutes_store}`
14
- end
15
16
  puts `cat #{groutes_store} | grep --color=always -i #{search_term}`
16
17
  end
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module Groute
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordan Carter