Sha256: 973b904036bf9b0c737115979a503cf14fcd412e6e8655380047aea8c92553bd
Contents?: true
Size: 770 Bytes
Versions: 2
Compression:
Stored size: 770 Bytes
Contents
require "lockfile_preserver/version" require "lockfile_preserver/pipeline" require "lockfile_preserver/bundled_with" require "lockfile_preserver/ruby_version" module LockfilePreserver def self.keep(original, updated, section = :bundled_with) if section == :bundled_with LockfilePreserver::BundledWith.new(original, updated).keep elsif section == :ruby_version LockfilePreserver::RubyVersion.new(original, updated).keep elsif abort %(We currently only support preserve "BUNDLED WITH" & "RUBY VERSION" section of lockfile.) end end def self.keep_all(original, updated) pipeline = Pipeline.new [ LockfilePreserver::BundledWith, LockfilePreserver::RubyVersion ] pipeline.call(original, updated) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lockfile_preserver-1.0.2 | lib/lockfile_preserver.rb |
lockfile_preserver-1.0.1 | lib/lockfile_preserver.rb |