mo 1.3.5 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/lib/mo.rb +13 -0
  4. data/lib/mo/version.rb +1 -1
  5. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d0ea30641bce6dd6f81731009089ad038ba350c
4
- data.tar.gz: f78c8701ceaec77f959da77e49b434b5d8ff4e47
3
+ metadata.gz: 0146094b1efceff3a1746a921708495c8ae5f948
4
+ data.tar.gz: dca1c0cd5769a55a867bb3febd7f49374c23f6b0
5
5
  SHA512:
6
- metadata.gz: e4d6d9048f0cbbe084e5402b5bdbce373e3095037f871aa5bda46d9cb8c9e9a050f9f547564b0e956d381d3a746b28d7a75e5b30b504275096b9999bcbdd3e19
7
- data.tar.gz: 383c092323f4cc2a06a48869f638adb808da56c2190ba47560c4e7f70e1c1c8ea1a6f1e11bbdb1e32b25cf8bbb2a8ad0f7d0026ee2e1fb45d859ff6bb008b236
6
+ metadata.gz: 91b27cc89429b6cbfa648453cd1775787cbbb19b34cad14af9d88d4232cf1c34c8d46391cbb10cd81a9ce4e6970fce40bb1a440b78188ebd17ced18336c946b8
7
+ data.tar.gz: c845552b642d7fb0c82efb5a68668d860069a958fa9a4ef9af2c8651cee6704edcbf22b5cd95082e6a8e20000ad2853e8c829f171044621d210baf93a8025e55
data/README.md CHANGED
@@ -31,6 +31,7 @@ Available commands:
31
31
  help Displays help for a command
32
32
  rocketless Convert ruby hashes to 1.9 style.
33
33
  whitespace Clean-up trailing whitespaces.
34
+ unbreakable Print files with unbreakable space.
34
35
 
35
36
  Options:
36
37
  -h, --help Displays this help message
data/lib/mo.rb CHANGED
@@ -69,6 +69,19 @@ module Mo
69
69
  end
70
70
  end
71
71
 
72
+ desc 'Check unbreakable space'
73
+ def check_unbreakable_space(listener = Kernel)
74
+ Dir[*RUBY_FILES].each do |file|
75
+ if File.readable? file
76
+ source = File.open(file).read
77
+ regexp = /\u00A0/
78
+ if source.scan(regexp).any?
79
+ listener.puts " * #{file}"
80
+ end
81
+ end
82
+ end
83
+ end
84
+
72
85
  desc "Check rspec's files name"
73
86
  def check_rspec_files_name(listener = Kernel)
74
87
  ignores_dirs = %w[spec/factories spec/mocks spec/support spec/fabricators
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Mo
4
- VERSION = "1.3.5"
4
+ VERSION = "1.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chatgris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-27 00:00:00.000000000 Z
11
+ date: 2013-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: boson
@@ -84,9 +84,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.0.2
87
+ rubygems_version: 2.0.0.rc.2
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Mo helps you keep your rails project clean.
91
91
  test_files: []
92
- has_rdoc: