evt-dependency 2.0.0.0 → 2.2.0.0

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: 33b996159d30d367055128e84bbeaa1d3a1926b92dbe4c5658097ad4fd5c4067
4
- data.tar.gz: c3e42820f5f993303bd854d7492b8f2c948dd56a0740749beb321fd4f04a78d4
3
+ metadata.gz: 919ca87d5147a33f9c93f1b92f106be0dcbd65e0b24039ba07932c7a2cc90f84
4
+ data.tar.gz: cb4952bc38f41022270a11bd4daa992bdb011889ae1d2c587d0abe20c47299d0
5
5
  SHA512:
6
- metadata.gz: '0396149be514fd9b9e7af980ac43ffe2edd8d9940460320d3111e2fd0d919b15e2150c00cc1cef28ad12252043d99dbc0262b5a134fb0ec47cf964cfb647f2fd'
7
- data.tar.gz: 0b7ad5defaa1ff1eaf1ff8501a5fb9148ab73a17f0fa5537ed6d1e89a7a1d0e447440f9604c6653dbfe3b5426efd4b7a9924fe3d167c2fe560e28416abbc9029
6
+ metadata.gz: ce000fdf6648744af44f634be14a35bde56f770aae9f1bb91f7baee31ec052cc869ba15c349aa65468614843ea00a1344d7f31524db1873f4bec437fc8763294
7
+ data.tar.gz: 44755e45c9840282794256bb3ff2acaa7c4b8e5859be9ce1306055e576ed993ea98ea8fa76d0c75b2198863dbb52c803eeb7d286b529c8925a85e1de987dc361
@@ -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 :some_attr, Dependency::Example
6
+ dependency :null_object_substitute_attr
7
7
 
8
- dependency :weak_attr
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|
@@ -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.0.0.0
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: 2019-12-10 00:00:00.000000000 Z
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.0.1
78
- signing_key:
77
+ rubygems_version: 3.4.6
78
+ signing_key:
79
79
  specification_version: 4
80
- summary: Declare dependencies that have null object or substitute default values
80
+ summary: Declare dependency attributes that have default implementations that are
81
+ diagnostic substitutes or null objects
81
82
  test_files: []