evt-dependency 0.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 80c4e3a5236863be15358fabc285b49f2a27554f
4
+ data.tar.gz: 49280703e554abde321e8cf92543dd73566afff3
5
+ SHA512:
6
+ metadata.gz: efbd7a2da9ef26270fc0811caeb813574600649932dc8d330fab50520dac2f5d6ae6c968b2630440301f3eca2996185d69e59f51ca08828d1517d7e62ded8db8
7
+ data.tar.gz: 8c118bc71fccd327b4be96e0837b8be517462a51ea235bfe9aa4558bee53a66f2dd01961db5e82557edcbc6f131828e29f6458103fdf4ede72cc99a31eb0a44d
data/lib/dependency.rb ADDED
@@ -0,0 +1,4 @@
1
+ require 'subst_attr'
2
+
3
+ require 'dependency/macro'
4
+ require 'dependency/activate'
@@ -0,0 +1,11 @@
1
+ module Dependency
2
+ def self.activate(target_class=nil)
3
+ target_class ||= Object
4
+
5
+ macro_module = Dependency::Macro
6
+
7
+ return if target_class.is_a? macro_module
8
+
9
+ target_class.extend(macro_module)
10
+ end
11
+ end
@@ -0,0 +1,8 @@
1
+ module Dependency
2
+ module Macro
3
+ def dependency_macro(attr_name, interface=nil)
4
+ SubstAttr::Attribute.define self, attr_name, interface
5
+ end
6
+ alias :dependency :dependency_macro
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: evt-dependency
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - The Eventide Project
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: evt-subst_attr
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ntl-test_bench
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: " "
42
+ email: opensource@eventide-project.org
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - lib/dependency.rb
48
+ - lib/dependency/activate.rb
49
+ - lib/dependency/macro.rb
50
+ homepage: https://github.com/eventide-project/dependency
51
+ licenses:
52
+ - MIT
53
+ metadata: {}
54
+ post_install_message:
55
+ rdoc_options: []
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 2.3.3
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ requirements: []
69
+ rubyforge_project:
70
+ rubygems_version: 2.5.2
71
+ signing_key:
72
+ specification_version: 4
73
+ summary: Declare dependencies that have null object or substitute default values
74
+ test_files: []