Giter VIP home page Giter VIP logo

timelog-ruby's People

Contributors

jkakar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

timelog-ruby's Issues

A bad time crashes the program

When timelog.txt has a bad time, such as 11:90 in this example:

2021-01-29 09:11: Arrived
2021-01-29 11:90: Reading mail

The timelog program crashes:

Traceback (most recent call last):
	6: from /Users/jamu.kakar/src/github.com/jkakar/timelog-ruby/bin/timelog:10:in `<main>'
	5: from /Users/jamu.kakar/src/github.com/jkakar/timelog-ruby/lib/timelog/cli.rb:38:in `run'
	4: from /Users/jamu.kakar/src/github.com/jkakar/timelog-ruby/lib/timelog/timelog.rb:125:in `load_stream'
	3: from /Users/jamu.kakar/src/github.com/jkakar/timelog-ruby/lib/timelog/timelog.rb:125:in `each'
	2: from /Users/jamu.kakar/src/github.com/jkakar/timelog-ruby/lib/timelog/timelog.rb:131:in `block in load_stream'
	1: from /Users/jamu.kakar/src/github.com/jkakar/timelog-ruby/lib/timelog/timelog.rb:131:in `new'
/Users/jamu.kakar/src/github.com/jkakar/timelog-ruby/lib/timelog/timelog.rb:131:in `initialize': argument out of range (ArgumentError)

First non-time work entry after arriving causes an error

Steps to reproduce:

  1. Create the first entry of the day: Arrived
  2. Create a subsequent slack entry: Slack time **

An exception is shown:

/Users/jkakar/src/jkakar/timelog/lib/timelog/daily_report.rb:39:in `-': nil can't be coerced into Fixnum (TypeError)
    from /Users/jkakar/src/jkakar/timelog/lib/timelog/daily_report.rb:39:in `render'
    from /Users/jkakar/src/jkakar/timelog/lib/timelog/cli.rb:44:in `run'
    from /Users/jkakar/src/jkakar/timelog/bin/timelog:10:in `<main>'

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.