exception-swallower 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/exception_swallower.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce80d91f3527e47402e2168d4aa8ba6086e91ec8a86d9499562292a210c02e9
|
4
|
+
data.tar.gz: d356b33d34dab3453111f6583b4bea86e6461b23bd7b34f6804e78b1849cd3e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 326aaf4804c148e65077e4ecd8f1d4ce16fa42920357f173a78c48978118c2b2f401d70847a8fadbc537acb7c8279815ad64f8e0e8785999d0ff8ced08a8ec5d
|
7
|
+
data.tar.gz: 44cd4acbb1648dc7cb612ebf1b98551a5f32ca42d49c5a4c9488eec46cbd12f1f03da3ca3c9a4991744fa9e320a9097919a7746d661a637b30be7b727e06bbcb
|
data/lib/exception_swallower.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
module ExceptionSwallower
|
2
|
-
extend ActiveSupport::Concern
|
3
2
|
|
4
|
-
|
3
|
+
def self.included(klass)
|
4
|
+
klass.extend(ClassMethods)
|
5
|
+
end
|
6
|
+
|
7
|
+
module ClassMethods
|
5
8
|
def swallow_exceptions(*exceptions)
|
6
9
|
self.singleton_class.instance_variable_set("@swallowed_exceptions", exceptions)
|
7
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception-swallower
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drew Goddyn
|
@@ -47,7 +47,7 @@ extensions: []
|
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
49
|
- lib/exception_swallower.rb
|
50
|
-
homepage:
|
50
|
+
homepage: https://github.com/Drew-Goddyn/exception_swallower
|
51
51
|
licenses:
|
52
52
|
- MIT
|
53
53
|
metadata: {}
|