mojombo / chronic

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

Suppress Ruby interpreter warnings #381

Open koic opened 6 years ago

koic commented 6 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)