{"id":22773711,"url":"https://github.com/moekiorg/tenet","last_synced_at":"2025-08-01T01:10:56.485Z","repository":{"id":134211959,"uuid":"442804486","full_name":"moekiorg/tenet","owner":"moekiorg","description":"Tenet transforms HTML elements to Array of Hash","archived":false,"fork":false,"pushed_at":"2021-12-31T00:27:58.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T03:37:36.663Z","etag":null,"topics":["gem","html","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moekiorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-29T14:53:28.000Z","updated_at":"2024-05-18T07:50:05.000Z","dependencies_parsed_at":"2023-08-17T22:45:17.224Z","dependency_job_id":null,"html_url":"https://github.com/moekiorg/tenet","commit_stats":null,"previous_names":["kawakamimoeki/tenet","moekidev/tenet"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moekiorg%2Ftenet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moekiorg%2Ftenet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moekiorg%2Ftenet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moekiorg%2Ftenet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moekiorg","download_url":"https://codeload.github.com/moekiorg/tenet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393095,"owners_count":20931804,"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":["gem","html","ruby"],"created_at":"2024-12-11T17:58:42.545Z","updated_at":"2025-04-05T19:35:28.928Z","avatar_url":"https://github.com/moekiorg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tenet\n\nTenet reverses HTML elements views to Array of Hash data.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'tenet'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install tenet\n\n## Usage\n\nImport from a index page:\n\n```ruby\nrequire \"tenet\"\n\nclass Events \u003c Tenet::IndexPage\n  url \"https://example.com/events\"\n\n  row \".event\"\n\n  attribute :name, css: \".event__title\", type: :string\n  attribute :link, css: \".event__link\", type: :link\n  attribute :thumbnail, css: \".event__thumbnail\", type: :img\n  attribute :status, css: \".event__status\", type: :string\nend\n\nEvents.new.to_a\n```\n\nImport from multiple show pages:\n\n```ruby\n\nrequire \"tenet\"\n\nclass Events \u003c Tenet::MultiPage\n  urls [\n    \"https://example.com/events/1\",\n    \"https://example.com/events/2\",\n    \"https://example.com/events/3\"\n  ]\n\n  attribute :name, css: \".event__title\", type: :string\n  attribute :link, css: \".event__link\", type: :link\n  attribute :thumbnail, css: \".event__thumbnail\", type: :img\n  attribute :status, css: \".event__status\", type: :string\nend\n\nEvents.new.to_a\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoekiorg%2Ftenet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoekiorg%2Ftenet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoekiorg%2Ftenet/lists"}