evt-dependency 2.0.0.0 → 2.2.0.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/dependency/attribute.rb +2 -2
- data/lib/dependency/controls/example.rb +6 -2
- data/lib/dependency/macro.rb +2 -2
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 919ca87d5147a33f9c93f1b92f106be0dcbd65e0b24039ba07932c7a2cc90f84
|
4
|
+
data.tar.gz: cb4952bc38f41022270a11bd4daa992bdb011889ae1d2c587d0abe20c47299d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce000fdf6648744af44f634be14a35bde56f770aae9f1bb91f7baee31ec052cc869ba15c349aa65468614843ea00a1344d7f31524db1873f4bec437fc8763294
|
7
|
+
data.tar.gz: 44755e45c9840282794256bb3ff2acaa7c4b8e5859be9ce1306055e576ed993ea98ea8fa76d0c75b2198863dbb52c803eeb7d286b529c8925a85e1de987dc361
|
data/lib/dependency/attribute.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Dependency
|
2
2
|
module Attribute
|
3
|
-
def self.define(receiver, attr_name, interface=nil)
|
4
|
-
SubstAttr::Attribute.define(receiver, attr_name, interface)
|
3
|
+
def self.define(receiver, attr_name, interface=nil, record=nil)
|
4
|
+
SubstAttr::Attribute.define(receiver, attr_name, interface, record)
|
5
5
|
end
|
6
6
|
end
|
7
7
|
end
|
@@ -3,9 +3,13 @@ module Dependency
|
|
3
3
|
class Example
|
4
4
|
include ::Dependency
|
5
5
|
|
6
|
-
dependency :
|
6
|
+
dependency :null_object_substitute_attr
|
7
7
|
|
8
|
-
dependency :
|
8
|
+
dependency :mimic_substitute_attr, Dependency::NoSubstituteModule::Example
|
9
|
+
dependency :no_recorder_mimic_substitute_attr, Dependency::NoSubstituteModule::Example, record: false
|
10
|
+
dependency :mixed_in_mimic_substitute_attr, Dependency::MixinSubstitute::Example
|
11
|
+
|
12
|
+
dependency :constructed_substitute_attr, Dependency::Example
|
9
13
|
|
10
14
|
def self.build
|
11
15
|
new.tap do |instance|
|
data/lib/dependency/macro.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Dependency
|
2
2
|
module Macro
|
3
|
-
def dependency_macro(attr_name, interface=nil)
|
4
|
-
Attribute.define(self, attr_name, interface)
|
3
|
+
def dependency_macro(attr_name, interface=nil, record: nil)
|
4
|
+
Attribute.define(self, attr_name, interface, record)
|
5
5
|
end
|
6
6
|
alias :dependency :dependency_macro
|
7
7
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-dependency
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-subst_attr
|
@@ -59,7 +59,7 @@ homepage: https://github.com/eventide-project/dependency
|
|
59
59
|
licenses:
|
60
60
|
- MIT
|
61
61
|
metadata: {}
|
62
|
-
post_install_message:
|
62
|
+
post_install_message:
|
63
63
|
rdoc_options: []
|
64
64
|
require_paths:
|
65
65
|
- lib
|
@@ -74,8 +74,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
|
-
rubygems_version: 3.
|
78
|
-
signing_key:
|
77
|
+
rubygems_version: 3.4.6
|
78
|
+
signing_key:
|
79
79
|
specification_version: 4
|
80
|
-
summary: Declare
|
80
|
+
summary: Declare dependency attributes that have default implementations that are
|
81
|
+
diagnostic substitutes or null objects
|
81
82
|
test_files: []
|