todo_finder 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/todo_finder.rb +2 -2
- data/lib/todo_finder/version.rb +1 -1
- metadata +2 -2
data/lib/todo_finder.rb
CHANGED
@@ -5,7 +5,7 @@ module TodoFinder
|
|
5
5
|
class Finder
|
6
6
|
attr_accessor :matches
|
7
7
|
|
8
|
-
TODO_REGEX = /(\*|\/\/|#)\s*\[?todo(\]|:| \-)\s
|
8
|
+
TODO_REGEX = /(\*|\/\/|#)\s*\[?todo(\]|:| \-)\s+(.+)/i
|
9
9
|
|
10
10
|
def initialize
|
11
11
|
@matches = Hash.new { |h,k| h[k]=[] }
|
@@ -35,7 +35,7 @@ module TodoFinder
|
|
35
35
|
|
36
36
|
lines.each do |i, line|
|
37
37
|
line_num = i.to_s.green
|
38
|
-
formatted_line = line.
|
38
|
+
formatted_line = line.match(TODO_REGEX).captures.last
|
39
39
|
puts " - [#{line_num}] " << formatted_line.strip
|
40
40
|
end
|
41
41
|
|
data/lib/todo_finder/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: todo_finder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|