-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined method `sub' on Ruby 1.9.2-p290 #2
Comments
Hrrm, I'll look into this as I am able. I notice that linecache can't even build on 1.9.2-p290 so we may be off the reservation altogether here. |
Have a pull request to handle this. |
In # Returns list of tours this tourist knows about. (Meant to be run on a subclass
# instance; returns the list of tours available).
def tours
methods.grep(/^tour_/).map {|m| m.sub(/^tour_/,'')}
end To compare the current code on GitHub is: # Returns list of tours this tourist knows about. (Meant to be run on a subclass
# instance; returns the list of tours available).
def tours
methods.map(&:to_s).grep(/^tour_/).map {|m| m.sub(/^tour_/,'')}
end where the symbols in Do you recommend getting this gem from source and building it myself? I am currently using it from https://rubygems.org/gems/tourbus |
Hiya, I ran into this problem also, and fixed it, though it seems its fixed in the codebase. Just a reminder that your published gem does not seem to reflect the change that DoppioJP mentioned above. Keith |
I've only been able to get tourbus to run on 1.8.7. When I try to run the tours on 1.9.2 I get the following error:
Here is my project_test.rb file:
The text was updated successfully, but these errors were encountered: