davetron5000 / optparse-plus

Start your command line scripts off right in Ruby
http://davetron5000.github.com/optparse-plus
Apache License 2.0
520 stars 54 forks source link

Fix for ruby 1.9.3 warnings #16

Closed michaelbarton closed 12 years ago

michaelbarton commented 12 years ago

I had some messages sent to stderr based on line 4 in main.rb when using ruby 1.9.3

methadone-0.3.4/lib/methadone/main.rb:4: warning: assigned but unused variable - basic_object

and also

warning: already initialized constant BasicObject

I think this patch may fix that? If the version number is greater equal to 1.9 replace BasicObject with Object. Is the intended functionality? I think this patch does this.