Module: DoubleTake::Clean::Patch

Defined in:
lib/double_take/clean.rb

Instance Method Summary collapse

Instance Method Details

#next_specsObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/double_take/clean.rb', line 6

def next_specs
  ENV["DEPENDENCIES_NEXT"] = "1"
  deps = if Bundler.settings[:cache_all_platforms]
           dependencies
         else
           requested_dependencies
         end
  Bundler::Definition
    .build(GEMFILE, GEMFILE_NEXT_LOCK, nil)
    .resolve
    .materialize(deps)
ensure
  ENV.delete("DEPENDENCIES_NEXT")
end

#specsObject



21
22
23
# File 'lib/double_take/clean.rb', line 21

def specs
  super.merge(next_specs)
end