characterizable 0.0.3 → 0.0.4
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.
- data/VERSION +1 -1
- data/lib/characterizable.rb +1 -0
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.4
|
data/lib/characterizable.rb
CHANGED
|
@@ -105,6 +105,7 @@ module Characterizable
|
|
|
105
105
|
include Blockenspiel::DSL
|
|
106
106
|
def has(name, options = {}, &block)
|
|
107
107
|
characteristics[name] = Characteristic.new(self, name, options, &block)
|
|
108
|
+
klass.define_attribute_methods if klass.respond_to? :define_attribute_methods
|
|
108
109
|
klass.module_eval(%{
|
|
109
110
|
def #{name}_with_expire_snapshot=(new_#{name})
|
|
110
111
|
expire_snapshot!
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 4
|
|
9
|
+
version: 0.0.4
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Andy Rossmeissl
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-05-
|
|
18
|
+
date: 2010-05-25 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|