evt-subst_attr 0.2.0.2 → 0.2.1.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: '09490c305ed1c8fb5129605dd68681219889f6cc2adabf7602d4c400fbc08db5'
4
- data.tar.gz: 288f795adcd467ea74d1d88a0bed7c04a0e5ec7f762d47ef1380f2f6a1d9af9e
3
+ metadata.gz: 3ffc766e24d4171bfee07bac19a865a65939ead030701f2d30b238935a78c97c
4
+ data.tar.gz: b2bcd749728eb5b3a954a0ed474744d1b8637d48e088dee2745c0bf98573616e
5
5
  SHA512:
6
- metadata.gz: e8ff34228702d37f7b94ed10e03976148a9d5c060f00edca5f94a7202cdda11940db760d375714786bfb33242d2fea603f7b19bf4f6273f9de29c0a879dcd0f9
7
- data.tar.gz: e0ed49fe9e84bfe818414c5a5dfeb0949b19656e483baa13dc8d240560991b507107d4326300bef1f507efdb315e941b5fe4a141993fa6fd737955ab396e0794
6
+ metadata.gz: 4ed489a24de3f76ee4cb3ef7d9859250144e722ff4a31070c78a63cab35ff1b42b2a9cb9c97a4a55115d004234d776f6f724f9e93744b09ab5a1b3ba8eccf8fa
7
+ data.tar.gz: 248404346cb6b57ac561ef713ff7857fc0e7b7ad7e6d6392cfe6ee60aa976a54db740d9cf7eac441720d2f05c46ce05280c4b14ecf3eeba1cc39265cea03d68d
@@ -7,3 +7,4 @@ require 'subst_attr/substitute'
7
7
  require 'subst_attr/attribute'
8
8
  require 'subst_attr/macro'
9
9
  require 'subst_attr/activate'
10
+ require 'subst_attr/subst_attr'
@@ -1,2 +1,4 @@
1
1
  require 'subst_attr/controls/dependency'
2
2
  require 'subst_attr/controls/example'
3
+ require 'subst_attr/controls/included'
4
+ require 'subst_attr/controls/extended'
@@ -1,7 +1,7 @@
1
1
  module SubstAttr
2
2
  module Controls
3
3
  class Example
4
- SubstAttr.activate(self)
4
+ include SubstAttr
5
5
 
6
6
  subst_attr :some_attr, Dependency::Example
7
7
 
@@ -15,7 +15,7 @@ module SubstAttr
15
15
 
16
16
  module Ancestry
17
17
  class Example
18
- SubstAttr.activate(self)
18
+ include SubstAttr
19
19
 
20
20
  subst_attr :some_attr, Dependency::Example::Descendant
21
21
  end
@@ -0,0 +1,11 @@
1
+ module SubstAttr
2
+ module Controls
3
+ module Extended
4
+ class Example
5
+ extend SubstAttr
6
+
7
+ subst_attr :some_attr
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ module SubstAttr
2
+ module Controls
3
+ module Included
4
+ Example = Controls::Example
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ module SubstAttr
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-subst_attr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.2
4
+ version: 0.2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-09 00:00:00.000000000 Z
11
+ date: 2018-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-attribute
@@ -78,7 +78,10 @@ files:
78
78
  - lib/subst_attr/controls.rb
79
79
  - lib/subst_attr/controls/dependency.rb
80
80
  - lib/subst_attr/controls/example.rb
81
+ - lib/subst_attr/controls/extended.rb
82
+ - lib/subst_attr/controls/included.rb
81
83
  - lib/subst_attr/macro.rb
84
+ - lib/subst_attr/subst_attr.rb
82
85
  - lib/subst_attr/substitute.rb
83
86
  homepage: https://github.com/eventide-project/subst-attr
84
87
  licenses: