Sha256: 0653897cbbec7a4de626695073930a6c9a668872e62d59f2aee89ae2a47f2d09

Contents?: true

Size: 698 Bytes

Versions: 6

Compression:

Stored size: 698 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"

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

    def run(definitions)
      instance_eval(definitions, __FILE__, __LINE__) if definitions
    end

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

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
appraisal-2.4.1 lib/appraisal/gemfile.rb
appraisal-2.4.0 lib/appraisal/gemfile.rb
appraisal-2.3.0 lib/appraisal/gemfile.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/appraisal-2.2.0/lib/appraisal/gemfile.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/appraisal-2.2.0/lib/appraisal/gemfile.rb
appraisal-2.2.0 lib/appraisal/gemfile.rb