{"id":21820605,"url":"https://github.com/sue445/itest5ch","last_synced_at":"2025-03-21T11:15:49.105Z","repository":{"id":32475616,"uuid":"123221162","full_name":"sue445/itest5ch","owner":"sue445","description":"5ch (a.k.a. 2ch) reader via itest.5ch.net","archived":false,"fork":false,"pushed_at":"2025-01-17T12:33:47.000Z","size":344,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T23:51:46.676Z","etag":null,"topics":["2ch","5ch","gem"],"latest_commit_sha":null,"homepage":"https://sue445.github.io/itest5ch/","language":"HTML","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/sue445.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"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":"2018-02-28T03:04:02.000Z","updated_at":"2025-01-17T12:33:47.000Z","dependencies_parsed_at":"2023-12-25T16:49:10.021Z","dependency_job_id":"fbefd144-866c-4940-8ff4-5407cee67dbf","html_url":"https://github.com/sue445/itest5ch","commit_stats":{"total_commits":199,"total_committers":3,"mean_commits":66.33333333333333,"dds":"0.12060301507537685","last_synced_commit":"5c9a2e367d54a29a5d1f0dd99aa4bf9e43e56c95"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fitest5ch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fitest5ch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fitest5ch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fitest5ch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sue445","download_url":"https://codeload.github.com/sue445/itest5ch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244787014,"owners_count":20510039,"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":["2ch","5ch","gem"],"created_at":"2024-11-27T16:37:57.518Z","updated_at":"2025-03-21T11:15:49.063Z","avatar_url":"https://github.com/sue445.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Itest5ch\n\n5ch (a.k.a. 2ch) reader via http://itest.5ch.net/\n\n[![Gem Version](https://badge.fury.io/rb/itest5ch.svg)](https://badge.fury.io/rb/itest5ch)\n[![test](https://github.com/sue445/itest5ch/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/itest5ch/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/sue445/itest5ch/badge.svg)](https://coveralls.io/github/sue445/itest5ch)\n[![Maintainability](https://api.codeclimate.com/v1/badges/14a81b3f7da11e475242/maintainability)](https://codeclimate.com/github/sue445/itest5ch/maintainability)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'itest5ch'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install itest5ch\n\n## Usage\n\n### [Itest5ch::Board](lib/itest5ch/board.rb)\n\n#### Get all boards\n\n```ruby\ncategory_boards = Itest5ch::Board.all\n#=\u003e {\"地震\"=\u003e\n  [#\u003cItest5ch::Board:0x00007f821c5bb4b8 @name=\"地震headline\", @url=\"http://itest.5ch.net/subback/bbynamazu\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5b9f78 @name=\"地震速報\", @url=\"http://itest.5ch.net/subback/namazuplus\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5b8a38 @name=\"臨時地震\", @url=\"http://itest.5ch.net/subback/eq\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5c37d0 @name=\"臨時地震+\", @url=\"http://itest.5ch.net/subback/eqplus\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5c2290 @name=\"緊急自然災害\", @url=\"http://itest.5ch.net/subback/lifeline\"\u003e],\n \"おすすめ\"=\u003e\n  [#\u003cItest5ch::Board:0x00007f821c5d3dd8 @name=\"スマートフォン\", @url=\"http://itest.5ch.net/subback/smartphone\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5d2898 @name=\"ハワイ州\", @url=\"http://itest.5ch.net/subback/hawaii\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5d1358 @name=\"大学生活\", @url=\"http://itest.5ch.net/subback/campus\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5dbf38 @name=\"恋愛サロン\", @url=\"http://itest.5ch.net/subback/lovesaloon\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5da9f8 @name=\"アレルギー\", @url=\"http://itest.5ch.net/subback/allergy\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5d94b8 @name=\"ラブライブ！\", @url=\"http://itest.5ch.net/subback/lovelive\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821ca0e8d0 @name=\"Apple\", @url=\"http://itest.5ch.net/subback/apple2\"\u003e,\n   #\u003cItest5ch::Board:0x00007f821c5e2ba8 @name=\"初心者の質問\", @url=\"http://itest.5ch.net/subback/qa\"\u003e],\n```\n\n#### Get boards of a category\n\n```ruby\nboards = Itest5ch::Board.find_category_boards(\"おすすめ\")\n#=\u003e [#\u003cItest5ch::Board:0x00007f821c639840 @name=\"スマートフォン\", @url=\"http://itest.5ch.net/subback/smartphone\"\u003e,\n #\u003cItest5ch::Board:0x00007f821c628dd8 @name=\"ハワイ州\", @url=\"http://itest.5ch.net/subback/hawaii\"\u003e,\n #\u003cItest5ch::Board:0x00007f821c6185c8 @name=\"大学生活\", @url=\"http://itest.5ch.net/subback/campus\"\u003e,\n #\u003cItest5ch::Board:0x00007f821c67bf10 @name=\"恋愛サロン\", @url=\"http://itest.5ch.net/subback/lovesaloon\"\u003e,\n #\u003cItest5ch::Board:0x00007f821c66b728 @name=\"アレルギー\", @url=\"http://itest.5ch.net/subback/allergy\"\u003e,\n #\u003cItest5ch::Board:0x00007f821c65add8 @name=\"ラブライブ！\", @url=\"http://itest.5ch.net/subback/lovelive\"\u003e,\n #\u003cItest5ch::Board:0x00007f821c64a258 @name=\"Apple\", @url=\"http://itest.5ch.net/subback/apple2\"\u003e,\n #\u003cItest5ch::Board:0x00007f821c6b9658 @name=\"初心者の質問\", @url=\"http://itest.5ch.net/subback/qa\"\u003e]\n```\n\n#### Get a board\n```ruby\nboard = Itest5ch::Board.find(\"スマートフォン\")\n\n# or\n\nboard = Itest5ch::Board.find(\"smartphone\")\n```\n\n### [Itest5ch::Thread](lib/itest5ch/thread.rb)\n#### Get threads\n```ruby\nthreads = board.threads\n```\n\n#### Get a thread\n```ruby\n# with PC url\nthread = Itest5ch::Thread.new(\"http://egg.5ch.net/test/read.cgi/smartphone/0000000000\")\n\n# or\n\n# with Smartphone url\nthread = Itest5ch::Thread.new(\"http://itest.5ch.net/egg/test/read.cgi/smartphone/0000000000\")\n```\n\n### [Itest5ch::Comment](lib/itest5ch/comment.rb)\n```ruby\ncomments = thread.comments\n```\n\n### [Itest5ch::Config](lib/itest5ch/config.rb)\n```ruby\nItest5ch.config.user_agent = \"XXXX\"\n```\n\n* `user_agent` : User Agent\n\n## ProTip\nWhen `Time.zone` is initialized, `Itest5ch::Comment#date` returns `ActiveSupport::TimeWithZone` instead of `Time` (requirements `activesupport`)\n\n```ruby\ncomment.date\n#=\u003e 2018-03-06 12:34:56 +0900\ncomment.date.class\n#=\u003e Time\n```\n\n```ruby\nrequire \"active_support/time\"\nTime.zone = \"Tokyo\"\n\ncomment.date\n#=\u003e Tue, 06 Mar 2018 12:34:56 JST +09:00\ncomment.date.class\n#=\u003e ActiveSupport::TimeWithZone\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 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/sue445/itest5ch.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsue445%2Fitest5ch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsue445%2Fitest5ch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsue445%2Fitest5ch/lists"}