Class: GemLint::Strategies::PkgDirStrategy
Instance Attribute Summary
#filename, #metadata_path, #path
Instance Method Summary
collapse
#initialize, #level_char
Instance Method Details
#description ⇒ Object
5
6
7
|
# File 'lib/gem_lint/strategies/pkg_dir_strategy.rb', line 5
def description
"Gem contains a directory in the root called pkg"
end
|
#fail? ⇒ Boolean
17
18
19
20
21
|
# File 'lib/gem_lint/strategies/pkg_dir_strategy.rb', line 17
def fail?
root_files.any? { |filename|
filename.match(/pkg.*/)
}
end
|
#level ⇒ Object
13
14
15
|
# File 'lib/gem_lint/strategies/pkg_dir_strategy.rb', line 13
def level
:warning
end
|
#tag ⇒ Object
9
10
11
|
# File 'lib/gem_lint/strategies/pkg_dir_strategy.rb', line 9
def tag
:"pkg-dir"
end
|