volt 0.7.16 → 0.7.17
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9239ba9984089cff5785b60306dc79864f71ff0e
|
4
|
+
data.tar.gz: cf68443c2f05b2e18bc0e73f984955bb1c54b9d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8efe0fb7ced6b42882aaf5ef287fdbb0517404892bbf9057c6beb2c3bb5fdb8dea330d308184313fc1e28f6b45d64c9c8550b3b040c09d9c8e357ff1dcfe3d0f
|
7
|
+
data.tar.gz: f79c94e9a44b00f04decbc9c8c8913146581ef7a3a3782f62f77db13a39f492cef35000f4982faee831cebc3003d23e9563ee8884d63db9e6d4070f252c8db45
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.17
|
@@ -7,6 +7,15 @@ class DataStore
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def query(collection, query)
|
10
|
+
puts "QUERY: #{collection} - #{query.inspect}"
|
11
|
+
|
12
|
+
query = query.dup
|
13
|
+
query.keys.each do |key|
|
14
|
+
if key =~ /_id$/
|
15
|
+
query[key] = BSON::ObjectId(query[key])
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
10
19
|
@@db[collection].find(query).to_a
|
11
20
|
end
|
12
21
|
end
|
@@ -53,7 +53,11 @@ class LiveQuery
|
|
53
53
|
|
54
54
|
# return the query results the first time a channel connects
|
55
55
|
def initial_data
|
56
|
-
@query_tracker.results.map.with_index
|
56
|
+
@query_tracker.results.map.with_index do |data, index|
|
57
|
+
data = data.dup
|
58
|
+
data['_id'] = data['_id'].to_s
|
59
|
+
[index, data]
|
60
|
+
end
|
57
61
|
end
|
58
62
|
|
59
63
|
def add_channel(channel)
|
@@ -105,8 +105,10 @@ class EachBinding < BaseBinding
|
|
105
105
|
@removed_listener.remove
|
106
106
|
@removed_listener = nil
|
107
107
|
|
108
|
-
@templates
|
109
|
-
|
108
|
+
if @templates
|
109
|
+
@templates.compact.each(&:remove)
|
110
|
+
@templates = nil
|
111
|
+
end
|
110
112
|
|
111
113
|
super
|
112
114
|
end
|
data/lib/volt/page/tasks.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: volt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Stout
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|