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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/medea/jasonobject.rb +2 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.19
1
+ 0.2.20
@@ -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)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 19
9
- version: 0.2.19
8
+ - 20
9
+ version: 0.2.20
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Jensen