{"id":23074790,"url":"https://github.com/bsedin/sequel-store","last_synced_at":"2025-04-03T11:44:22.516Z","repository":{"id":56895063,"uuid":"93051742","full_name":"bsedin/sequel-store","owner":"bsedin","description":"store_accessor functionality for sequel models","archived":false,"fork":false,"pushed_at":"2017-06-01T12:11:57.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T13:52:17.079Z","etag":null,"topics":["sequel"],"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/bsedin.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-06-01T11:49:42.000Z","updated_at":"2023-11-17T17:27:21.000Z","dependencies_parsed_at":"2022-08-21T01:20:54.951Z","dependency_job_id":null,"html_url":"https://github.com/bsedin/sequel-store","commit_stats":null,"previous_names":["kressh/sequel-store"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsedin%2Fsequel-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsedin%2Fsequel-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsedin%2Fsequel-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsedin%2Fsequel-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsedin","download_url":"https://codeload.github.com/bsedin/sequel-store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998138,"owners_count":20866690,"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":["sequel"],"created_at":"2024-12-16T08:29:35.016Z","updated_at":"2025-04-03T11:44:22.488Z","avatar_url":"https://github.com/bsedin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SequelStore\n\nTiny extension for Sequel to add store_accessor capabilities similar to ActiveRecord::Store: http://api.rubyonrails.org/classes/ActiveRecord/Store.html\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'sequel-store'\n```\n\nAnd then add extension to Sequel:\n\n```\n  Sequel.extension :store_accessor\n```\n\nNow define your accessors in `Sequel::Model` classes:\n\n```\nclass Article \u003c Sequel::Model(:articles)\n  store_accessor :metadata, :year, :rating, :views_count\n\n  def views_count\n    super || 0\n  end\nend\n```\n\n```\narticle = Article.new\narticle.year #=\u003e nil\narticle.year = 2017\narticle.year #=\u003e 2017\narticle.views_count #=\u003e 0\narticle.metadata #=\u003e {\"year\"=\u003e2017}\n```\n\n## Development\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 tags, 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/kressh/sequel-store.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsedin%2Fsequel-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsedin%2Fsequel-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsedin%2Fsequel-store/lists"}