volt 0.7.3 → 0.7.4
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/volt/models/persistors/array_store.rb +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66c91c0fc530f8c0bfe7ab8f309fdf5873a3d39
|
4
|
+
data.tar.gz: f9ed6aecc1e258b23cbe59e9d99ab64a54da72d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17882cc80fad10785f995d654f6f127eba2e11dffa5b19965785f50aa262cb2e3950d62fdfdcecfc86099ebc47e33a12937f3dd506845d4e60577ac1f8d3b414
|
7
|
+
data.tar.gz: 4821c56302f0b4e649162dba8e6f07e3a629d7b3ff43e9cc970bb3d37304460d29d846b649190a306d67b20ab282042ecb47f3334c6aff915f2dfccde95a89a7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.4
|
@@ -53,7 +53,7 @@ module Persistors
|
|
53
53
|
def load_data
|
54
54
|
# Don't load data from any queried
|
55
55
|
if @state == :not_loaded || @state == :dirty
|
56
|
-
puts "Load Data at #{@model.path.inspect} - query: #{@query.inspect}"# on #{@model.inspect}"
|
56
|
+
# puts "Load Data at #{@model.path.inspect} - query: #{@query.inspect}"# on #{@model.inspect}"
|
57
57
|
change_state_to :loading
|
58
58
|
|
59
59
|
@query_changed_listener.remove if @query_changed_listener
|
@@ -142,14 +142,10 @@ module Persistors
|
|
142
142
|
def remove(ids)
|
143
143
|
$loading_models = true
|
144
144
|
ids.each do |id|
|
145
|
-
puts "delete at: #{id} on #{@model.inspect}"
|
146
|
-
|
147
145
|
# TODO: optimize this delete so we don't need to loop
|
148
146
|
@model.each_with_index do |model, index|
|
149
|
-
puts "#{model._id.inspect} vs #{id.inspect} - #{index}"
|
150
147
|
if model._id == id
|
151
148
|
del = @model.delete_at(index)
|
152
|
-
puts "DELETED AT #{index}: #{del.inspect} - #{@model.inspect}"
|
153
149
|
break
|
154
150
|
end
|
155
151
|
end
|