Class: Rubycc::Doctor::VerifiedGems::Record

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubycc/doctor/verified_gems.rb

Overview

A verified-gem entry: the gem's name, every verification recorded for it, and the human-owned notes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



38
39
40
# File 'lib/rubycc/doctor/verified_gems.rb', line 38

def name
  @name
end

#notesObject

Returns the value of attribute notes

Returns:

  • (Object)

    the current value of notes



38
39
40
# File 'lib/rubycc/doctor/verified_gems.rb', line 38

def notes
  @notes
end

#verificationsObject

Returns the value of attribute verifications

Returns:

  • (Object)

    the current value of verifications



38
39
40
# File 'lib/rubycc/doctor/verified_gems.rb', line 38

def verifications
  @verifications
end

Instance Method Details

#versionsObject

Every version any environment verified, de-duplicated and in the order the records list them. Callers that only ask "which versions are known good at all?" (the schema test, listings) want this rather than a per-environment breakdown.



43
44
45
# File 'lib/rubycc/doctor/verified_gems.rb', line 43

def versions
  verifications.flat_map(&:versions).uniq
end