better_errors 0.0.5 → 0.0.6

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.

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
  ![image](http://i.imgur.com/urVDW.png)
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
@@ -1,10 +1,10 @@
1
1
  module BetterErrors
2
2
  class Railtie < Rails::Railtie
3
3
  initializer "better_errors.configure_rails_initialization" do
4
- middleware = Rails.application.middleware
5
- middleware.use BetterErrors::Middleware
6
-
7
- BetterErrors.application_root = Rails.root.to_s
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
@@ -344,7 +344,7 @@
344
344
  } else {
345
345
  replPre.innerHTML += "=> " + escapeHTML(response.result) + "\n";
346
346
  }
347
- replPre.scrollTop = replPre.offsetHeight;
347
+ replPre.scrollTop = replPre.scrollHeight;
348
348
  });
349
349
  }
350
350
  };
@@ -1,3 +1,3 @@
1
1
  module BetterErrors
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
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: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: