Class: GemLint::Strategies::Utf8MetadataStrategy
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/utf8_metadata_strategy.rb', line 5
def description
"Ensure the gem metadata is all utf8 encoded"
end
|
#fail? ⇒ Boolean
17
18
19
20
21
22
|
# File 'lib/gem_lint/strategies/utf8_metadata_strategy.rb', line 17
def fail?
File.read(@metadata_path).unpack("U*")
false
rescue
true
end
|
#level ⇒ Object
13
14
15
|
# File 'lib/gem_lint/strategies/utf8_metadata_strategy.rb', line 13
def level
:error
end
|
#tag ⇒ Object
9
10
11
|
# File 'lib/gem_lint/strategies/utf8_metadata_strategy.rb', line 9
def tag
:"utf8-metadata"
end
|