evt-dependency 0.1.2.0 → 2.1.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: 943ad57bf64493b75653c632e2f69eb7ef27643355b5ab3903e88a28a3ce0694
4
- data.tar.gz: cbfa2ca746797358feb617782d98ce8c1fec9481e1ea6cf604b46db2403c5ab9
3
+ metadata.gz: ff033acf6c67587536b9b5ba8749d5b3c8ccada620c81bd0bf20fbe96808e1e6
4
+ data.tar.gz: 6fe7875d5104e2b12539aeaa6a1d66f164018862b24de5eeeceaa75113b4c89a
5
5
  SHA512:
6
- metadata.gz: 47e6b826c583787f88ec8354ae54044be19c786d1efc5e0f703b3a56a7f3e12aa3f37bf706174f8363227f10f0bf4e335f798de1635c438f2ddc84df345ea909
7
- data.tar.gz: b933a73439903a79598d601f3af167d65c275e74480dd776c8874beeb2356f15e38e3bb45b40a965a631683438d042d9db615a4d9766451999c514dc7a729cc3
6
+ metadata.gz: d887296ed15c015110ba1ce301dfcbb14b01e80b0c3d441c1c19fbe2586e6cbd02ea32ee8c190ebb5b58a8103aa2315e99f08a0765d3ab7da9afa19be51dccf6
7
+ data.tar.gz: ea677fdf1c19b2ef1dc9ee0ba4255c7d992a76337f3abcaa4aefa39e372a4bd94d4c975eea15afd1ff829717860ecb6600ad8fd52c2d12384b487628bb72a4ee
data/lib/dependency.rb CHANGED
@@ -4,3 +4,4 @@ require 'dependency/macro'
4
4
  require 'dependency/activate'
5
5
  require 'dependency/attribute'
6
6
  require 'dependency/substitute'
7
+ require 'dependency/dependency'
@@ -1,4 +1,8 @@
1
1
  require 'subst_attr/controls'
2
2
 
3
3
  require 'dependency/controls/dependency'
4
+
4
5
  require 'dependency/controls/example'
6
+
7
+ require 'dependency/controls/included'
8
+ require 'dependency/controls/extended'
@@ -1,11 +1,13 @@
1
1
  module Dependency
2
2
  module Controls
3
3
  class Example
4
- ::Dependency.activate(self)
4
+ include ::Dependency
5
5
 
6
- dependency :some_attr, Dependency::Example
6
+ dependency :specialized_substitute_attr, Dependency::Example
7
7
 
8
- dependency :weak_attr
8
+ dependency :strict_substitute_attr, Dependency::NoSubstitute::Example
9
+
10
+ dependency :weak_substitute_attr
9
11
 
10
12
  def self.build
11
13
  new.tap do |instance|
@@ -0,0 +1,11 @@
1
+ module Dependency
2
+ module Controls
3
+ module Extended
4
+ class Example
5
+ extend ::Dependency
6
+
7
+ dependency :some_attr, Dependency::Example
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ module Dependency
2
+ module Controls
3
+ module Included
4
+ Example = Example
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ module Dependency
2
+ def self.included(cls)
3
+ cls.class_exec do
4
+ extend Macro
5
+ end
6
+ end
7
+
8
+ def self.extended(cls)
9
+ cls.class_exec do
10
+ extend Macro
11
+ end
12
+ end
13
+ 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: 0.1.2.0
4
+ version: 2.1.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: 2018-10-09 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-subst_attr
@@ -50,13 +50,16 @@ files:
50
50
  - lib/dependency/controls.rb
51
51
  - lib/dependency/controls/dependency.rb
52
52
  - lib/dependency/controls/example.rb
53
+ - lib/dependency/controls/extended.rb
54
+ - lib/dependency/controls/included.rb
55
+ - lib/dependency/dependency.rb
53
56
  - lib/dependency/macro.rb
54
57
  - lib/dependency/substitute.rb
55
58
  homepage: https://github.com/eventide-project/dependency
56
59
  licenses:
57
60
  - MIT
58
61
  metadata: {}
59
- post_install_message:
62
+ post_install_message:
60
63
  rdoc_options: []
61
64
  require_paths:
62
65
  - lib
@@ -71,9 +74,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
74
  - !ruby/object:Gem::Version
72
75
  version: '0'
73
76
  requirements: []
74
- rubyforge_project:
75
- rubygems_version: 2.7.6
76
- signing_key:
77
+ rubygems_version: 3.2.15
78
+ signing_key:
77
79
  specification_version: 4
78
80
  summary: Declare dependencies that have null object or substitute default values
79
81
  test_files: []