{"id":16925433,"url":"https://github.com/alejandrodevs/couchy","last_synced_at":"2026-04-26T08:38:53.252Z","repository":{"id":59152421,"uuid":"449969005","full_name":"alejandrodevs/couchy","owner":"alejandrodevs","description":"Simple ruby wrapper around CouchDB’s RESTFul API.","archived":false,"fork":false,"pushed_at":"2022-01-20T21:55:14.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-30T17:49:21.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/alejandrodevs.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}},"created_at":"2022-01-20T05:38:37.000Z","updated_at":"2022-01-20T05:47:29.000Z","dependencies_parsed_at":"2022-09-13T10:50:21.826Z","dependency_job_id":null,"html_url":"https://github.com/alejandrodevs/couchy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alejandrodevs/couchy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrodevs%2Fcouchy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrodevs%2Fcouchy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrodevs%2Fcouchy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrodevs%2Fcouchy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alejandrodevs","download_url":"https://codeload.github.com/alejandrodevs/couchy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrodevs%2Fcouchy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32291336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T08:29:33.829Z","status":"ssl_error","status_checked_at":"2026-04-26T08:29:18.366Z","response_time":129,"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":[],"created_at":"2024-10-13T20:10:37.507Z","updated_at":"2026-04-26T08:38:53.235Z","avatar_url":"https://github.com/alejandrodevs.png","language":"Ruby","readme":"# Couchy\n\nThis is a simple ruby wrapper around [CouchDB](https://couchdb.apache.org)’s RESTFul API.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'couchy'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install couchy\n\n## Usage\n\n\n### Handling Documents\n\n```ruby\nrequire 'couchy'\n\nserver = Couchy::Server.new\ndatabase = server.database('mydb')\n\ndatabase.save_document(\"DocId\", { name: \"Alex\" })\n# =\u003e {:ok=\u003etrue, :id=\u003e\"DocId\", :rev=\u003e\"1-d8ab39494dd33ca3ff2430bdb0bf0836\"}\n\ndatabase.get_document(\"DocId\")\n# =\u003e {:_id=\u003e\"DocId\", :_rev=\u003e\"1-d8ab39494dd33ca3ff2430bdb0bf0836\", :name=\u003e\"Alex\"}\n\ndatabase.delete_document(\"DocId\", rev: \"1-d8ab39494dd33ca3ff2430bdb0bf0836\")\n# =\u003e {:ok=\u003etrue, :id=\u003e\"DocId\", :rev=\u003e\"2-e0e6a8d559f31334aa171858d4cd01dd\"}\n\ndatabase.get_document(\"DocId\")\n# =\u003e deleted (Couchy::ResouceNotFound)\n```\n\n### Handling Databases\n\n```ruby\nrequire 'couchy'\n\nserver = Couchy::Server.new\n\nserver.create_database(\"anotherdb\")\n# =\u003e {:ok=\u003etrue}\n\nserver.delete_database(\"anotherdb\")\n# =\u003e {:ok=\u003etrue}\n\nserver.get_database(\"anotherdb\")\n# =\u003e Database does not exist. (Couchy::ResouceNotFound)\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\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/alejandrodevs/couchy. 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/alejandrodevs/couchy/blob/master/CODE_OF_CONDUCT.md).\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 Couchy project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/alejandrodevs/couchy/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejandrodevs%2Fcouchy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falejandrodevs%2Fcouchy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejandrodevs%2Fcouchy/lists"}