{"id":16065743,"url":"https://github.com/marcoroth/cable_ready-dsl","last_synced_at":"2026-04-29T14:35:23.928Z","repository":{"id":40007541,"uuid":"352098285","full_name":"marcoroth/cable_ready-dsl","owner":"marcoroth","description":"[PoC] An opinionated DSL for CableReady.","archived":false,"fork":false,"pushed_at":"2023-08-24T21:16:46.000Z","size":40,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T07:29:11.724Z","etag":null,"topics":["cableready","rails","ruby","stimulusreflex"],"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/marcoroth.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":"2021-03-27T14:49:14.000Z","updated_at":"2023-07-18T09:04:29.000Z","dependencies_parsed_at":"2024-10-22T23:16:56.542Z","dependency_job_id":null,"html_url":"https://github.com/marcoroth/cable_ready-dsl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcoroth/cable_ready-dsl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fcable_ready-dsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fcable_ready-dsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fcable_ready-dsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fcable_ready-dsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoroth","download_url":"https://codeload.github.com/marcoroth/cable_ready-dsl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fcable_ready-dsl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32429209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: 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":["cableready","rails","ruby","stimulusreflex"],"created_at":"2024-10-09T05:20:34.126Z","updated_at":"2026-04-29T14:35:23.900Z","avatar_url":"https://github.com/marcoroth.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CableReady::Dsl\n\nAn opinionated DSL for CableReady.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'cable_ready-dsl'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install cable_ready-dsl\n\n## Usage\n\n### Setup\n\n```ruby\nrequire \"cable_ready/dsl\"\n```\n\n### String DSL\n\n```ruby\nclass YourReflex \u003c ApplicationReflex\n  using CableReady::Dsl::StringDsl\n\n  def increment\n    '#posts'.morph('\u003cp\u003eYour HTML\u003c/p\u003e')\n\n    dom_id(Post.last).morph('\u003cp\u003eYour HTML\u003c/p\u003e', children_only: true)\n  end\nend\n```\n\n### DOM DSL\n\n```ruby\nclass YourReflex \u003c ApplicationReflex\n  using CableReady::Dsl::DomDsl\n\n  def increment\n    '#posts'.dom.morph('\u003cp\u003eYour HTML\u003c/p\u003e')\n\n    dom_id(Post).dom.morph('\u003cp\u003eYour HTML\u003c/p\u003e', children_only: true, channel: 'users')\n  end\nend\n```\n\n### DOM-Method DSL\n\n```ruby\nclass YourReflex \u003c ApplicationReflex\n  include CableReady::Dsl::MethodDsl\n\n  def increment\n    dom('#posts').morph('\u003cp\u003eYour HTML\u003c/p\u003e')\n\n    selector('#posts').morph('\u003cp\u003eYour HTML\u003c/p\u003e')\n\n    id('posts').morph('\u003cp\u003eYour HTML\u003c/p\u003e')\n\n    css_class('card').morph('\u003cp\u003eYour HTML\u003c/p\u003e', children_only: true, channel: 'users')\n  end\nend\n```\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 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/marcoroth/cable_ready-dsl. 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/marcoroth/cable_ready-dsl/blob/master/CODE_OF_CONDUCT.md).\n\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 `CableReady::Dsl` project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/marcoroth/cable_ready-dsl/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fcable_ready-dsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoroth%2Fcable_ready-dsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fcable_ready-dsl/lists"}