class Gem::RequestSet::GemDepedencyAPI

A semi-compatible DSL for Bundler's Gemfile format

Public Class Methods

new(set, path) click to toggle source
# File lib/rubygems/request_set.rb, line 149
def initialize(set, path)
  @set = set
  @path = path
end

Public Instance Methods

gem(name, *reqs) click to toggle source
# File lib/rubygems/request_set.rb, line 163
def gem(name, *reqs)
  # Ignore the opts for now.
  reqs.pop if reqs.last.kind_of?(Hash)

  @set.gem name, *reqs
end
group(*what) click to toggle source
# File lib/rubygems/request_set.rb, line 178
def group(*what)
end
load() click to toggle source
# File lib/rubygems/request_set.rb, line 154
def load
  instance_eval File.read(@path).untaint, @path, 1
end
platform(what) { || ... } click to toggle source
# File lib/rubygems/request_set.rb, line 170
def platform(what)
  if what == :ruby
    yield
  end
end
Also aliased as: platforms
platforms(what)
Alias for: platform
source(url) click to toggle source

DSL

# File lib/rubygems/request_set.rb, line 160
def source(url)
end