mojombo / chronic

Chronic is a pure Ruby natural language date parser.
http://injekt.github.com/chronic
MIT License
3.23k stars 452 forks source link

Suppress Ruby interpreter warnings #381

Open koic opened 5 years ago

koic commented 5 years ago

This PR suppresses the following Ruby interpreter warnings.

% ruby -v
ruby 2.6.0dev (2018-08-28 trunk 64584) [x86_64-darwin17]
% RUBYOPT='-w' rake
/Users/koic/src/github.com/mojombo/chronic/lib/chronic/tags/scalar.rb:32: warning: mismatched indentat
ions at 'end' with 'unless' at 25
Run options: --seed 2694

# Running:

................................................/Users/koic/src/github.com/mojombo/chronic/lib/chronic/repeaters/repeater_quarter.rb:22: warning: instance variable @current_span not initialized
/Users/koic/src/github.com/mojombo/chronic/lib/chronic/repeaters/repeater_quarter.rb:22: warning: instance variable @current_span not initialized
/Users/koic/src/github.com/mojombo/chronic/lib/chronic/repeaters/repeater_quarter.rb:22: warning: instance variable @current_span not initialized
/Users/koic/src/github.com/mojombo/chronic/lib/chronic/repeaters/repeater_quarter.rb:22: warning: instance variable @current_span not initialized
/Users/koic/src/github.com/mojombo/chronic/lib/chronic/repeaters/repeater_quarter_name.rb:11: warning: instance variable @current_span not initialized

(snip)