groute 0.1.1 → 0.1.2

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 +3 -2
  2. data/lib/groute/version.rb +1 -1
  3. metadata +3 -3
data/bin/groute CHANGED
@@ -4,8 +4,9 @@ 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(File.dirname('tmp'), '.groutes')
8
- routes_file = File.expand_path(File.dirname('config'), 'routes.rb')
7
+ groutes_store = File.expand_path(File.dirname('./'), 'tmp/.groutes')
8
+ routes_file = File.expand_path(File.dirname('./'), 'config/routes.rb')
9
+
9
10
  unless File.exists?(groutes_store) && File.mtime(groutes_store) > File.mtime(routes_file)
10
11
  `rake routes > #{groutes_store}`
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Groute
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordan Carter