clean-annotations 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f4b1010c1932dceaa3b47119e7355bd9429f191d64253b93b84a9738b8c42f5
4
- data.tar.gz: ff7586b5e7648680184aa2dac1f1b5161ac149baba75a7c39c8e210de18d8682
3
+ metadata.gz: 930155c6bdfa6a4d39269ed60b177e0ce909042209c056ecffbc9a13d615f724
4
+ data.tar.gz: 4608bfb3cb729bbf86e217ac3a9b7a6ee6aaa5f37578017dc0d7265eb7f55184
5
5
  SHA512:
6
- metadata.gz: 32cf18f49d2b60db203fc9327cabeedc63ba18d1b1b9b3ec64f4e41b4e64a45bee67810bf28f67cb22e706b5c8a5ee7d574f74059684963dc5d946e90b9e8352
7
- data.tar.gz: ccd044c4c5798c35e6bc1501bb4bf938a2f8dd4bca4797b63b8aaa1f4dfc865de3600012f311ea9b3ca20431b0939035dda6921e35085839bc22ffc4f9fb0c41
6
+ metadata.gz: e3e19d86a2d848f2bde397f637173f03b6e673c133dd87eb9aa4c7eb00479a9baad4779f23a018cdad31accdb341f7fcc6a5447cca31503b8cf521eff77c5f12
7
+ data.tar.gz: b9738c3572a09fe072e774629b329f28bcec6608eafdbed6d38d14f15407403ec864ae6ab1b7165d7a91e450b91d771cff2c5c714da54546942fcd7e8544ee79
data/.version CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -16,6 +16,7 @@ module RescueFromError
16
16
  begin
17
17
  yield
18
18
  rescue => error
19
+ # search for specific class
19
20
  for klass in self.class.ancestors
20
21
  key = [klass, error.class].join('-')
21
22
 
@@ -24,6 +25,7 @@ module RescueFromError
24
25
  end
25
26
  end
26
27
 
28
+ # search for :all
27
29
  for klass in self.class.ancestors
28
30
  key = [klass, :all].join('-')
29
31
 
@@ -31,6 +33,9 @@ module RescueFromError
31
33
  return instance_exec(error, &block)
32
34
  end
33
35
  end
36
+
37
+ # raise unless found
38
+ raise error
34
39
  end
35
40
  end
36
41
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clean-annotations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dino Reic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-08 00:00:00.000000000 Z
11
+ date: 2020-04-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Define annotatable attribute names and assign them to methods or classes,
14
14
  add callbacks to non-Rails classes. Void of dependencies.