{"id":26531864,"url":"https://github.com/unagisoftware/ruberto","last_synced_at":"2026-04-22T10:32:18.771Z","repository":{"id":280027939,"uuid":"926585959","full_name":"unagisoftware/ruberto","owner":"unagisoftware","description":"The easiest way to integrate to Uber API.","archived":false,"fork":false,"pushed_at":"2025-03-13T14:45:44.000Z","size":92,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-07T12:48:58.007Z","etag":null,"topics":[],"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/unagisoftware.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,"zenodo":null}},"created_at":"2025-02-03T14:18:48.000Z","updated_at":"2025-10-05T12:54:39.000Z","dependencies_parsed_at":"2025-02-28T23:07:52.328Z","dependency_job_id":"2c5e0fb4-4230-4d14-9214-ff5baee3bfe3","html_url":"https://github.com/unagisoftware/ruberto","commit_stats":null,"previous_names":["unagisoftware/ruber","unagisoftware/ruberto"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/unagisoftware/ruberto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unagisoftware%2Fruberto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unagisoftware%2Fruberto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unagisoftware%2Fruberto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unagisoftware%2Fruberto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unagisoftware","download_url":"https://codeload.github.com/unagisoftware/ruberto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unagisoftware%2Fruberto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32132195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"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":"2025-03-21T18:33:10.801Z","updated_at":"2026-04-22T10:32:18.753Z","avatar_url":"https://github.com/unagisoftware.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruberto\n\nThis gem helps you seamlessly connect your Ruby app with Uber’s services. Hop in, let’s ride!\n\n### Why Ruberto?\n\nIt was originally named `Ruber`, because, well... it’s built in Ruby and integrates with Uber. See what we did there? 😏\n\nThen we sadly realized that the name was already taken, so we renamed it to `Ruberto`. Hope you like it!\n\n\u003e The current version includes the integration with the Uber Direct API.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```\ngem 'ruberto'\n```\n\nAnd then execute:\n\n```\n$ bundle\n```\n## Configuration\nRuberto can be customized using various configuration options. To see the full list, run the `init` generator to create an initializer with all the options. Then, uncomment the variables you want to customize.\n\n```bash\nrails generate ruberto:init\n# This will create a file ruberto.rb under config/initializers\n```\n\n## Usage\n\nTo access the API, you'll need to create an account on Uber (see the [Uber developers website](https://developer.uber.com) for more information). Once you have your account, go to the developer options to find your `customer_id`, `client_id`, and `client_secret`.\n\nYou need to pass those values to the gem. You can do this from anywhere, but we recommend using an initializer like this:\n\n```ruby\nRuberto.configure do |config|\n  config.customer_id = 'uber-customer-id'\n  config.client_id = 'uber-client-id'\n  config.client_secret = 'uber-client-secret'\nend\n```\n\n_ℹ️ If you run the `init` generator you should set the attributes in the generated initializer (`config/initializers/ruberto`)_\n\n## Cache\nRuberto uses a caching solution to improve efficiency (e.g., for caching tokens). By default, it uses a simple memory cache,\nbut you can change the cache method by setting the `Ruberto.cache` attribute.\n\n```ruby\nRuberto.cache = Redis.new\n# or\nRuberto.cache = Rails.cache\n# or any object that responds to read/write/delete/clear\nRuberto.cache = YourCustomCache.new\n```\n\n\u003e Try not to use the memory cache in production, as it will be cleared on every request.\n\n\n### File cache\n\nRuberto comes with a simple File cache option. It uses a yaml file to store the cached data.\n\n```yml\n---\n# Example of file automatically generated\n:access_token:\n  :token: IA.VUNmGAAAAAAAEgASAAAABwAIAAwAAAAAAAAAEgAAAAAAAAGwAAAAFAAAAAAADgAQAAQAAAAIAAwAAAAOAAAAhAAAABwAAAAEAAAAEAAAAKbivxMQNu9xZfQn_LJeh75fAAAAcqjQlrRGJjknFRPDLARG0Uj0kIvmkIh7cy_HI8cPjKMP4ja0xAvKLSJ1H9eU1ALQJkExzcMwvMkPyVjpSm-c4Wk1S__oSOK_pkAX1kywZr8sBpP_gtPwBhrz3SF8L6YADAAAALkCO6lUHox2Dp907iQAAABiMGQ4NTgwMy0zOGEwLTQyYjMtODA2ZS03YTRjZjhlMTk2ZWU\n  :expires_at: 2025-03-27 16:46:12.256308000 -03:00\n```\n\nIn case you want to go for this option, you'll need to set the `file_cache_path` attribute to determine where to save the file.\n\n‼️ **Make sure that this path is in your `.gitignore` to avoid pushing your token to the repo.**\n\n## Resources\n\nRuberto maps resources from the Uber API to internal resources. For example, `Ruberto::DeliveryResource` lets you create, find, list, cancel, and manage deliveries in Uber. When you call these methods on a resource, it returns objects created using OpenStruct, allowing you to access data in a Ruby-like way.\n\n```ruby\ndelivery = Ruberto::DeliveryResource.find(\"del_id1231asdfas\")\n#=\u003e Ruberto::Delivery\ndelivery.id\n#=\u003e del_id1231asdfas\n```\n\n### DeliveryResource\n\n```ruby\nRuberto::DeliveryResource.all\n#=\u003e Ruberto::Collection of Ruberto::Delivery\n\nRuberto::DeliveryResource.find(\"del_id\")\n#=\u003e Ruberto::Delivery\n\nRuberto::DeliveryResource.create({...}}\n#=\u003e Ruberto::Delivery\n\nRuberto::DeliveryResource.cancel(\"del_id\")\n#=\u003e Ruberto::Delivery\n\nRuberto::DeliveryResource.update(\"del_id\", {...})\n#=\u003e Ruberto::Delivery\n\nRuberto::DeliveryResource.proof_of_delivery(\"del_id\", {...})\n#=\u003e Ruberto::Delivery::ProofOfDelivery\n```\n\n## Authentication\nTo access the Uber API, you need a valid access token from Uber's OAuth service. All requests to https://api.uber.com/ use OAuth 2.0 with the client_credentials grant type.\n\nAuthentication and caching are handled automatically by the gem. The only thing you need to do is provide the required credentials (`customer_id`, `client_id`, and `client_secret`).\n\n## Errors\nIf the Uber API returns an error, a `Ruberto::Error` exception is raised. Ruberto::Error provides the following accessors: `message`, `metadata`, `status`:\n\n```ruby\nbegin\n  Ruberto::DeliveryResource.create(...)\nrescue Ruberto::Error =\u003e error\n  puts error.message # \"The pickup address is invalid\"\n  puts error.metadata # { \"pickup_address\": \"123 Fake Street, Nowhere\" }\n  puts error.status # 400\nend\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 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/unagisoftware/ruberto. 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/unagisoftware/ruberto/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 Ruberto project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/unagisoftware/ruberto/blob/master/CODE_OF_CONDUCT.md).\n\n## About Unagi\n\n\u003cimg width=\"208\" alt=\"isologotipo naranja cuadrado\" style=\"margin:auto\" src=\"https://github.com/user-attachments/assets/05750673-b2ba-473a-b8c6-c400a4403a4a\" /\u003e\n\nThis repo is maintained and funded by [Unagi](https://unagisoftware.com).\n\nDo you want to hire us? [Let's get in touch!](https://unagisoftware.com/#contact)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funagisoftware%2Fruberto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funagisoftware%2Fruberto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funagisoftware%2Fruberto/lists"}