eac_ruby_utils 0.64.0 → 0.65.0
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/eac_ruby_utils/version.rb +1 -1
- metadata +2 -3
- data/lib/eac_ruby_utils/contextualizable.rb +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 823da035ba7b8dc287824ac361ede6806dc17dd19aeb1ae2cd4626f3d1883231
|
|
4
|
+
data.tar.gz: 44ad34e935574af466a3a3b9eb72859074f58b43759c2355423f7162bab9df66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a98249defe02854ceb5b865b6ed1c63cb78cf93ec2e70340428dc0a7ebc5f864fddd30f57108b7892959a3bbc9ab9a00c574c73d2e827e59d105f927347df2d0
|
|
7
|
+
data.tar.gz: 414b7753c72ea221e05a9b41f2563fe5c01c82025658aae6ca13bd705c791a7c78400c45e0663c7118b24d8007fcd7164c9ad88864a45767f472fa52e31ba99d
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eac_ruby_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.65.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Esquilo Azul Company
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-06-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -100,7 +100,6 @@ files:
|
|
|
100
100
|
- lib/eac_ruby_utils/common_constructor/class_initialize.rb
|
|
101
101
|
- lib/eac_ruby_utils/common_constructor/instance_initialize.rb
|
|
102
102
|
- lib/eac_ruby_utils/common_constructor/super_args.rb
|
|
103
|
-
- lib/eac_ruby_utils/contextualizable.rb
|
|
104
103
|
- lib/eac_ruby_utils/core_ext.rb
|
|
105
104
|
- lib/eac_ruby_utils/custom_format.rb
|
|
106
105
|
- lib/eac_ruby_utils/envs.rb
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module EacRubyUtils
|
|
4
|
-
# Provides the method context which search and call a method in self and ancestor objects.
|
|
5
|
-
module Contextualizable
|
|
6
|
-
def context(method)
|
|
7
|
-
current = self
|
|
8
|
-
while current
|
|
9
|
-
return current.send(method) if current.respond_to?(method)
|
|
10
|
-
|
|
11
|
-
current = current.respond_to?(:parent) ? current.parent : nil
|
|
12
|
-
end
|
|
13
|
-
raise "Context method \"#{method}\" not found for #{self.class}"
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|