mo 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -1
- data/lib/mo.rb +1 -1
- data/lib/mo/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
data/lib/mo.rb
CHANGED
@@ -51,7 +51,7 @@ module Mo
|
|
51
51
|
desc "Add utf-8 encoding on files that don't have it"
|
52
52
|
def encoding(listener = Kernel)
|
53
53
|
Dir[*RUBY_FILES].each do |file|
|
54
|
-
if `head -n
|
54
|
+
if `head -n 2 #{file} | grep -E '# encoding\|-\*- coding'`.empty?
|
55
55
|
listener.system "sed -i -r '1 s/^(.*)$/# encoding: utf-8\\n\\1/g' #{file}"
|
56
56
|
puts " * #{file}"
|
57
57
|
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.3.
|
4
|
+
version: 1.3.1
|
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: 2013-02-
|
12
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: boson
|