Class: GemChangelogDiff::Detector

Inherits:
Object
  • Object
show all
Defined in:
lib/gem_changelog_diff/detector.rb

Overview

Detects outdated gems by parsing bundle outdated --parseable output.

Constant Summary collapse

PARSEABLE_REGEX =
/\A(\S+)\s+\(newest\s+([^,]+),\s+installed\s+([^,)]+)/

Instance Method Summary collapse

Instance Method Details

#detectArray<OutdatedGem>

Runs bundle outdated and returns the list of outdated gems.

Returns:

Raises:

  • (Error)

    if bundle outdated fails



13
14
15
16
# File 'lib/gem_changelog_diff/detector.rb', line 13

def detect
  output = run_bundle_outdated
  parse(output)
end