shopify_unlimited 0.0.15.threadsafe → 0.0.16.threadsafe

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Njc4NjgzNmIxMjBiMDk3MjI2NWJkYmY2ZjZkN2FiYzY2NWQ0ZDMwZQ==
4
+ ZjE1N2RjYWE2NTk0OTZmNzA1NmZmMzE3NTFjYTM4MzE3YjFkN2RiMg==
5
5
  data.tar.gz: !binary |-
6
- ODllNjY5ZTFhNTJmZmU1NWU2NWMxZDQ2MzFmZTkzMTk2YWZkMTllMQ==
6
+ MGE0N2VhMTcxYjIwZTRkMDZlMzA0Nzk0NWI1Yzk2MzFlMTgzY2UxMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MDEyOWEwODYzOTkzNDNmYjg4YTM1OTQ1ZjhhZDY0MjEzMTIxYWQ1MzIyNWQw
10
- MmM1M2Y3MDE5MjFhYmZhOTg2ZTBiOTZlZTY2Y2EzMjcxYzc4YzkyOGQ5YWU3
11
- OTQ0YzAyMDBhZDAzNzliZWIxNjM4YjA3NmU4N2NlNGI2NjZkN2Q=
9
+ OWFkYzVhMmNhODAxYjA4OGFiNDExM2NjOTIyMjQxNTk2MDdiMjg0NWQwNThh
10
+ MjUwZjIyZmYzOTMwZTRmNGYxZGNjN2I5MWE5MGZlOGI5Yzk0MGRhM2NkYzMx
11
+ NWJhYTY0ZjU0NTQ3OGZhMmY1YTkyNTY3NWYwMmEwNThmNTNjMGE=
12
12
  data.tar.gz: !binary |-
13
- YzgzZTU1NWE0ODMxNDcwY2YxYzA2OWVkMjNkZGQ0OGViZWQ2ODgwYWFlOWQ5
14
- YTRkZDI2MTY1MjI0ZWI4M2RiYzgyMjhhYmI0OTdmYTIxMjJmNmY1N2JkYmJl
15
- ZTVjM2NjYWZmYjRjZDFmYmJhMmQyN2RkYzhiODIyYWFlYTdjNjk=
13
+ OTJlMTNmN2YyYWM0OGIyMjg1MDNjYzVhMThhMWNhZGE3YjZiNGExNDUzMjc4
14
+ OTc1NWUwZmRkOTY2NTI3ODU1NjVmNTQzNzlmZTc4YTY2MjM1MDY2YTgwMjhi
15
+ ZGY5YWYwZjQ0NDM2MGNlZjliZjJkZWRiOTYxZWY5ZWE5YTEzZTI=
@@ -42,13 +42,15 @@ module ActiveResource
42
42
  last_count = results.count
43
43
  options[:params][:page] = page
44
44
  ShopifyAPI::Shop.current.throttle.run do
45
- results.concat find_every.bind(self).call(options)
45
+ next_result = find_every.bind(self).call(options)
46
+ results.concat next_result unless next_result.nil?
46
47
  end
47
48
  results.requests_made += 1
48
49
  end
49
50
  else
50
51
  ShopifyAPI::Shop.current.throttle.run do
51
- results.concat find_every.bind(self).call(options)
52
+ next_result = find_every.bind(self).call(options)
53
+ results.concat next_result unless next_result.nil?
52
54
  end
53
55
  results.requests_made += 1
54
56
  end
@@ -12,6 +12,7 @@
12
12
  # for a large enough block of requests.
13
13
 
14
14
  module ShopifyAPI
15
+
15
16
  class Shop
16
17
  def throttle
17
18
  @throttle ||= Throttle.new
@@ -1,3 +1,3 @@
1
1
  module ShopifyUnlimited
2
- VERSION = "0.0.15.threadsafe"
2
+ VERSION = "0.0.16.threadsafe"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_unlimited
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15.threadsafe
4
+ version: 0.0.16.threadsafe
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Johnston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-19 00:00:00.000000000 Z
11
+ date: 2014-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource