Class: GemLint::Strategies::CapitalsInNameStrategy

Inherits:
AbstractStrategy show all
Defined in:
lib/gem_lint/strategies/capitals_in_name_strategy.rb

Instance Attribute Summary

Attributes inherited from AbstractStrategy

#filename, #metadata_path, #path

Instance Method Summary collapse

Methods inherited from AbstractStrategy

#initialize, #level_char

Constructor Details

This class inherits a constructor from GemLint::Strategies::AbstractStrategy

Instance Method Details

#descriptionObject



7
8
9
# File 'lib/gem_lint/strategies/capitals_in_name_strategy.rb', line 7

def description
  "It's strongly recommended that your gem name be all lower case"
end

#fail?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/gem_lint/strategies/capitals_in_name_strategy.rb', line 19

def fail?
  spec.name.match(/[A-Z]/)
end

#levelObject



15
16
17
# File 'lib/gem_lint/strategies/capitals_in_name_strategy.rb', line 15

def level
  :warning
end

#tagObject



11
12
13
# File 'lib/gem_lint/strategies/capitals_in_name_strategy.rb', line 11

def tag
  :"capitals-in-name"
end