medea 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/medea/jasondeferredquery.rb +8 -7
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.10
|
@@ -5,12 +5,12 @@ module Medea
|
|
5
5
|
attr_accessor :time_limit, :result_format, :type, :time_limit, :state, :contents, :filters
|
6
6
|
|
7
7
|
def initialize a_class, format=:search
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
self.type = a_class
|
9
|
+
self.filters = {:FILTER => {:HTTP_X_CLASS => a_class.name.to_s}, :VERSION0 => nil}
|
10
|
+
self.result_format = format
|
11
|
+
self.time_limit = 0
|
12
|
+
self.state = :prefetch
|
13
|
+
self.contents = []
|
14
14
|
end
|
15
15
|
|
16
16
|
#Here we're going to put the "query" interface
|
@@ -115,7 +115,8 @@ module Medea
|
|
115
115
|
#$1 is the class name, $2 is the key
|
116
116
|
item = type.new($2, :lazy)
|
117
117
|
if result[k].has_key? "CONTENT"
|
118
|
-
item.instance_variable_set(
|
118
|
+
item.instance_variable_set(:@__jason_data, result[k]["CONTENT"])
|
119
|
+
item.instance_variable_set(:@__jason_state, :stale)
|
119
120
|
end
|
120
121
|
self.contents << item
|
121
122
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: medea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 10
|
10
|
+
version: 0.2.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Jensen
|