better_errors 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of better_errors might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/better_errors.gemspec +0 -1
- data/lib/better_errors.rb +2 -3
- data/lib/better_errors/version.rb +1 -1
- metadata +2 -4
- data/ext/mkrf_conf.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29ae99a691ade2e90114703be9bc09dfccf220b4
|
4
|
+
data.tar.gz: 07dc30996fea81069a374862faf29989c843a06e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aa2006d43787d6931c28baddd137fbeebeae07efac5aab3b9ed052e8c3ab3d610b15c196f7a69c109606c423f6b9e25b84b7975aeb2baec5fb0c484208f2723
|
7
|
+
data.tar.gz: f17296d9da8e87080839aabd3a1e113b6768885c3e2a4ed48dd3d73734d33c9c31b242fbfe0bfd475b350d1f99cccc2cd0efea08d9ee621db64b5f557c8645ea
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
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
|
-
![image](http://i.imgur.com/
|
5
|
+
![image](http://i.imgur.com/6zBGAAb.png)
|
6
6
|
|
7
7
|
## Features
|
8
8
|
|
@@ -21,6 +21,14 @@ group :development do
|
|
21
21
|
end
|
22
22
|
```
|
23
23
|
|
24
|
+
If you would like to use Better Errors' **advanced features** (REPL, local/instance variable inspection, pretty stack frame names), you need to add the [`binding_of_caller`](https://github.com/banister/binding_of_caller) gem by [@banisterfiend](http://twitter.com/banisterfiend) to your Gemfile:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem "binding_of_caller"
|
28
|
+
```
|
29
|
+
|
30
|
+
This is an optional dependency however, and Better Errors will work without it.
|
31
|
+
|
24
32
|
## Security
|
25
33
|
|
26
34
|
**NOTE:** It is *critical* you put better\_errors in the **development** section. **Do NOT run better_errors in production, or on Internet facing hosts.**
|
data/better_errors.gemspec
CHANGED
data/lib/better_errors.rb
CHANGED
@@ -134,11 +134,10 @@ module BetterErrors
|
|
134
134
|
BetterErrors.editor = default_editor
|
135
135
|
end
|
136
136
|
|
137
|
-
|
138
|
-
gem "binding_of_caller", "0.7.2"
|
137
|
+
begin
|
139
138
|
require "binding_of_caller"
|
140
139
|
BetterErrors.binding_of_caller_available = true
|
141
|
-
|
140
|
+
rescue LoadError => e
|
142
141
|
BetterErrors.binding_of_caller_available = false
|
143
142
|
end
|
144
143
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better_errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Somerville
|
@@ -44,8 +44,7 @@ description: Provides a better error page for Rails and other Rack apps. Include
|
|
44
44
|
email:
|
45
45
|
- charlie@charliesomerville.com
|
46
46
|
executables: []
|
47
|
-
extensions:
|
48
|
-
- ext/mkrf_conf.rb
|
47
|
+
extensions: []
|
49
48
|
extra_rdoc_files: []
|
50
49
|
files:
|
51
50
|
- .gitignore
|
@@ -56,7 +55,6 @@ files:
|
|
56
55
|
- README.md
|
57
56
|
- Rakefile
|
58
57
|
- better_errors.gemspec
|
59
|
-
- ext/mkrf_conf.rb
|
60
58
|
- lib/better_errors.rb
|
61
59
|
- lib/better_errors/code_formatter.rb
|
62
60
|
- lib/better_errors/code_formatter/html.rb
|
data/ext/mkrf_conf.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'rubygems/dependency_installer'
|
2
|
-
|
3
|
-
gem = Gem::DependencyInstaller.new
|
4
|
-
|
5
|
-
if ["rbx", "ruby"].include?(RUBY_ENGINE)
|
6
|
-
# This MUST match the version specified in lib/better_errors.rb, or else
|
7
|
-
# weird shit will happen.
|
8
|
-
if Gem::Dependency.new("binding_of_caller", "0.7.2").matching_specs.empty?
|
9
|
-
gem.install "binding_of_caller", "0.7.2"
|
10
|
-
end
|
11
|
-
end
|