Giter VIP home page Giter VIP logo

Comments (3)

 avatar commented on July 22, 2024

+1

rake aborted!
undefined local variable or method hour_begin' for repeater-hour:Chronic::RepeaterHour /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/repeaters/repeater_hour.rb:39:inthis'
/opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:399:in find_within' /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:377:inget_anchor'
/opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:270:in handle_r' /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:77:inblock in tokens_to_span'
/opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:73:in each' /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:73:intokens_to_span'
/opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/chronic.rb:92:in `parse'
...

from chronic.

 avatar commented on July 22, 2024

Here's a simple way to replicate the error:

$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
$ irb
irb(main):001:0> require 'chronic'
=> true
irb(main):002:0> Chronic.parse('tomorrow')
=> 2011-04-14 12:00:00 -0700
irb(main):003:0> Chronic.parse('1 hour')
NameError: undefined local variable or method `hour_begin' for repeater-hour:Chronic::RepeaterHour
    from /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/repeaters/repeater_hour.rb:39:in `this'
    from /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:399:in `find_within'
    from /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:377:in `get_anchor'
    from /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:270:in `handle_r'
    from /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:77:in `block in tokens_to_span'
    from /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:73:in `each'
    from /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/handlers.rb:73:in `tokens_to_span'
    from /opt/ruby/192p180/lib/ruby/gems/1.9.1/gems/chronic-0.3.0/lib/chronic/chronic.rb:92:in `parse'
    from (irb):3
    from /opt/ruby/192p180/bin/irb:12:in `'

from chronic.

rgarver avatar rgarver commented on July 22, 2024

See pull #39

from chronic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.