{"id":14955956,"url":"https://github.com/awcodify/dalt","last_synced_at":"2026-01-15T22:11:15.622Z","repository":{"id":62556654,"uuid":"122373362","full_name":"awcodify/dalt","owner":"awcodify","description":"Ruby parse string to date (Date.parse) with alternate.","archived":false,"fork":false,"pushed_at":"2020-02-29T10:44:58.000Z","size":27,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T18:38:08.444Z","etag":null,"topics":["date","gem","rails","rails5","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://github.com/whatdacode/dalt","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awcodify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-21T18:05:45.000Z","updated_at":"2019-03-21T10:36:23.000Z","dependencies_parsed_at":"2022-11-03T06:00:46.693Z","dependency_job_id":null,"html_url":"https://github.com/awcodify/dalt","commit_stats":null,"previous_names":["whatdacode/dalt"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/awcodify/dalt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fdalt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fdalt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fdalt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fdalt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awcodify","download_url":"https://codeload.github.com/awcodify/dalt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fdalt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28472624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T20:50:13.584Z","status":"ssl_error","status_checked_at":"2026-01-15T20:49:17.379Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date","gem","rails","rails5","ruby","ruby-on-rails"],"created_at":"2024-09-24T13:12:05.026Z","updated_at":"2026-01-15T22:11:15.606Z","avatar_url":"https://github.com/awcodify.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dalt\n\nParse you date dynamically without raising error when invalid, but returning alternative object as you want.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dalt'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dalt\n\n## Usage\n\nSimple. Very similiar with `Date.parse`. Just:\n```ruby\n['invalid', 'monday', '01-01-2019'].each do |date|\n   Dalt.parse(date, alt: 'Invalid date')\nend\n```\nwill return\n\n```ruby\n[\"Invalid date\", #\u003cDate: 2019-03-18 ((2458561j,0s,0n),+0s,2299161j)\u003e, #\u003cDate: 2019-01-01 ((2458485j,0s,0n),+0s,2299161j)\u003e]\n```\n\nIf your date is valid, then will return your valid date.\nIf your date is not valid, then will return your alternate.\nSimple, right?\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/whatdacode/dalt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Dalt project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/whatdacode/dalt/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawcodify%2Fdalt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawcodify%2Fdalt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawcodify%2Fdalt/lists"}