slender_data 0.4.1 → 0.5.0
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: ee33cc4f9d5919b3ff1047221a190414a19069d2
|
4
|
+
data.tar.gz: a1a39aea719c62de60004c370a4ba7864cdf7e9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 540378e81d3795a257a90f8fc22ca6adc6225f6e9cf3daa8613ce818572ccdfa0d7fb38196d0db346dbafadcc1bcb0abd672bfa35afcf3272b0899d53edaf9c4
|
7
|
+
data.tar.gz: 9a07f6eca0c9672edfdb7a81ce66b22afcc602233ac80c9550e212ff98129578ba2577ddf36a7da51e5052e6922970467f112137398bd011f775f5df2d89786c
|
@@ -135,7 +135,7 @@ class slender_data.PersistenceManager
|
|
135
135
|
|
136
136
|
# Loads all objects from the server.
|
137
137
|
# Provides the given params as parameters to the GET request.
|
138
|
-
|
138
|
+
fetch_many: (data, success_callback, error_callback) ->
|
139
139
|
data.ids = data.ids.join(' ') if data.ids
|
140
140
|
jQuery.ajax
|
141
141
|
url: @collection_url()
|
@@ -198,7 +198,7 @@ class slender_data.PersistenceManager
|
|
198
198
|
success_callback(cached_entries)
|
199
199
|
else
|
200
200
|
# Entries missing --> load them from the server.
|
201
|
-
@
|
201
|
+
@fetch_many missing_ids, (server_snippets) ->
|
202
202
|
success_callback $.merge(cached_entries, server_snippets)
|
203
203
|
|
204
204
|
|
data/lib/slender_data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slender_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Goslar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|