Class: Rails::Hyperdrive::BundlerArtifactDiscovery::Report
- Inherits:
-
Struct
- Object
- Struct
- Rails::Hyperdrive::BundlerArtifactDiscovery::Report
- Defined in:
- lib/rails/hyperdrive/bundler_artifact_discovery.rb
Overview
Everything one discovery walk collects, passed in so a caller reads
back only what it needs. skips is the subset of warnings that
dropped shipped content; everything else is advisory and installed.
bundled_gems and skipped_gems report the walk itself: every gem
seen, and every gem that lost at least one artifact to a hard skip.
Instance Attribute Summary collapse
-
#bundled_gems ⇒ Object
Returns the value of attribute bundled_gems.
-
#fence_warnings ⇒ Object
Returns the value of attribute fence_warnings.
-
#notices ⇒ Object
Returns the value of attribute notices.
-
#skipped_gems ⇒ Object
Returns the value of attribute skipped_gems.
-
#skips ⇒ Object
Returns the value of attribute skips.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
- #advisories ⇒ Object
-
#fence(message) ⇒ Object
Version-fence skips are also carried on their own, for surfaces that print nothing else about discovery.
-
#initialize(**kw) ⇒ Report
constructor
A new instance of Report.
- #mark_skipped_gem(name) ⇒ Object
- #skip(message) ⇒ Object
- #warn(message) ⇒ Object
Constructor Details
#initialize(**kw) ⇒ Report
Returns a new instance of Report.
43 44 45 46 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 43 def initialize(**kw) super(**{ warnings: [], skips: [], notices: [], fence_warnings: [], bundled_gems: [], skipped_gems: [] }.merge(kw)) end |
Instance Attribute Details
#bundled_gems ⇒ Object
Returns the value of attribute bundled_gems
41 42 43 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 41 def bundled_gems @bundled_gems end |
#fence_warnings ⇒ Object
Returns the value of attribute fence_warnings
41 42 43 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 41 def fence_warnings @fence_warnings end |
#notices ⇒ Object
Returns the value of attribute notices
41 42 43 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 41 def notices @notices end |
#skipped_gems ⇒ Object
Returns the value of attribute skipped_gems
41 42 43 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 41 def skipped_gems @skipped_gems end |
#skips ⇒ Object
Returns the value of attribute skips
41 42 43 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 41 def skips @skips end |
#warnings ⇒ Object
Returns the value of attribute warnings
41 42 43 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 41 def warnings @warnings end |
Instance Method Details
#advisories ⇒ Object
64 65 66 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 64 def advisories warnings - skips end |
#fence(message) ⇒ Object
Version-fence skips are also carried on their own, for surfaces that print nothing else about discovery.
59 60 61 62 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 59 def fence() skip() fence_warnings << end |
#mark_skipped_gem(name) ⇒ Object
68 69 70 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 68 def mark_skipped_gem(name) skipped_gems << name unless skipped_gems.include?(name) end |
#skip(message) ⇒ Object
52 53 54 55 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 52 def skip() warnings << skips << end |
#warn(message) ⇒ Object
48 49 50 |
# File 'lib/rails/hyperdrive/bundler_artifact_discovery.rb', line 48 def warn() warnings << end |