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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/exception_swallower.rb +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cd4e6cd72dd1758bb72e2a350178d6e3708cea78bc75a5072d81ea60c8c7ab5
4
- data.tar.gz: 2ea6d7df7c983d9c758aeba421e6d1a51028d757d452111adb8f3210bb4aec08
3
+ metadata.gz: 2ce80d91f3527e47402e2168d4aa8ba6086e91ec8a86d9499562292a210c02e9
4
+ data.tar.gz: d356b33d34dab3453111f6583b4bea86e6461b23bd7b34f6804e78b1849cd3e3
5
5
  SHA512:
6
- metadata.gz: fa5457208c7d510fe4af23afb7c7fac70212d23b3b071fc22e47e9608e97e9174f0031587e4adc43d49e3fb9091fbf3db9cc03a1ec34fcd7c67af2c10c08dde3
7
- data.tar.gz: e7c7e247ef555f5471cc0c5f26220a2c713ba9dfa7e0cdf4cbaf33d06ad5942e6e47c28dd57dfd4a999e3b1b77340191a0fb248245ace5b8a05f29b5e8762bbc
6
+ metadata.gz: 326aaf4804c148e65077e4ecd8f1d4ce16fa42920357f173a78c48978118c2b2f401d70847a8fadbc537acb7c8279815ad64f8e0e8785999d0ff8ced08a8ec5d
7
+ data.tar.gz: 44cd4acbb1648dc7cb612ebf1b98551a5f32ca42d49c5a4c9488eec46cbd12f1f03da3ca3c9a4991744fa9e320a9097919a7746d661a637b30be7b727e06bbcb
@@ -1,7 +1,10 @@
1
1
  module ExceptionSwallower
2
- extend ActiveSupport::Concern
3
2
 
4
- class_methods do
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.1
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: {}