Skip to content
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

Remove all warnings in gem. (ruby -w) #66

Closed
wants to merge 1 commit into from

Conversation

nikhaldi
Copy link

This seems to be unused and actually generated this warning upon requiring numbers_and_words (in Ruby 1.9.3):

ruby-1.9.3-p327/gems/numbers_and_words-0.7.1/lib/numbers_and_words/i18n/initialization.rb:13: warning: method redefined; discarding old languages

This fix eliminates the warning.

…nyway,

and the setter is never used. This eliminates a warning that previously
triggered when requiring numbers_and_words because of the overriding.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) when pulling 0b84092 on nikhaldi:eliminate_warning into 6fff2e5 on kslazarev:master.

@kslazarev
Copy link
Owner

@nikhaldi Yes, attr_accessor :languages is unnecessary (and could be remove in next release).
Also, are you use ruby with option prefix '-w'? I've just discovered many warning messages.

@nikhaldi
Copy link
Author

I sometimes run unit tests with -w for my own code, that's how I came across this warning. I didn't see others in my usage of your gem

@kslazarev
Copy link
Owner

@nikhaldi But numbers_and_words's integration tests have many warnings. I'll see them later. Thank you for report.

@ghost ghost assigned kslazarev Apr 29, 2013
kslazarev added a commit that referenced this pull request Apr 29, 2013
@kslazarev kslazarev closed this Apr 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants