embark-journey 0.1.3 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ac4ef34c6325ea06821366e826642336cb034da
4
- data.tar.gz: ee74a230579f1b2255337666865eaa36c213c2b0
3
+ metadata.gz: bc0830971d20c67bd883e8c093a71f62e969aafc
4
+ data.tar.gz: 89858c74cf931301740860f1908f0b873fd58fc1
5
5
  SHA512:
6
- metadata.gz: aa2e19dda566ce02bd7bacd08896fb84485f4a4765dbc0eb25e31f5be66575fd647a14d35bda4c3be7e12244f2f940e7852c480f464d6981cc4aeff85642ca85
7
- data.tar.gz: 4f7f5faab4299bb09cb9643d991d95f8cf5ef3c79cf4f34a55ed53e9921e5c36a139602ad0f7fc8eda186de7ae564a8202e328a2ff1b5120950da58f4ce0fdfa
6
+ metadata.gz: 0ef62b307f2b1e366c47c91e6a534001d6c11c337cb7599324a7c378047cf1d3750bf65677517534f5f4066156ecfc74a43f510967260f40ad67954fbae434da
7
+ data.tar.gz: 4c3cad71bc5ca0c85fe11eb7a5f1c992b0855334f8326d3a30ff1b32a3f29b26db17360736981488be62397d735f4f2b7326344aaab89106fc075d43ac16ac1a
@@ -1,4 +1,7 @@
1
- v.0.1.3
1
+ v0.1.4
2
+ - Fixed a bug where `batch_where` wasnt using `count_multiple` (therefore breaking for nested queries)
3
+
4
+ v0.1.3
2
5
  - Added `batch_where` to account for massive queries timing out (e.g. 10k objects)
3
6
 
4
7
  v0.0.21
@@ -7,7 +7,7 @@ module Journey::Resource::BatchWhere
7
7
 
8
8
  def self.batch_where(clauses, batch_size=100)
9
9
 
10
- total_count = count(clauses)
10
+ total_count = count_multiple(clauses)
11
11
  query_count = (total_count / batch_size.to_f).ceil.to_i
12
12
 
13
13
  (0 ... query_count).to_a.map do |batch_index|
@@ -2,7 +2,7 @@ module Journey
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 3
5
+ TINY = 4
6
6
  PRE = nil
7
7
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embark-journey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Davey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-05 00:00:00.000000000 Z
11
+ date: 2015-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_attr