nylas 0.17.0 → 0.17.1

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: 48ec6f70dc6e37ea3a4d59aa91259f7930e6d4a2
4
- data.tar.gz: ffbf49839a6076ad36cc7723b8bcf3ba0b246596
3
+ metadata.gz: 44dd0f06de0c3d6e434c7ed708c0db4b69c22459
4
+ data.tar.gz: 9ba610dabb4c741d5fd079114542f2be0aa9f5d4
5
5
  SHA512:
6
- metadata.gz: abf3f677bea9bf62f9e062348a26948e40abf8fb09c20eb44fa001907346bab3ecfc2a50da0be59201ccf11a10b8af30906ee508ea2e666cfa932831a872dd40
7
- data.tar.gz: 20875e13b7c38eec6aac73cfd543a434f945bb1a8195849b2967beafc2b68dfb25454272705f17e8d3ba7f591af03b09b158623773cfa12641e9b6eda72b2dd8
6
+ metadata.gz: 193cac3ce7ee6914c90edd6a775a00512ee56c5a474186038a1438b7eae24c9a9170e0dd92ec6721552c303aa1e9df1aebbe1aeaba5285444f107e8293306d74
7
+ data.tar.gz: df4744b4552232afddb8c409430b8f40ee9b987c42e2b4f5e8c09d7b7fa0058a23e976d5e3ddc84d049f2a285f72bd0b22ea331d475775c47522987496d7a4db
@@ -63,6 +63,10 @@ module Inbox
63
63
  finished = false
64
64
  chunk_size = 100
65
65
 
66
+ if limit < chunk_size
67
+ chunk_size = limit
68
+ end
69
+
66
70
  while (!finished && accumulated.length < limit) do
67
71
  results = get_model_collection(offset + accumulated.length, chunk_size)
68
72
  accumulated = accumulated.concat(results)
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Inbox
2
- VERSION = "0.17.0"
2
+ VERSION = "0.17.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nylas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Gotow
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-25 00:00:00.000000000 Z
13
+ date: 2015-07-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client