{"id":21679276,"url":"https://github.com/hoppergee/rollbar_fake","last_synced_at":"2026-04-17T15:03:19.133Z","repository":{"id":130783062,"uuid":"131159392","full_name":"hoppergee/rollbar_fake","owner":"hoppergee","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-12T06:28:51.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-25T10:43:15.509Z","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/hoppergee.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2018-04-26T13:25:35.000Z","updated_at":"2020-03-13T02:22:31.000Z","dependencies_parsed_at":"2023-07-08T01:01:05.387Z","dependency_job_id":null,"html_url":"https://github.com/hoppergee/rollbar_fake","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoppergee%2Frollbar_fake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoppergee%2Frollbar_fake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoppergee%2Frollbar_fake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoppergee%2Frollbar_fake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoppergee","download_url":"https://codeload.github.com/hoppergee/rollbar_fake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244591485,"owners_count":20477710,"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-11-25T14:50:13.810Z","updated_at":"2026-04-17T15:03:19.040Z","avatar_url":"https://github.com/hoppergee.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ratchetio\n\nRuby gem for Ratchet.io, for reporting exceptions in Rails 3 to Ratchet.io. Requires a Ratchet.io account (you can sign up for free).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ratchetio'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ratchetio\n\nThen, creat a file config/nitializers/ratchetio.rb containing the following:\n\n```ruby\nrequire 'ratchetio/rails'\nRatchetio.configure do |config|\n    conifg.access_token = 'YOUR_RATCHETIO_PROJECT_ACCESS_TOKEN'\nend\n```\nOr, run the following command from your rails  root:\n\n```ruby\n$ rails generate ratchetio YOUR_RATCETIO_PROJECT_ACCESS_TOKEN\n```\n\nThat will create the file `config/initializers/ratchetio.rb`, which holds the configuration values (currently just your access token) and is all you need to use Ratchet.io with Rails.\n\nTo confirm that it worked, run:\n\n```ruby\n$ rake ratchetio:test\n```\n\nThis will raise an exception within a test request; if it works, you'll see a stacktrace in the console, and the exception will appear in the Ratchet.io dashboard.\n\n## Manually reporting exceptions and messages\n\nTo report a caught exception to Ratchet, simply call `Ratchetio.report_exception`:\n\n```ruby\nbegin\n  foo = bar\nrescue Exception =\u003e e\n  Ratchetio.report_exeption(e)\nend\n```\n\nIf you're reporting an exception in the context of a request and are in a controller, you can pass along the same request and person context as teh global exception handler, like so:\n\n```ruby\nbegin\n  foo = bar\nrescue Exception =\u003e e\n  Ratchetio.report_exception(e, ratchetio_request_data, ratchetio_person_data)\nend\n```\n\nYou can also log individual messages:\n\n```ruby\n# logs at the 'warning' level. all levels: debug, info ,warning, error, critical\nRatchetio.report_message(\"Unexpected input\", \"warning\")\n\n# default level is \"info\"\nRatchetio.report_message(\"Login successful\")\n\n# can also include additional data as a hash in the final param\nRatchetio.report_message(\"Login successful\", \"info\", :user =\u003e @user)\n```\n\n## Person tracking\n\nRatchet will send information about the current user (called a \"person\" in Ratchet parlance) along with each error report, when available. This works by trying the `current_user` and `current_member` controller methods. The return value should be an object with an `id` property and, optionally, `username` and `email` properties.\n\n```ruby\nalias_method :my_user_method, :current_user\nhelper_method :my_user_method\n```\n\n## Usage\n\nThis gem installs an exception handler into Rails. You don't need to do anything else for it to work.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ratchetio. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\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 Ratchetio project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ratchetio/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoppergee%2Frollbar_fake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoppergee%2Frollbar_fake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoppergee%2Frollbar_fake/lists"}