zenhob / hcl

Command-line tool for manipulating Harvest timesheets
http://zenhob.github.io/hcl
MIT License
223 stars 45 forks source link

hcl resume warning: respond_to is old fashion which takes only one parameter #72

Closed wxactly closed 7 years ago

wxactly commented 8 years ago

Calling hcl resume spits out a bunch of warnings to the screen. Running ruby 2.3 and hcl 0.4.15:

/usr/local/lib/ruby/gems/2.3.0/gems/hcl-0.4.15/lib/hcl/task.rb:8: warning: HCl::Task#respond_to?(:to_ary) is old fashion which takes only one parameter
/usr/local/lib/ruby/gems/2.3.0/gems/hcl-0.4.15/lib/hcl/timesheet_resource.rb:15: warning: respond_to? is defined here
/usr/local/lib/ruby/gems/2.3.0/gems/hcl-0.4.15/lib/hcl/app.rb:54: warning: HCl::DayEntry#respond_to?(:to_ary) is old fashion which takes only one parameter
/usr/local/lib/ruby/gems/2.3.0/gems/hcl-0.4.15/lib/hcl/timesheet_resource.rb:15: warning: respond_to? is defined here
wxactly commented 8 years ago

Workaround: warnings don't show up running ruby 2.0.0p648

charneykaye commented 7 years ago

See my PR #78