fabrik 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 128e5fa1f485e41afa0d92c2c788695b034b91fa
4
- data.tar.gz: abb9712fdd16527795762b1237bc05078f75a971
3
+ metadata.gz: 9d7ddf5fe3d642feb9502e8de72c94eb004b3850
4
+ data.tar.gz: 0506d8ff80322b61bda20f830e7bb55ed25c49f9
5
5
  SHA512:
6
- metadata.gz: 1e92bd02555a20d05f792fed914829ac10a342abafd4878ccaacab0a7141d3b07f35b7aa2c84e9c84837b7fc9340d2852266935cb58369e740aac54750d06e04
7
- data.tar.gz: de15a22c2c5854a31a132723f36c9e2355c87f4193312b211dff79f6bfde4803c7d297dd425a00b764e04ba23afb488161a9a4afbcb178487f0f61ea07c9452a
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.methods(exclude: :mother),
75
- Lion.methods(exclude: :father)
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
@@ -1,3 +1,3 @@
1
1
  module Fabrik
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
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.1.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-08-20 00:00:00.000000000 Z
11
+ date: 2014-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec