matthewtodd-git-whitespace 0.2.4 → 0.2.5

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.5
2
+ * Strip tabs as well as spaces. [Michael Hale]
3
+ * Include feature files.
4
+
1
5
  == 0.2.4
2
6
  * Include rdoc and txt files. (A little config or smarts might be nice.)
3
7
 
data/bin/git-whitespace CHANGED
@@ -3,4 +3,4 @@
3
3
  require File.join(File.dirname(__FILE__), '..', 'lib', 'whitespace')
4
4
 
5
5
  files = Finder.new.files(Dir.pwd)
6
- exec "ruby", "-pi", "-e", "gsub(/ +$/, '')", *files
6
+ exec "ruby", "-pi", "-e", "gsub(/[ \t]+$/, '')", *files
data/lib/whitespace.rb CHANGED
@@ -3,7 +3,7 @@ require 'find'
3
3
  class Finder
4
4
  def initialize
5
5
  @directories_to_prune = %w[.git vendor]
6
- @extensions = %w[builder css erb haml html icalendar js rake rb rdoc sass txt yml] + ['']
6
+ @extensions = %w[builder css erb feature haml html icalendar js rake rb rdoc sass txt yml] + ['']
7
7
  end
8
8
 
9
9
  def files(directory)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matthewtodd-git-whitespace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Todd
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-06 00:00:00 -08:00
12
+ date: 2009-02-14 00:00:00 -08:00
13
13
  default_executable: git-whitespace
14
14
  dependencies: []
15
15
 
@@ -36,7 +36,7 @@ rdoc_options:
36
36
  - --main
37
37
  - README
38
38
  - --title
39
- - git-whitespace-0.2.4
39
+ - git-whitespace-0.2.5
40
40
  - --inline-source
41
41
  - --line-numbers
42
42
  require_paths: