redtastic 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/redtastic/model.rb +11 -8
- data/lib/redtastic/version.rb +1 -1
- 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: 760a4755853fbe582ee3ed320662ae66d9321988
|
4
|
+
data.tar.gz: 119370f58d4aa68ba8c0baecf7d78a5c135ae76a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a80be7139570cb50051e678a8f23244676267b3b010e0113cdb7cbe8ba8a7930300e8916f8804b9bef4726b928d14eb4b9d4fda7f742ca04305f275bcc505d2b
|
7
|
+
data.tar.gz: 87f7e433c24c1ef6e37558fa0bfefe4a9d99bf9b521ea06eb7e3cf46181707319602d11e504b731793b36db976653a43237142c9e2d39b7be5024af06c97d7a0
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/redtastic/model.rb
CHANGED
@@ -52,9 +52,10 @@ module Redtastic
|
|
52
52
|
# Handle multiple ids
|
53
53
|
ids = param_to_array(params[:id])
|
54
54
|
|
55
|
+
temp_params = params.dup
|
55
56
|
ids.each do |id|
|
56
|
-
|
57
|
-
keys << key(
|
57
|
+
temp_params[:id] = id
|
58
|
+
keys << key(temp_params)
|
58
59
|
argv << index(id)
|
59
60
|
end
|
60
61
|
|
@@ -165,16 +166,17 @@ module Redtastic
|
|
165
166
|
# Handle multiple keys
|
166
167
|
ids = param_to_array(params[:id])
|
167
168
|
|
169
|
+
temp_params = params.dup
|
168
170
|
ids.each do |id|
|
169
|
-
|
171
|
+
temp_params[:id] = id
|
170
172
|
if params[:timestamp].present?
|
171
173
|
# This is for an update, so we want to build a key for each resolution that is applicable to the model
|
172
174
|
scoped_resolutions.each do |resolution|
|
173
|
-
keys << key(
|
175
|
+
keys << key(temp_params, resolution)
|
174
176
|
argv << index(id)
|
175
177
|
end
|
176
178
|
else
|
177
|
-
keys << key(
|
179
|
+
keys << key(temp_params)
|
178
180
|
argv << index(id)
|
179
181
|
end
|
180
182
|
end
|
@@ -197,13 +199,14 @@ module Redtastic
|
|
197
199
|
interval = @_resolution
|
198
200
|
end
|
199
201
|
|
202
|
+
temp_params = params.dup
|
200
203
|
current_date = start_date
|
201
204
|
while current_date <= end_date
|
202
|
-
|
205
|
+
temp_params[:timestamp] = current_date
|
203
206
|
dates << formatted_timestamp(current_date, interval)
|
204
207
|
ids.each do |id|
|
205
|
-
|
206
|
-
keys << key(
|
208
|
+
temp_params[:id] = id
|
209
|
+
keys << key(temp_params, interval)
|
207
210
|
argv << index(id)
|
208
211
|
end
|
209
212
|
current_date = current_date.advance(interval => +1)
|
data/lib/redtastic/version.rb
CHANGED