README.md in ownership-0.1.0 vs README.md in ownership-0.1.1

- old
+ new

@@ -1,8 +1,8 @@ # Ownership -Code ownership for your Rails app +Code ownership for Rails :tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource) ## Installation @@ -60,9 +60,32 @@ ``` ## Integrations There are a few built-in integrations with other gems. + +- [Honeybadger](#honeybadger) +- [Marginalia](#marginalia) +- [Rollbar](#rollbar) + +You can also add [custom integrations](#custom-integrations). + +### Honeybadger + +[Honeybadger](https://github.com/honeybadger-io/honeybadger-ruby) tracks exceptions. This integration makes it easy to send exceptions to different projects based on the owner. We recommend having a project for each team. + +```ruby +Ownership::Honeybadger.api_keys = { + logistics: "token1", + customers: "token2" +} +``` + +Also works with a proc + +```ruby +Ownership::Honeybadger.api_keys = -> (owner) { ENV["#{owner.to_s.upcase}_HONEYBADGER_API_KEY"] } +``` ### Marginalia [Marginalia](https://github.com/basecamp/marginalia) adds comments to ActiveRecord queries. If installed, the owner is added.