Class: NextRails::GemInfo::NullGemInfo

Inherits:
NextRails::GemInfo show all
Defined in:
lib/next_rails/gem_info.rb

Constant Summary

Constants inherited from NextRails::GemInfo

RAILS_GEMS

Instance Attribute Summary

Attributes inherited from NextRails::GemInfo

#gem_specification, #latest_compatible_version, #name

Instance Method Summary collapse

Methods inherited from NextRails::GemInfo

all, #compatible_with_rails?, #compatible_with_ruby?, #find_latest_compatible, #from_rails?, #latest_version, #sourced_from_git?, #spec_compatible_with_rails?

Constructor Details

#initializeNullGemInfo

Returns a new instance of NullGemInfo.



4
# File 'lib/next_rails/gem_info.rb', line 4

def initialize; end

Instance Method Details

#ageObject



6
7
8
# File 'lib/next_rails/gem_info.rb', line 6

def age
  "-"
end

#created_atObject



10
11
12
# File 'lib/next_rails/gem_info.rb', line 10

def created_at
  Time.now
end

#state(_) ⇒ Object



26
27
28
# File 'lib/next_rails/gem_info.rb', line 26

def state(_)
  :null
end

#unsatisfied_rails_dependenciesObject



22
23
24
# File 'lib/next_rails/gem_info.rb', line 22

def unsatisfied_rails_dependencies(*)
  ["unknown"]
end

#up_to_date?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/next_rails/gem_info.rb', line 14

def up_to_date?
  false
end

#versionObject



18
19
20
# File 'lib/next_rails/gem_info.rb', line 18

def version
  "NOT FOUND"
end