{"id":13878283,"url":"https://github.com/saturnflyer/polyfill-data","last_synced_at":"2025-03-22T07:32:28.288Z","repository":{"id":65367316,"uuid":"590716411","full_name":"saturnflyer/polyfill-data","owner":"saturnflyer","description":"Adds the Ruby 3.2 Data class to lower Ruby versions","archived":false,"fork":false,"pushed_at":"2023-11-25T20:10:21.000Z","size":38,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-14T16:09:11.490Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","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/saturnflyer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-19T02:55:43.000Z","updated_at":"2024-04-07T00:15:31.000Z","dependencies_parsed_at":"2023-02-13T21:40:22.410Z","dependency_job_id":null,"html_url":"https://github.com/saturnflyer/polyfill-data","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saturnflyer%2Fpolyfill-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saturnflyer%2Fpolyfill-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saturnflyer%2Fpolyfill-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saturnflyer%2Fpolyfill-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saturnflyer","download_url":"https://codeload.github.com/saturnflyer/polyfill-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221824912,"owners_count":16886886,"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":["ruby"],"created_at":"2024-08-06T08:01:45.099Z","updated_at":"2024-10-28T12:17:59.781Z","avatar_url":"https://github.com/saturnflyer.png","language":"Ruby","readme":"# Polyfill - Data\n\nAdd the Ruby 3.2 [Data](https://docs.ruby-lang.org/en/3.2/Data.html) class to earlier Rubies.\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add polyfill-data\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install polyfill-data\n\nPolyfill-Data is cryptographically signed. To be sure the gem you install hasn’t been tampered with:\n\nAdd the public key (if you haven’t already) as a trusted certificate\n\n    gem cert --add \u003c(curl -Ls https://raw.github.com/saturnflyer/polyfill-data/main/certs/saturnflyer.pem)\n\n    gem install polyfill-data -P HighSecurity\n\n## Usage\n\n```ruby\nrequire 'polyfill-data'\n\nMyValue = Data.define(:some, :stuff)\na_value = MyValue.new(some: \"thing\", stuff: \"here\")\nputs a_value.to_h # =\u003e { some: \"thing\", stuff: \"here\" }\n\nanother = a_value.with(stuff: \"there\")\nputs another.eql?(a_value) # =\u003e false\nputs another.to_h # =\u003e { some: \"thing\", stuff: \"there\" }\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` 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/saturnflyer/polyfill-data.\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaturnflyer%2Fpolyfill-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaturnflyer%2Fpolyfill-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaturnflyer%2Fpolyfill-data/lists"}