groute 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/bin/groute +5 -5
  2. data/lib/groute/version.rb +1 -1
  3. metadata +3 -3
data/bin/groute CHANGED
@@ -3,12 +3,12 @@ if ARGV.nil? || ARGV.size == 0
3
3
  puts "Usage: groute.rb PATTERN"
4
4
  else
5
5
  search_term = ARGV.first
6
- groutes_store = File.expand_path(File.dirname(__FILE__), '.groutes')
7
- routes_file = File.expand_path(File.dirname(__FILE__), 'config/routes.rb')
8
- Dir.chdir File.expand_path(File.dirname(__FILE__))
6
+ groutes_store = File.expand_path(File.dirname('./'), 'tmp/.groutes')
7
+ routes_file = File.expand_path(File.dirname('./'), 'config/routes.rb')
8
+ Dir.chdir File.expand_path(File.dirname('./'))
9
9
  puts Dir.pwd
10
10
  unless File.exists?(groutes_store) && File.mtime(groutes_store) > File.mtime(routes_file)
11
- `rake routes > .groutes`
11
+ `rake routes > #{groutes_store}`
12
12
  end
13
- puts `cat .groutes | grep #{search_term}`
13
+ puts `cat #{groutes_store} | grep #{search_term}`
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module Groute
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordan Carter