praise 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -2
- data/README_FULL.md +6 -1
- data/lib/praise.rb +4 -0
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
1
|
+
# Praise
|
2
2
|
|
3
|
-
|
3
|
+
`pry + raise = praise`
|
4
|
+
|
5
|
+
A small gem intercepting all `#raise` calls spawning `pry` sessions to investigate. There is
|
6
|
+
runtime-editable config file to set ignore patterns for unwanted `#raise` calls. The gem is targeting
|
7
|
+
investigation of re-risen and masked-by-another exceptions.
|
4
8
|
|
5
9
|
- Documentation: <http://blog.pitr.ch/praise>
|
6
10
|
- Source: <https://github.com/pitr-ch/praise>
|
data/README_FULL.md
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
# Praise
|
2
2
|
|
3
|
-
|
3
|
+
`pry + raise = praise`
|
4
|
+
|
5
|
+
A small gem intercepting all `#raise` calls spawning `pry` sessions to investigate. There is
|
6
|
+
runtime-editable config file to set ignore patterns for unwanted `raise calls`. The gem is targeting
|
7
|
+
investigation of re-risen and masked-by-another exceptions.
|
4
8
|
|
5
9
|
- Documentation: <http://blog.pitr.ch/praise>
|
6
10
|
- Source: <https://github.com/pitr-ch/praise>
|
7
11
|
- Blog: <http://blog.pitr.ch/blog/categories/praise/>
|
8
12
|
|
13
|
+
|
9
14
|
## Difference between `prise` and `pry-rescue`
|
10
15
|
|
11
16
|
Praise allows a developer to investigate all exceptions including the ones rescued later.
|
data/lib/praise.rb
CHANGED
@@ -3,6 +3,10 @@ require 'pry-stack_explorer'
|
|
3
3
|
require 'yaml'
|
4
4
|
|
5
5
|
class PraiseImpl
|
6
|
+
def self.version
|
7
|
+
@version ||= Gem::Version.new File.read(File.join(File.dirname(__FILE__), '..', 'VERSION'))
|
8
|
+
end
|
9
|
+
|
6
10
|
attr_reader :enabled
|
7
11
|
|
8
12
|
# @param [Proc] outputter a proc which ouputs/logs messages
|