Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix ~/.pryrc __FILE__ deal #681

Merged
merged 1 commit into from

3 participants

@rking
Collaborator

No description provided.

@travisbot

This pull request passes (merged bd30957 into 6fd797d).

@banister banister merged commit d242a70 into pry:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 5, 2012
  1. @rking

    .pryrc was loaded with wrong __FILE__, fixed

    rking authored rking@sharpsaw.org committed
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/pry/pry_class.rb
View
2  lib/pry/pry_class.rb
@@ -63,7 +63,7 @@ def self.delegate_accessors(delagatee, *names)
def self.load_file_at_toplevel(file_name)
full_name = File.expand_path(file_name)
begin
- toplevel_binding.eval(File.read(full_name)) if File.exists?(full_name)
+ toplevel_binding.eval(File.read(full_name), full_name) if File.exists?(full_name)
rescue RescuableException => e
puts "Error loading #{file_name}: #{e}"
end
Something went wrong with that request. Please try again.