Chronic
TZinfo
Chronic | TZinfo | |
---|---|---|
5 | 5 | |
3,223 | 354 | |
- | 0.3% | |
0.0 | 6.0 | |
7 months ago | 3 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Chronic
-
Humane Rails Forms
There's actually a lot of issues and PRs for Chronic at https://github.com/mojombo/chronic that could make it a more capable library and fix some of these issues.
- A declarative DSL for calendar events and scheduling
- Chronic: A pure Ruby natural language date parser
-
Safari's date-picker is the cause of 1/3 of our customer support issues
In my web apps, I make dates text boxes that can handle inputs like “next Thursday”, “Monday at 5p”, etc by running the inputs through https://github.com/mojombo/chronic
I like the idea of inputs being able to make sense of as wide of a variety or formats as possible.
For number inputs I’d like to build into Rails something that can handle basic math expressions. For example, a person can enter “120 / 2” in an input and get 60. This is useful for expense apps where you need to expense half of something.
-
Dte: A language for expressing and calculating date and time
Reminds me of the Ruby library chronic https://github.com/mojombo/chronic
It's pretty good at natural language interpretation of dates, and the basic "from today" calculations, but cool to also see here natural expressions to parse between dates.
TZinfo
-
Hacker News top posts: Jul 22, 2022
Arbitrary file execution in TZinfo\ (15 comments)
- CVE-2022-31163: Arbitrary file execution in TZinfo (Ruby)
-
CVE-2022-31163: Arbitrary file execution through TZinfo (Ruby)
For everyone who is panicking about this - to be affected, you either need to use a really old version of tzinfo (0.3.60 and earlier), have the tzinfo-data gem installed, or explicitly set TZInfo::DataSource to DataSources::RubyDataSource.
Otherwise, by default, tzinfo will use TZInfo::ZoneinfoDataSource, which does not seem to be affected.
https://github.com/tzinfo/tzinfo/blob/d9b289e1be30d29a2cb23b...
https://github.com/tzinfo/tzinfo/commit/b98c32efd61289fe6f00...
What are some alternatives?
ice_cube - Ruby Date Recurrence Library - Allows easy creation of recurrence rules and fast querying
local_time - Rails engine for cache-friendly, client-side local time
groupdate - The simplest way to group temporal data
ByStar - Lets you find ActiveRecord + Mongoid objects by year, month, fortnight, week and more!
time-lord - time-lord is a ruby gem that adds extra functionality to the time class.
business_time - Support for doing time math in business hours and days
fugit - time tools (cron, parsing, durations, ...) for Ruby, rufus-scheduler, and flor
Recurrence - A simple library that handles recurring events.