Class: GemsStatus::IsNotGpl

Inherits:
Object
  • Object
show all
Defined in:
lib/gems-status/checkers/is_not_gpl.rb

Instance Method Summary collapse

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

#descriptionObject



11
12
13
# File 'lib/gems-status/checkers/is_not_gpl.rb', line 11

def description
  "This gem is GPL"
end