Class: TenYearsRails::GemInfo::NullGemInfo

Inherits:
TenYearsRails::GemInfo show all
Defined in:
lib/ten_years_rails/gem_info.rb

Instance Attribute Summary

Attributes inherited from TenYearsRails::GemInfo

#gem_specification, #name

Instance Method Summary collapse

Methods inherited from TenYearsRails::GemInfo

all, #compatible_with_rails?, #from_rails?, #latest_version, #sourced_from_git?

Constructor Details

#initializeNullGemInfo

Returns a new instance of NullGemInfo.



14
# File 'lib/ten_years_rails/gem_info.rb', line 14

def initialize; end

Instance Method Details

#ageObject



16
17
18
# File 'lib/ten_years_rails/gem_info.rb', line 16

def age
  "-"
end

#created_atObject



20
21
22
# File 'lib/ten_years_rails/gem_info.rb', line 20

def created_at
  Time.now
end

#state(_) ⇒ Object



36
37
38
# File 'lib/ten_years_rails/gem_info.rb', line 36

def state(_)
  :null
end

#unsatisfied_rails_dependenciesObject



32
33
34
# File 'lib/ten_years_rails/gem_info.rb', line 32

def unsatisfied_rails_dependencies(*)
  ["unknown"]
end

#up_to_date?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/ten_years_rails/gem_info.rb', line 24

def up_to_date?
  false
end

#versionObject



28
29
30
# File 'lib/ten_years_rails/gem_info.rb', line 28

def version
  "NOT FOUND"
end