Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Change the :at DSL option to :vendored_at
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Lerche committed Aug 28, 2009
1 parent c466ee8 commit 7622e35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/dsl.rb
Expand Up @@ -43,7 +43,7 @@ def gem(name, *args)

dep = Dependency.new(name, options.merge(:version => version))

if vendored_at = options[:at]
if vendored_at = options[:vendored_at]
raise ArgumentError, "If you use :at, you must specify the gem and version you wish to stand in for" unless version

begin
Expand Down
6 changes: 3 additions & 3 deletions spec/bundler/directory_spec.rb
Expand Up @@ -11,7 +11,7 @@
install_manifest <<-Gemfile
clear_sources
source "file://#{gem_repo1}"
gem "very-simple", "1.0", :at => "#{path}"
gem "very-simple", "1.0", :vendored_at => "#{path}"
Gemfile
end

Expand Down Expand Up @@ -41,7 +41,7 @@
lambda do
install_manifest <<-Gemfile
clear_sources
gem "very-simple", :at => "#{fixture_dir.join("very-simple")}"
gem "very-simple", :vendored_at => "#{fixture_dir.join("very-simple")}"
Gemfile
end.should raise_error(ArgumentError, /:at/)
end
Expand All @@ -50,7 +50,7 @@
lambda do
install_manifest <<-Gemfile
clear_sources
gem "very-simple", ">= 0.1.0", :at => "#{fixture_dir.join("very-simple")}"
gem "very-simple", ">= 0.1.0", :vendored_at => "#{fixture_dir.join("very-simple")}"
Gemfile
end.should raise_error(ArgumentError, /:at/)
end
Expand Down

0 comments on commit 7622e35

Please sign in to comment.