medea 0.2.19 → 0.2.20
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/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)
|