restforce 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of restforce might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c403eba7f18c6b948a3efd36e10fa5d9d32d7b0
4
- data.tar.gz: 8b65cbc66fab141e3b80dc5aa7a561fd583e3dae
3
+ metadata.gz: 85b66c52befacd436944640621d9834ba8437936
4
+ data.tar.gz: f64960b6e5498618a837d900d1b21ae90621b397
5
5
  SHA512:
6
- metadata.gz: 2252d15e77664a25aa8dede023c08a0eb5501e452689f5b9b1a1a8df07be4ea5077fc9b51a98f54b9295c6c7e7e634850c40fee2990d9447142aeb5e103d5bd4
7
- data.tar.gz: 5d9e4e5b839a385e0c4415c967e9651182845a7346084eaecdfe6c1513a2ace312b90a505560e18fc9fa2cb9dab010e3606e648be37c6c04cdb46e0f7abfdb88
6
+ metadata.gz: 4d28877615344a8a0c36112d564826b8ecdacc20aad84c4e2f4b8195cdd696bd1317eaa838d3eed87fbfc99d0dceb6efab0d4416c8f410dbc918a594bbfe0af8
7
+ data.tar.gz: 7fcf33ec632e6314f411e2dd4d406f2d3d1c7b98923a0d81d0387efd2a5e7d65fbb132f9c47d28b057fa334d05501876c5198424312e145d9784421311b24564
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.5.2 (Apr 29, 2015)
2
+
3
+ * Better autopagination performance #141 @th7
4
+
1
5
  ## 1.5.1 (Nov 27, 2014)
2
6
 
3
7
  * Looser restrictions on hashie gem #123 @zenchild
@@ -13,9 +13,14 @@ module Restforce
13
13
  def each
14
14
  @raw_page['records'].each { |record| yield Restforce::Mash.build(record, @client) }
15
15
 
16
- next_page.each { |record| yield record } if has_next_page?
16
+ np = next_page
17
+ while np
18
+ np.current_page.each { |record| yield record }
19
+ np = np.next_page
20
+ end
17
21
  end
18
22
 
23
+
19
24
  # Return the size of the Collection without making any additional requests.
20
25
  def size
21
26
  @raw_page['totalSize']
@@ -39,7 +44,7 @@ module Restforce
39
44
 
40
45
  # Returns the next page as a Restforce::Collection if it's available, nil otherwise.
41
46
  def next_page
42
- @next_page ||= @client.get(@raw_page['nextRecordsUrl']).body if has_next_page?
47
+ @client.get(@raw_page['nextRecordsUrl']).body if has_next_page?
43
48
  end
44
49
  end
45
50
  end
@@ -1,3 +1,3 @@
1
1
  module Restforce
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.2'
3
3
  end
metadata CHANGED
@@ -1,137 +1,137 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric J. Holmes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-28 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.9.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.8.8
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.8.8
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.7.5
48
- - - <
48
+ - - "<"
49
49
  - !ruby/object:Gem::Version
50
50
  version: 1.9.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - '>='
55
+ - - ">="
56
56
  - !ruby/object:Gem::Version
57
57
  version: 1.7.5
58
- - - <
58
+ - - "<"
59
59
  - !ruby/object:Gem::Version
60
60
  version: 1.9.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: hashie
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - '>='
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: 1.2.0
68
- - - <
68
+ - - "<"
69
69
  - !ruby/object:Gem::Version
70
70
  version: '4.0'
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: 1.2.0
78
- - - <
78
+ - - "<"
79
79
  - !ruby/object:Gem::Version
80
80
  version: '4.0'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: rspec
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ~>
85
+ - - "~>"
86
86
  - !ruby/object:Gem::Version
87
87
  version: 2.14.0
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ~>
92
+ - - "~>"
93
93
  - !ruby/object:Gem::Version
94
94
  version: 2.14.0
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: webmock
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - ~>
99
+ - - "~>"
100
100
  - !ruby/object:Gem::Version
101
101
  version: 1.13.0
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ~>
106
+ - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: 1.13.0
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: simplecov
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - ~>
113
+ - - "~>"
114
114
  - !ruby/object:Gem::Version
115
115
  version: 0.7.1
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
- - - ~>
120
+ - - "~>"
121
121
  - !ruby/object:Gem::Version
122
122
  version: 0.7.1
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: faye
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - '>='
127
+ - - ">="
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
- - - '>='
134
+ - - ">="
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  description: A lightweight ruby client for the Salesforce REST api.
@@ -141,8 +141,8 @@ executables: []
141
141
  extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
- - .gitignore
145
- - .travis.yml
144
+ - ".gitignore"
145
+ - ".travis.yml"
146
146
  - CHANGELOG.md
147
147
  - Gemfile
148
148
  - Gemfile.travis
@@ -262,17 +262,17 @@ require_paths:
262
262
  - lib
263
263
  required_ruby_version: !ruby/object:Gem::Requirement
264
264
  requirements:
265
- - - '>='
265
+ - - ">="
266
266
  - !ruby/object:Gem::Version
267
267
  version: '0'
268
268
  required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  requirements:
270
- - - '>='
270
+ - - ">="
271
271
  - !ruby/object:Gem::Version
272
272
  version: '0'
273
273
  requirements: []
274
274
  rubyforge_project:
275
- rubygems_version: 2.0.14
275
+ rubygems_version: 2.2.2
276
276
  signing_key:
277
277
  specification_version: 4
278
278
  summary: A lightweight ruby client for the Salesforce REST api.