Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stringify some paths for MacRuby

Closes #852
  • Loading branch information...
commit c5af1b05b8252697f7cc87ead477beefd5cfacef 1 parent ce45095
@indirect indirect authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/bundler.rb
View
6 lib/bundler.rb
@@ -221,13 +221,13 @@ def read_file(file)
def load_gemspec(file)
path = Pathname.new(file)
# Eval the gemspec from its parent directory
- Dir.chdir(path.dirname) do
+ Dir.chdir(path.dirname.to_s) do
begin
- Gem::Specification.from_yaml(path.basename)
+ Gem::Specification.from_yaml(path.basename.to_s)
# Raises ArgumentError if the file is not valid YAML
rescue ArgumentError, SyntaxError, Gem::EndOfYAMLException, Gem::Exception
begin
- eval(File.read(path.basename), TOPLEVEL_BINDING, path.expand_path.to_s)
+ eval(File.read(path.basename.to_s), TOPLEVEL_BINDING, path.expand_path.to_s)
rescue LoadError => e
original_line = e.backtrace.find { |line| line.include?(path.to_s) }
msg = "There was a LoadError while evaluating #{path.basename}:\n #{e.message}"
Please sign in to comment.
Something went wrong with that request. Please try again.