{"id":19350755,"url":"https://github.com/splitwise/rspec-iso8601","last_synced_at":"2025-08-02T21:34:44.504Z","repository":{"id":57699109,"uuid":"509536514","full_name":"splitwise/rspec-iso8601","owner":"splitwise","description":"RSpec matching for ISO8601 strings","archived":false,"fork":false,"pushed_at":"2024-06-11T14:06:19.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-09-18T11:56:43.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/splitwise.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-01T17:24:22.000Z","updated_at":"2024-09-12T23:14:08.000Z","dependencies_parsed_at":"2024-06-11T15:58:01.715Z","dependency_job_id":null,"html_url":"https://github.com/splitwise/rspec-iso8601","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":0.09090909090909094,"last_synced_commit":"93d299d4519c1f5621518080fc2a986840a76a18"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitwise%2Frspec-iso8601","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitwise%2Frspec-iso8601/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitwise%2Frspec-iso8601/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitwise%2Frspec-iso8601/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splitwise","download_url":"https://codeload.github.com/splitwise/rspec-iso8601/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223913284,"owners_count":17224201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T04:33:44.808Z","updated_at":"2024-11-10T04:33:45.397Z","avatar_url":"https://github.com/splitwise.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rspec-iso8601\n\n[![Gem Version](https://badge.fury.io/rb/rspec-iso8601.svg)](https://badge.fury.io/rb/rspec-iso8601) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nThis gem provides RSpec string matchers for [ISO8601 date/time strings](https://www.w3.org/TR/NOTE-datetime). It was inspired by [rspec-uuid](https://github.com/dpep/rspec-uuid).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rspec-iso8601'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install rspec-iso8601\n\n\nAnd require it (`spec_helper.rb` is a good place):\n\n```ruby\nrequire \"rspec/iso8601\"\n```\n\n## Usage\n\n```ruby\nexpect(your_string).to be_an_iso8601_string\n\n# Or use the alias:\nexpect(your_hash).to match(abc: an_iso8601_string)\n```\n\nBy default, the matcher doesn't care how many microseconds your ISO8601 string contains, if any.\nBut you can tell it to be more restrictive:\n\n```ruby\n# With a keyword argument:\nexpect(your_string).to be_an_iso8601_string(precision: 3)\n\n# With a chained method:\nexpect(your_string).to be_an_iso8601_string.with_precision(3)\n```\n\nYou can also restrict matches to strings with the UTC \"Z\" offset designator:\n\n```ruby\nexpect(your_string).to be_an_iso8601_string.in_utc\n```\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/splitwise/rspec-iso8601. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/splitwise/rspec-iso8601/blob/main/CODE_OF_CONDUCT.md).\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 RSpec::ISO8601 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/splitwise/rspec-iso8601/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitwise%2Frspec-iso8601","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplitwise%2Frspec-iso8601","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitwise%2Frspec-iso8601/lists"}