Sha256: 421d70c9faee543fd24c22c5c55c8bc4ebdc4bc5e1805be891308e606972e96e

Contents?: true

Size: 763 Bytes

Versions: 3

Compression:

Stored size: 763 Bytes

Contents

require "appraisal/bundler_dsl"

module Appraisal
  autoload :Gemspec, "appraisal/gemspec"
  autoload :Git, "appraisal/git"
  autoload :Group, "appraisal/group"
  autoload :Path, "appraisal/path"
  autoload :Platform, "appraisal/platform"
  autoload :Source, "appraisal/source"
  autoload :Conditional, "appraisal/conditional"

  # Load bundler Gemfiles and merge dependencies
  class Gemfile < BundlerDSL
    def load(path)
      run(IO.read(path), path) if File.exist?(path)
    end

    def run(definitions, path, line = 1)
      instance_eval(definitions, path, line) if definitions
    end

    def dup
      Gemfile.new.tap do |gemfile|
        gemfile.git_sources = @git_sources
        gemfile.run(for_dup, __FILE__, __LINE__)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/lib/appraisal/gemfile.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/lib/appraisal/gemfile.rb
appraisal-2.5.0 lib/appraisal/gemfile.rb