ssoroka-grepmate 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/grepmate.gemspec +2 -2
- data/lib/grepmate.rb +2 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.5
|
data/grepmate.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{grepmate}
|
5
|
-
s.version = "2.0.
|
5
|
+
s.version = "2.0.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Steven Soroka", "Zach Holt"]
|
9
|
-
s.date = %q{2009-07-
|
9
|
+
s.date = %q{2009-07-29}
|
10
10
|
s.default_executable = %q{grepmate}
|
11
11
|
s.description = %q{Extremely fast search of rails projects or rails source for code, open in textmate or browser with html output}
|
12
12
|
s.email = %q{ssoroka78@gmail.com}
|
data/lib/grepmate.rb
CHANGED
@@ -4,6 +4,7 @@ begin
|
|
4
4
|
rescue LoadError
|
5
5
|
end
|
6
6
|
require 'yaml'
|
7
|
+
require 'erb'
|
7
8
|
require 'enumerator'
|
8
9
|
require File.join(File.dirname(__FILE__), 'output', 'html')
|
9
10
|
require File.join(File.dirname(__FILE__), 'output', 'textmate')
|
@@ -52,7 +53,7 @@ class Grepmate
|
|
52
53
|
end
|
53
54
|
|
54
55
|
# load
|
55
|
-
@config = YAML::load(File.read(CONFIG_FILE))
|
56
|
+
@config = YAML::load(ERB.new(File.read(CONFIG_FILE)).result)
|
56
57
|
# set output type
|
57
58
|
@output = @config['default_output']
|
58
59
|
%w(html text textmate file_and_line).each{|out_type|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssoroka-grepmate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Soroka
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-07-
|
13
|
+
date: 2009-07-29 00:00:00 -07:00
|
14
14
|
default_executable: grepmate
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|