time_difference icon indicating copy to clipboard operation
time_difference copied to clipboard

Is this project being maintained?

Open ruionwriting opened this issue 4 years ago • 6 comments

I still think this is a great Gem and I just wonder what is needed to happen to get it updated at a regular pace.

activesupport (~> 5.1) for example is something that would be nice to address.

Is this project being maintained? Can I help?

ruionwriting avatar Dec 21 '21 10:12 ruionwriting

It seems like no.

I used this project, but with some forks and patches:

  • https://github.com/tmlee/time_difference/pull/48#issuecomment-581171651
  • https://github.com/tmlee/time_difference/pull/40#issuecomment-463809231

Then I found and switched to moments: https://github.com/tmlee/time_difference/pull/52#issuecomment-709459190

AlexWayfer avatar Dec 21 '21 14:12 AlexWayfer

Just a heads up, I did a quick comparison between TimeDifference and Moments to ensure similar results but I couldn't get fractional values from Moments:

irb(main):001:0> t1 = 14.days.ago
=> Thu, 04 Aug 2022 15:52:25 MDT -06:00
irb(main):002:0> t2 = Time.zone.now
=> Thu, 18 Aug 2022 15:52:31 MDT -06:00
irb(main):004:0> TimeDifference.between( t1, t2 ).in_minutes
=> 20160.09

irb(main):008:0> Moments.difference( t1, t2 ).in_minutes
=> 20160

Again, maybe there is a setting to preserve this kind of precision but I couldn't find it. Just be aware. I think I'll try a fork of this library as a quick fix for now.

joshuapinter avatar Aug 18 '22 22:08 joshuapinter

See https://github.com/excpt/moments/pull/12 for specifying precision.

bethesque avatar Feb 16 '23 03:02 bethesque

@bethesque Has that actually been released or is it just in master/main?

joshuapinter avatar Feb 16 '23 15:02 joshuapinter

I went to use it and discovered, as you say, that it's not released. I've added a comment asking for a release.

bethesque avatar Feb 16 '23 22:02 bethesque

@bethesque 👍

joshuapinter avatar Feb 16 '23 22:02 joshuapinter