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 +4 -4
- data/.version +1 -1
- data/lib/clean-annotations/rescue_from.rb +5 -0
- 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: 930155c6bdfa6a4d39269ed60b177e0ce909042209c056ecffbc9a13d615f724
|
4
|
+
data.tar.gz: 4608bfb3cb729bbf86e217ac3a9b7a6ee6aaa5f37578017dc0d7265eb7f55184
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e19d86a2d848f2bde397f637173f03b6e673c133dd87eb9aa4c7eb00479a9baad4779f23a018cdad31accdb341f7fcc6a5447cca31503b8cf521eff77c5f12
|
7
|
+
data.tar.gz: b9738c3572a09fe072e774629b329f28bcec6608eafdbed6d38d14f15407403ec864ae6ab1b7165d7a91e450b91d771cff2c5c714da54546942fcd7e8544ee79
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
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.
|
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-
|
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.
|