cane 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +4 -0
- data/lib/cane/doc_check.rb +4 -2
- data/lib/cane/version.rb +1 -1
- data/spec/doc_check_spec.rb +2 -0
- metadata +3 -3
data/HISTORY.md
CHANGED
data/lib/cane/doc_check.rb
CHANGED
@@ -18,8 +18,10 @@ module Cane
|
|
18
18
|
}
|
19
19
|
end
|
20
20
|
|
21
|
-
# Stolen from ERB source
|
22
|
-
|
21
|
+
# Stolen from ERB source, amended to be slightly stricter to work around
|
22
|
+
# some known false positives.
|
23
|
+
MAGIC_COMMENT_REGEX =
|
24
|
+
%r"#(\s+-\*-)?\s+(en)?coding\s*[=:]\s*([[:alnum:]\-_]+)"
|
23
25
|
|
24
26
|
def violations
|
25
27
|
return [] if opts[:no_doc]
|
data/lib/cane/version.rb
CHANGED
data/spec/doc_check_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.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-08-
|
12
|
+
date: 2012-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parallel
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
|
-
rubygems_version: 1.8.
|
153
|
+
rubygems_version: 1.8.24
|
154
154
|
signing_key:
|
155
155
|
specification_version: 3
|
156
156
|
summary: Fails your build if code quality thresholds are not met. Provides complexity
|