Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/excid3/stack_rescue
A gem for Rails to automatically search Google for exceptions raised in your Rails applications
https://github.com/excid3/stack_rescue
exceptions-raised rails-application ruby
Last synced: 29 days ago
JSON representation
A gem for Rails to automatically search Google for exceptions raised in your Rails applications
- Host: GitHub
- URL: https://github.com/excid3/stack_rescue
- Owner: excid3
- License: mit
- Created: 2014-06-16T22:45:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T15:44:45.000Z (almost 5 years ago)
- Last Synced: 2024-11-20T14:50:48.107Z (about 1 month ago)
- Topics: exceptions-raised, rails-application, ruby
- Language: Ruby
- Homepage:
- Size: 5.86 KB
- Stars: 171
- Watchers: 7
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# StackRescue
A gem for Rails to automatically search Google for exceptions raised in your Rails applications.
After installing, you should see output like this in your Rails logs. This doesn't interfere with [better_errors](https://github.com/charliesome/better_errors) either!
![stack_rescue](http://cl.ly/W6d3/Screen%20Shot%202014-06-16%20at%205.19.24%20PM.png)
## Installation
Add this line to your application's Gemfile:
gem 'stack_rescue', group: :development
And then execute:
$ bundle
Or install it yourself as:
$ gem install stack_rescue
## Usage
By default, search results are limited to 5 results and only from stackoverflow.com.
If you need to modify either of these, add the following to your
`config/environments/development.rb` file:```ruby
# Get results from any website
config.stack_rescue.site = nil# Get results from only stackoverflow.com (default)
# config.stack_rescue.site = "stackoverflow.com"# Change the number of results returned
# config.stack_rescue.number_of_results = 3
```## Contributing
1. Fork it ( https://github.com/excid3/stack_rescue/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request## TODO
* Use `number_of_results` option to request more pages of results at
query time
* All around usability improvements
* It would be nice to have these results print after the stacktrace