Module: Unwrappr::LockFileComparator
- Defined in:
- lib/unwrappr/lock_file_comparator.rb
Overview
Compares two lock files and emits a diff of versions
Class Method Summary collapse
Class Method Details
.perform(lock_file_content_before, lock_file_content_after) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/unwrappr/lock_file_comparator.rb', line 9 def perform(lock_file_content_before, lock_file_content_after) lock_file_before = Bundler::LockfileParser.new(lock_file_content_before) lock_file_after = Bundler::LockfileParser.new(lock_file_content_after) versions_diff = SpecVersionComparator.perform( specs_versions(lock_file_before), specs_versions(lock_file_after) ) { versions: versions_diff } end |