Class: GemLint::Strategies::CsvEmailStrategy
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/csv_email_strategy.rb', line 5
def description
"Email field in spec uses CSV to specify multiple emails instead of an array"
end
|
#fail? ⇒ Boolean
17
18
19
20
|
# File 'lib/gem_lint/strategies/csv_email_strategy.rb', line 17
def fail?
(yaml.email.is_a?(String) && (yaml.email.include?(",") || yaml.email.include?(";"))) ||
(yaml.email.is_a?(Array) && (yaml.email.first.to_s.include?(",") || yaml.email.first.to_s.include?(";")))
end
|
#level ⇒ Object
13
14
15
|
# File 'lib/gem_lint/strategies/csv_email_strategy.rb', line 13
def level
:error
end
|
#tag ⇒ Object
9
10
11
|
# File 'lib/gem_lint/strategies/csv_email_strategy.rb', line 9
def tag
:"csv-email"
end
|