medea 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/medea/jasonobject.rb +2 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.20
|
data/lib/medea/jasonobject.rb
CHANGED
@@ -57,6 +57,8 @@ module Medea
|
|
57
57
|
#"flexihash" access interface
|
58
58
|
def []=(key, value)
|
59
59
|
@__jason_data ||= {}
|
60
|
+
@__jason_state = :dirty if jason_state == :stale
|
61
|
+
|
60
62
|
@__jason_data[key] = value
|
61
63
|
end
|
62
64
|
|
@@ -71,7 +73,6 @@ module Medea
|
|
71
73
|
load if @__jason_state == :ghost
|
72
74
|
field = name.to_s
|
73
75
|
if field =~ /(.*)=$/ # We're assigning
|
74
|
-
@__jason_state = :dirty if @__jason_state == :stale
|
75
76
|
self[$1] = args[0]
|
76
77
|
elsif field =~ /(.*)\?$/ # We're asking
|
77
78
|
(self[$1] ? true : false)
|