better_errors 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of better_errors might be problematic. Click here for more details.
- data/README.md +13 -1
- data/lib/better_errors/rails.rb +4 -4
- data/lib/better_errors/templates/main.erb +1 -1
- data/lib/better_errors/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Better Errors
|
2
2
|
|
3
|
-
Better Errors replaces the standard Rails error page with a much better and more useful error page. It is also usable outside of Rails.
|
3
|
+
Better Errors replaces the standard Rails error page with a much better and more useful error page. It is also usable outside of Rails in any Rack app as Rack middleware.
|
4
4
|
|
5
5
|

|
6
6
|
|
@@ -47,6 +47,18 @@ get "/" do
|
|
47
47
|
end
|
48
48
|
```
|
49
49
|
|
50
|
+
## Compatibility
|
51
|
+
|
52
|
+
* **Supported**
|
53
|
+
* MRI 1.9.2, 1.9.3
|
54
|
+
* Rubinius (untested, should work)
|
55
|
+
* **Coming soon**
|
56
|
+
* MRI 2.0.0 - the official API for grabbing caller bindings is slated for MRI 2.0.0, but it has not been implemented yet
|
57
|
+
|
58
|
+
## Known issues
|
59
|
+
|
60
|
+
* Calling `yield` from the REPL segfaults MRI 1.9.x.
|
61
|
+
|
50
62
|
## Contributing
|
51
63
|
|
52
64
|
1. Fork it
|
data/lib/better_errors/rails.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
module BetterErrors
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
initializer "better_errors.configure_rails_initialization" do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
unless Rails.env.production?
|
5
|
+
Rails.application.middleware.use BetterErrors::Middleware
|
6
|
+
BetterErrors.application_root = Rails.root.to_s
|
7
|
+
end
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|