{"id":16956969,"url":"https://github.com/jgraichen/rack-remote","last_synced_at":"2025-04-11T21:43:54.093Z","repository":{"id":10941584,"uuid":"13249006","full_name":"jgraichen/rack-remote","owner":"jgraichen","description":"Small request intercepting rack middleware to invoke remote calls over HTTP.","archived":false,"fork":false,"pushed_at":"2025-04-07T12:27:31.000Z","size":31,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-07T13:30:06.638Z","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/jgraichen.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2013-10-01T16:21:23.000Z","updated_at":"2025-02-17T05:40:05.000Z","dependencies_parsed_at":"2024-12-30T05:19:08.554Z","dependency_job_id":"26bb749a-ffac-469d-9b46-39ee6cc9f387","html_url":"https://github.com/jgraichen/rack-remote","commit_stats":{"total_commits":22,"total_committers":4,"mean_commits":5.5,"dds":0.4545454545454546,"last_synced_commit":"fae3f5fdc6e8ec89363ac31064fb9aef716a2e23"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Frack-remote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Frack-remote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Frack-remote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Frack-remote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgraichen","download_url":"https://codeload.github.com/jgraichen/rack-remote/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487265,"owners_count":21112185,"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":[],"created_at":"2024-10-13T22:16:29.702Z","updated_at":"2025-04-11T21:43:54.071Z","avatar_url":"https://github.com/jgraichen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rack::Remote\n\n*Rack::Remote* is a small request intercepting Rack middleware to invoke\nremote calls over HTTP. This can be used to invoke e.g. factories on\nremote services for running integration tests on distributed applications.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'rack-remote'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rack-remote\n\n## Usage\n\n### On server/service side\n\nRegister available remote calls:\n\n```ruby\nRack::Remote.register :factory_bot do |params, env, request|\n  FactoryBot.create params[:factory]\nend\n```\n\nReturn value can be a Rack response array or any object that will be converted to JSON.\n\n### On client side\n\n```ruby\nRack::Remote.add :srv1, url: 'http://serv.domain.tld/proxyed/path'\nRack::Remote.invoke :srv1, :factory_bot, factory: 'user'\nRack::Remote.invoke 'http://serv.domain.tld/proxyed/path', :factory_bot, factory: 'user'\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n4. Add specs\n5. Add features\n6. Commit your changes (`git commit -am 'Add some feature'`)\n7. Push to the branch (`git push origin my-new-feature`)\n8. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgraichen%2Frack-remote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgraichen%2Frack-remote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgraichen%2Frack-remote/lists"}