active_object 5.8.1 → 5.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/active_object/kernel.rb +5 -2
- data/lib/active_object/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 840f98086dbb394f13934efae4330a6409a68e68a55819cd39eaad35c9993cde
|
4
|
+
data.tar.gz: a7270ef3ef54acdddf8bd389e7d233f28feeb9f605f2e5d5d6c5d48e41574289
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d1417667be46581665f7e6405b2fb3943382c67f6ef2c5b51e971c429527926c759d8e94fc032ef6929dc686dba482d56770436c0f5094a78748676dd19fb3c
|
7
|
+
data.tar.gz: 82171c8c45b7d58165202e5897daadac988e898c9e51cda748d500add27144b2870e189b44df9c00f6ac4b32860150fc9d6ab1eaab554ba6f7791134b13765de
|
data/README.md
CHANGED
data/lib/active_object/kernel.rb
CHANGED
@@ -24,8 +24,11 @@ if ActiveObject.configuration.autoload_kernel
|
|
24
24
|
private
|
25
25
|
|
26
26
|
# rubocop:disable Style/PerlBackrefs
|
27
|
-
def caller_name
|
28
|
-
|
27
|
+
def caller_name(depth = 0)
|
28
|
+
val = caller[depth][CALLER_METHOD_REGEX, 1]
|
29
|
+
return val if depth.zero? || !val.include?('<top (required)>')
|
30
|
+
|
31
|
+
caller[depth - 1][CALLER_METHOD_REGEX, 1]
|
29
32
|
end
|
30
33
|
# rubocop:enable Style/PerlBackrefs
|
31
34
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.8.
|
4
|
+
version: 5.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -169,8 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
|
-
|
173
|
-
rubygems_version: 2.7.8
|
172
|
+
rubygems_version: 3.0.0
|
174
173
|
signing_key:
|
175
174
|
specification_version: 4
|
176
175
|
summary: Gem for commonly used ruby object helpers.
|