Sha256: 1d9a0d29ffb6022291cc9e420409116b6087790301ebae37886b271256d81c18

Contents?: true

Size: 549 Bytes

Versions: 14

Compression:

Stored size: 549 Bytes

Contents

##
# A semi-compatible DSL for Bundler's Gemfile format

class Gem::RequestSet::GemDepedencyAPI

  def initialize set, path
    @set = set
    @path = path
  end

  def load
    instance_eval File.read(@path).untaint, @path, 1
  end

  # :category: Bundler Gemfile DSL

  def gem name, *reqs
    # Ignore the opts for now.
    reqs.pop if reqs.last.kind_of?(Hash)

    @set.gem name, *reqs
  end

  def group *what
  end

  def platform what
    if what == :ruby
      yield
    end
  end

  alias :platforms :platform

  def source url
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rubygems-update-2.1.11 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.10 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.9 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.8 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.7 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.6 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.5 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.4 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.3 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.2 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.1 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.0 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.0.rc.2 lib/rubygems/request_set/gem_dependency_api.rb
rubygems-update-2.1.0.rc.1 lib/rubygems/request_set/gem_dependency_api.rb