fabrik 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/fabrik/trait.rb +2 -1
- data/lib/fabrik/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d7ddf5fe3d642feb9502e8de72c94eb004b3850
|
4
|
+
data.tar.gz: 0506d8ff80322b61bda20f830e7bb55ed25c49f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32be03c546e69bbbf137f92ca6e65b9dcae6995d13f403e980f6fa26f3c2130f8a78f9f0716c7c5c8836abaacc88dd05008d0cdd89bf656031103eae90a71f01
|
7
|
+
data.tar.gz: e5e2600754da4d5f9fa9fbc239cd647afdf0638033a88c0db0f2fa82fa7bc3f1679c3f046978fb3186946f6d6bf8b414b6e9d87ebe00203e8c009dcf82954481
|
data/README.md
CHANGED
@@ -71,8 +71,8 @@ composition, or by overriding in the composing class.
|
|
71
71
|
class Tigon
|
72
72
|
extend Fabrik::Composer
|
73
73
|
compose Panthera,
|
74
|
-
Tiger
|
75
|
-
Lion
|
74
|
+
Tiger[exclude: :mother],
|
75
|
+
Lion[exclude: :father]
|
76
76
|
end
|
77
77
|
```
|
78
78
|
|
data/lib/fabrik/trait.rb
CHANGED
@@ -13,6 +13,7 @@ module Fabrik
|
|
13
13
|
provides_from(own, *own.instance_methods)
|
14
14
|
dictionary.method_map(opts)
|
15
15
|
end
|
16
|
+
alias :[] :methods
|
16
17
|
|
17
18
|
def provides(&own_definition)
|
18
19
|
own.module_eval(&own_definition)
|
@@ -31,6 +32,6 @@ module Fabrik
|
|
31
32
|
def dictionary
|
32
33
|
@dictionary ||= Dictionary.new
|
33
34
|
end
|
34
|
-
|
35
|
+
|
35
36
|
end
|
36
37
|
end
|
data/lib/fabrik/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fabrik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Corcoran
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|