mo 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mo.rb +3 -2
  2. data/lib/mo/version.rb +1 -1
  3. metadata +3 -3
data/lib/mo.rb CHANGED
@@ -5,12 +5,13 @@ module Mo
5
5
  class Runner < Boson::Runner
6
6
  RUBY_FILES = %w[**/*.ru **/*.rake Gemfile **/*.rb]
7
7
  JS_FILES = %w[**/*.js **/*.coffee]
8
+ TPL_FILES = %w[**/*.haml **/*.erb **/*.slim **/*.jade]
8
9
  DOC_FILES = %w[**/*.md **/*.txt **/*.textile]
9
- ALL_FILES = RUBY_FILES + JS_FILES + DOC_FILES
10
+ ALL_FILES = RUBY_FILES + JS_FILES + DOC_FILES + TPL_FILES
10
11
 
11
12
  desc "Clean-up trailing whitespaces."
12
13
  def whitespace
13
- (RUBY_FILES + JS_FILES).map { |glob| Dir[glob] }.flatten.each do |file|
14
+ (RUBY_FILES + JS_FILES + TPL_FILES).map { |glob| Dir[glob] }.flatten.each do |file|
14
15
  wsps = false
15
16
  File.open(file).each_line do |line|
16
17
  break if wsps = line.match(/( |\t)*$/).captures.compact.any?
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Mo
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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: 2012-09-06 00:00:00.000000000 Z
12
+ date: 2012-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: boson
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  requirements: []
59
59
  rubyforge_project:
60
- rubygems_version: 1.8.24
60
+ rubygems_version: 1.8.21
61
61
  signing_key:
62
62
  specification_version: 3
63
63
  summary: Mo helps you keep your rails project clean.