Class: Gemdiff::BundleInspector
- Inherits:
-
Object
- Object
- Gemdiff::BundleInspector
- Defined in:
- lib/gemdiff/bundle_inspector.rb
Constant Summary collapse
- BUNDLE_OUTDATED_PARSE_REGEX =
/\A([^\s]+)\s\(newest\s([^,]+),\sinstalled\s([^,\)]+).*\z/
Instance Method Summary collapse
Instance Method Details
#get(gem_name) ⇒ Object
18 19 20 |
# File 'lib/gemdiff/bundle_inspector.rb', line 18 def get(gem_name) list.detect { |gem| gem.name == gem_name } end |
#list ⇒ Object
7 8 9 10 11 12 |
# File 'lib/gemdiff/bundle_inspector.rb', line 7 def list @list ||= outdated .split("\n") .filter_map { |line| new_outdated_gem(line) } end |
#outdated ⇒ Object
14 15 16 |
# File 'lib/gemdiff/bundle_inspector.rb', line 14 def outdated @outdated ||= bundle_outdated_strict end |