Skip to content

Commit

Permalink
Use Dsl.evaluate again
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Oct 22, 2010
1 parent 5aedb14 commit 6b3e2c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions lib/bundler/definition.rb
Expand Up @@ -14,10 +14,7 @@ def self.build(gemfile, lockfile, unlock)
raise GemfileNotFound, "#{gemfile} not found"
end

# TODO: move this back into DSL
builder = Dsl.new
builder.instance_eval(Bundler.read_file(gemfile.to_s), gemfile.to_s, 1)
builder.to_definition(lockfile, unlock)
Dsl.evaluate(gemfile, lockfile, unlock)
end

=begin
Expand Down
4 changes: 2 additions & 2 deletions lib/bundler/dsl.rb
Expand Up @@ -2,10 +2,10 @@

module Bundler
class Dsl
def self.evaluate(gemfile)
def self.evaluate(gemfile, lockfile, unlock)
builder = new
builder.instance_eval(Bundler.read_file(gemfile.to_s), gemfile.to_s, 1)
builder.to_definition
builder.to_definition(lockfile, unlock)
end

VALID_PLATFORMS = Bundler::Dependency::PLATFORM_MAP.keys.freeze
Expand Down

0 comments on commit 6b3e2c7

Please sign in to comment.