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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b488ee0f5ae9ab59d99cdf4600dcd8068142f7af
4
- data.tar.gz: 16eb29a92fc99d51ac5bec8bfda47551ee70eb5e
3
+ metadata.gz: 29ae99a691ade2e90114703be9bc09dfccf220b4
4
+ data.tar.gz: 07dc30996fea81069a374862faf29989c843a06e
5
5
  SHA512:
6
- metadata.gz: 011da282c504e61de751a0ac51084fe71bca604ade85fc6fd432d7fd2cf87d2f13396766d78b1f80d54481b605bc490acf7d5a44d358d2721ce87b3058617078
7
- data.tar.gz: ed553954f0e7471ec4ad323d96e5db470e0c94db4545ecaf97f84c828ac2d4c8a257cfe8f54aa48e1f0f1b8ee3394e33c6649a046572c21f35efb4f6912d14e3
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/zYOXF.png)
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.**
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
16
16
  s.files = `git ls-files`.split($/)
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
18
  s.require_paths = ["lib"]
19
- s.extensions = ["ext/mkrf_conf.rb"]
20
19
 
21
20
  s.required_ruby_version = ">= 1.9.2"
22
21
 
@@ -134,11 +134,10 @@ module BetterErrors
134
134
  BetterErrors.editor = default_editor
135
135
  end
136
136
 
137
- if Gem::Dependency.new("binding_of_caller", "0.7.2").matching_specs.any?
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
- else
140
+ rescue LoadError => e
142
141
  BetterErrors.binding_of_caller_available = false
143
142
  end
144
143
 
@@ -1,3 +1,3 @@
1
1
  module BetterErrors
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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
@@ -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