Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A gem for Rails to automatically search Google for exceptions raised in your Rails applications

License

NotificationsYou must be signed in to change notification settings

excid3/stack_rescue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 withbetter_errors either!

stack_rescue

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 yourconfig/environments/development.rb file:

# Get results from any websiteconfig.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

  • Usenumber_of_results option to request more pages of results atquery time
  • All around usability improvements
  • It would be nice to have these results print after the stacktrace

About

A gem for Rails to automatically search Google for exceptions raised in your Rails applications

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp