todo_finder 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  A simple command line tool for finding TODOs in a codebase and outputting them in a clean, readable way.
4
4
 
5
+ It's pretty rough. It could be a grep for sure. Do I care? Nahhhh.
6
+
7
+ I'm sorry.
8
+
5
9
  ## Installation
6
10
 
7
11
  $ gem install todo_finder
@@ -18,7 +22,7 @@ Optionally specify a directory to search for TODOs:
18
22
 
19
23
  ## Contributing
20
24
 
21
- 1. Fork it ( https://github.com/[my-github-username]/todo_finder/fork )
25
+ 1. Fork it ( https://github.com/brianokeefe/todo_finder/fork )
22
26
  2. Create your feature branch (`git checkout -b my-new-feature`)
23
27
  3. Commit your changes (`git commit -am 'Add some feature'`)
24
28
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,3 +1,3 @@
1
1
  module TodoFinder
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/todo_finder.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'colorize'
1
2
  require 'todo_finder/version'
2
3
 
3
4
  module TodoFinder
@@ -27,11 +28,12 @@ module TodoFinder
27
28
  # Pretty output
28
29
  def output
29
30
  @matches.each do |file, lines|
30
- file_name = file.gsub(Dir.pwd, '')
31
- puts file_name
31
+ file_name = file.sub(Dir.pwd, '')
32
+ puts file_name.yellow
32
33
 
33
34
  lines.each do |line|
34
- puts ' - ' << line.strip
35
+ formatted_line = line.sub(/(\*|\/\/|#)\s+?TODO:/, '')
36
+ puts ' - ' << formatted_line.strip
35
37
  end
36
38
 
37
39
  puts ''
data/todo_finder.gemspec CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.add_dependency "colorize", "~> 0.7"
22
+
21
23
  spec.add_development_dependency "bundler", "~> 1.6"
22
24
  spec.add_development_dependency "rake"
23
25
  end
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.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-10 00:00:00.000000000 Z
12
+ date: 2015-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: colorize
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '0.7'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: bundler
16
32
  requirement: !ruby/object:Gem::Requirement