Class: GemsStatus::IsNotGpl
- Inherits:
-
Object
- Object
- GemsStatus::IsNotGpl
- Defined in:
- lib/gems-status/checkers/is_not_gpl.rb
Instance Method Summary collapse
- #check?(gem) ⇒ Boolean
- #description ⇒ Object
-
#initialize(conf) ⇒ IsNotGpl
constructor
A new instance of IsNotGpl.
Constructor Details
#initialize(conf) ⇒ IsNotGpl
3 4 |
# File 'lib/gems-status/checkers/is_not_gpl.rb', line 3 def initialize(conf) end |
Instance Method Details
#check?(gem) ⇒ Boolean
5 6 7 8 9 10 |
# File 'lib/gems-status/checkers/is_not_gpl.rb', line 5 def check?(gem) if !gem.license || gem.license.empty? return true end gem.license.upcase !~ /\bGPL/ end |
#description ⇒ Object
11 12 13 |
# File 'lib/gems-status/checkers/is_not_gpl.rb', line 11 def description "This gem is GPL" end |