mo 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mo.rb +12 -0
- data/lib/mo/version.rb +1 -1
- metadata +3 -3
data/lib/mo.rb
CHANGED
@@ -9,6 +9,8 @@ module Mo
|
|
9
9
|
DOC_FILES = %w[**/*.md **/*.txt **/*.textile]
|
10
10
|
ALL_FILES = RUBY_FILES + JS_FILES + DOC_FILES + TPL_FILES
|
11
11
|
|
12
|
+
@@compiler_ruby = `which ruby`.strip
|
13
|
+
|
12
14
|
desc "Clean-up trailing whitespaces."
|
13
15
|
def whitespace
|
14
16
|
(RUBY_FILES + JS_FILES + TPL_FILES).map { |glob| Dir[glob] }.flatten.each do |file|
|
@@ -56,5 +58,15 @@ module Mo
|
|
56
58
|
end
|
57
59
|
end
|
58
60
|
end
|
61
|
+
|
62
|
+
desc "Check ruby syntax."
|
63
|
+
def check_syntax
|
64
|
+
RUBY_FILES.map { |glob| Dir[glob] }.flatten.each do |file|
|
65
|
+
if File.readable? file
|
66
|
+
puts " * #{file}"
|
67
|
+
puts `#{@@compiler_ruby} -wc #{file}`.chomp
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
59
71
|
end
|
60
72
|
end
|
data/lib/mo/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.3
|
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-
|
12
|
+
date: 2012-10-04 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.
|
60
|
+
rubygems_version: 1.8.24
|
61
61
|
signing_key:
|
62
62
|
specification_version: 3
|
63
63
|
summary: Mo helps you keep your rails project clean.
|