Sam Goldstein

Results 50 comments of Sam Goldstein

Diffy doesn't currently have this feature, but I think it'd be relatively easy to add. You could use `Diffy::Diff`'s enumerable interface to filter out additions or deletions (https://github.com/samg/diffy#custom-formats) and then...

It sounds like all you're really trying to do here is see if two strings or files are equal. You'd probably be better off just using ruby equality for this,...

My guess is the problem has something to do with the default command line settings for your version of diff. It might make sense to play around with the options...

Maybe @dorzey or @duckpuppy would be willing to take a look and extend the formatter to handle start and end dates. They've both worked on its previously. If you are...

It'd possible to do this by creating a custom formatter (as described at https://github.com/samg/timetrap#custom-formatters)

That sounds awesome. You might look at the tempfile library (http://www.ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/Tempfile.html) for writing the file though it might make sense to put it in a more predictable location. The file...

There's currently no way to do this, per say, but I can think of a few options to get the behavior you want. The first is to write a custom...

@kristian-94 - Yes I would definitely consider adding this. I think this could also be achieved using a custom formatter (see https://github.com/samg/timetrap_formatters) which might be an easier path.

I believe the current behavior is to choose the time closest to the current time when there's ambiguity (e.g. if it's 9:15pm choose 10:15pm one hour in the future instead...

It's totally possible. There's an example formatted which does just that at https://github.com/samg/timetrap_formatters/blob/master/formatters/invoice.rb