inbox 0.14.0 → 0.14.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: b5c174c3fd4fd1cad46d27b002e1e881d3d374fd
4
- data.tar.gz: 12fb8ec8381a6e47de38aacbf844d58515741d3c
3
+ metadata.gz: a81833edd0efddcdf9fd227d4017791d54f78f48
4
+ data.tar.gz: 915a102e10c731a48f8134ea5e9cc50126211358
5
5
  SHA512:
6
- metadata.gz: 8f3cc95868344d89c6c3a79d6bde051f0a151f0422cf4ab8ed88d7e264a3732bf503457a686b5d6cf1fead0354b58b15fd139574c8299eccc89c407d930415db
7
- data.tar.gz: 30f95170b47ed231dd1254313cd3b56dc9dd29011e5f8ebeec0e07cb08c04c357ee946ce045cbb4d1cb2fb029868a40d0cb69b8daed38bb72dd4403996b8fe86
6
+ metadata.gz: f35dd2ac9080bc56bde73827cbd95476ec15308038980049f12e48e007fd4cca7ae37e468cba35033b3709d644f071b85d8a1eaa309f062ead9756f3f020d165
7
+ data.tar.gz: 3022b1309abf34e7d11dc589cfafb0b0ba6d4e1a087719451ebbc51f0e954a3c7851f4b88031c39e8c3ff926f268d07dbca90ad274bca1ccb88f0514512f0c0f
data/lib/inbox.rb CHANGED
@@ -80,7 +80,7 @@ module Inbox
80
80
  if ::RestClient.before_execution_procs.empty?
81
81
  ::RestClient.add_before_execution_proc do |req, params|
82
82
  req.add_field('X-Inbox-API-Wrapper', 'ruby')
83
- req['User-Agent'] = "Ruby SDK #{@version}"
83
+ req['User-Agent'] = "Ruby SDK #{@version} - #{RUBY_VERSION}"
84
84
  end
85
85
  end
86
86
  end
@@ -15,7 +15,7 @@ module Inbox
15
15
 
16
16
  def each
17
17
  offset = 0
18
- chunk_size = 1000
18
+ chunk_size = 100
19
19
  finished = false
20
20
  while (!finished) do
21
21
  results = get_model_collection(offset, chunk_size)
@@ -49,10 +49,10 @@ module Inbox
49
49
  collection
50
50
  end
51
51
 
52
- def range(offset = 0, limit = 1000)
52
+ def range(offset = 0, limit = 100)
53
53
  accumulated = []
54
54
  finished = false
55
- chunk_size = 1000
55
+ chunk_size = 100
56
56
 
57
57
  while (!finished && accumulated.length < limit) do
58
58
  results = get_model_collection(offset + accumulated.length, chunk_size)
@@ -123,7 +123,7 @@ module Inbox
123
123
  model
124
124
  end
125
125
 
126
- def get_model_collection(offset = 0, limit = 1000)
126
+ def get_model_collection(offset = 0, limit = 100)
127
127
  filters = @filters.clone
128
128
  filters[:offset] = offset
129
129
  filters[:limit] = limit
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Inbox
2
- VERSION = "0.14.0"
2
+ VERSION = "0.14.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Gotow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-04 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client