Sha256: 5591fd116f41a60a3cb7a70c090fe5a322bdb0a677821dadaf75cfbcbe577ef3

Contents?: true

Size: 584 Bytes

Versions: 13

Compression:

Stored size: 584 Bytes

Contents

module Bundler
  module RubyDsl
    def ruby(ruby_version, options = {})
      raise GemfileError, "Please define :engine_version" if options[:engine] && options[:engine_version].nil?
      raise GemfileError, "Please define :engine" if options[:engine_version] && options[:engine].nil?

      raise GemfileError, "ruby_version must match the :engine_version for MRI" if options[:engine] == "ruby" && options[:engine_version] && ruby_version != options[:engine_version]
      @ruby_version = RubyVersion.new(ruby_version, options[:engine], options[:engine_version])
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
bundler-1.3.6 lib/bundler/ruby_dsl.rb
bundler-1.4.0.pre.1 lib/bundler/ruby_dsl.rb
bundler-1.3.5 lib/bundler/ruby_dsl.rb
bundler-1.3.4 lib/bundler/ruby_dsl.rb
bundler-1.3.3 lib/bundler/ruby_dsl.rb
bundler-1.3.2 lib/bundler/ruby_dsl.rb
bundler-1.3.1 lib/bundler/ruby_dsl.rb
bundler-1.3.0 lib/bundler/ruby_dsl.rb
bundler-1.3.0.pre.8 lib/bundler/ruby_dsl.rb
bundler-1.3.0.pre.7 lib/bundler/ruby_dsl.rb
bundler-1.3.0.pre.6 lib/bundler/ruby_dsl.rb
bundler-1.3.0.pre.5 lib/bundler/ruby_dsl.rb
bundler-1.3.0.pre.4 lib/bundler/ruby_dsl.rb