better_errors 0.9.0 → 1.0.0.rc1

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/CONTRIBUTING.md DELETED
@@ -1,9 +0,0 @@
1
- # Contributing to Better Errors
2
-
3
- Please make sure to follow these guidelines when contributing code to Better Errors. They will improve the chances of your pull request being merged and they will make my life easier.
4
-
5
- * If you are contributing a large-ish change, please split your changes up into small, logical commits. This is so I have the option of merging in some but not all of your commits. If you just give me one huge commit and there are things that I don't want to merge in, I won't.
6
-
7
- * Whitespace at the end of lines of code is not OK, but empty lines with indentation is fine. Please do not remove these when sending in changes.
8
-
9
- * Don't change things that are unrelated to your main changes unnecessarily. Send another pull request for these changes - don't try to sneak them in.
data/TIPS_AND_TRICKS.md DELETED
@@ -1,39 +0,0 @@
1
- # Tips and Tricks
2
-
3
- Below are a collection of handy tips and tricks submitted by users to help you get the most out of Better Errors.
4
-
5
- If you know something you think would be valuable to share, please do! Pull requests are always appreciated.
6
-
7
- ### View last error
8
-
9
- Better Errors saves the most recent error page displayed at `/__better_errors`.
10
-
11
- This can be handy if you aren't able to see the error page served up when the exception occurred, eg. if the errored request was an AJAX or curl request.
12
-
13
- ### Adjusting the project base path for the editor link
14
-
15
- If your Rails app is running from a shared folder in a VM, the path to your source files from Rails' perspective could be different to the path seen by your editor.
16
-
17
- You can adjust the path used to generate open-in-editor links by putting this snippet of code in an initializer:
18
-
19
- ```ruby
20
- if defined? BetterErrors
21
- BetterErrors.editor = proc { |full_path, line|
22
- full_path = full_path.sub(Rails.root.to_s, your_local_path)
23
- "my-editor://open?url=file://#{full_path}&line=#{line}"
24
- }
25
- end
26
- ```
27
-
28
- If you're working on a project with other developers, your base path may be not be the same as the other developers'.
29
-
30
- You can use an environment variable to work around this by replacing `your_local_path` in the snippet above with `ENV["BETTER_ERRORS_PROJECT_PATH"]` and starting your Rails server like this:
31
-
32
- ```shell
33
- $ BETTER_ERRORS_PROJECT_PATH=/path/to/your/app rails server
34
- ```
35
-
36
- ### Opening files in RubyMine
37
-
38
- Users of RubyMine on OS X can follow the instructions provided at http://devnet.jetbrains.com/message/5477503 to configure Better Errors to open files in RubyMine.
39
-