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
Overload methods that require a screen name parameter #112
Comments
I've added |
Hi, Don't know if anybody has been addressing this yet but I've made some advances. I'd like to know if you think I'm headed in the right direction though. You can find my branch here: https://github.com/gabrielsomoza/twitter/tree/screen-name-overloading Cheers. UPDATE: A link with a diff, for your convenience: gsomoza/twitter@master...screen-name-overloading |
Thanks for starting to tackle this problem! Your approach looks good to me. I'd love to see specs that cover each way of calling the method (with and without a screen name passed). This is the only major feature I had in mind for 1.1, so unless any new feature requests come in before then, we should be able to release 1.1 shortly after you finish. |
Great, I'll go ahead on this path then. Glad to help! |
I'm getting an error when trying to run
(I finished with the changes, only thing left would be writing the specs) |
What happens if you change line 2 of your
|
Tried that too, the following happens: |
I assume you haven't deleted the gemspec from the root directory? |
No, its there, |
I just asked about this in
He suggested upgrading to Ruby 1.9.2. Is that an option? FWIW, I can't reproduce in the problem using Ruby 1.9.1p378 in Mac OS X. |
Sure! Will do, thanks for the help. |
Just cloned my branch from my laptop, with Ruby 1.9.2p0, and I'm still getting the same error messages. I reckon this is a problem with my configuration only: I tried running yard:doc against a clean master and I have the same problem. |
Try replacing the Gemfile with:
|
Before replacing the Gemfile, could you please run Also, what version of bundler are you using? |
Didn't work. I just found a thread on this problem, which indeed seems to be a win-only issue. http://groups.google.com/group/ruby-bundler/browse_thread/thread/96152d7357745bb0. Somebody there apparently was able to come up with a fix and they're now writing tests for it. I'll try to apply the fix (at least temporarily) in order to write the specs. |
Sorry, read your other comment afterwards. The patch worked and now I'm running the tests. Tomorrow I'll start writing the specs. |
Finished writing the specs for the overloads and everything works fine. There may be better ways to test than what I did, in which case I'd appreciate any feedback. I'm sending a pull request in case you think everything is fine as is. |
It should allow implicit fetching of an authenticated user's screen name from configuration.
This value should be cached in the configuration after the first request.
The text was updated successfully, but these errors were encountered: