restforce-db 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restforce/db.rb +1 -0
- data/lib/restforce/db/synchronization_error.rb +7 -1
- data/lib/restforce/db/version.rb +1 -1
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_updated_internally_/when_our_client_made_the_last_change/returns_true.yml +108 -32
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_changes_are_current/updates_the_salesforce_record.yml +125 -49
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 101dbf60ce313b7325e3713435eb75b2cbcefdea
|
4
|
+
data.tar.gz: ae166d81a7584b57b12f5af4c5068f0440122f96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bbf27fb680e0ea7eeec3d93c462da66559d1b49f256487c9b01e51cf0579d7738872e6adfdb070ede3035e67774fadd254b9170a26efd3684a2b492cc551810
|
7
|
+
data.tar.gz: 1344c43c3cf944623b341cc29c37b0a6dab30b723786e1d7b1f6f4a4d6d113cd6fd74acda2efc6ee905289b3643a6f5188ce02118001911d03870885b2bfa6e6
|
data/lib/restforce/db.rb
CHANGED
@@ -30,7 +30,13 @@ module Restforce
|
|
30
30
|
#
|
31
31
|
# Returns a String.
|
32
32
|
def message
|
33
|
-
|
33
|
+
debug_info = [
|
34
|
+
@instance.mapping.database_model,
|
35
|
+
@instance.mapping.salesforce_model,
|
36
|
+
@instance.id,
|
37
|
+
]
|
38
|
+
|
39
|
+
"[#{debug_info.join('|')}] #{base_exception.message}"
|
34
40
|
end
|
35
41
|
|
36
42
|
end
|
data/lib/restforce/db/version.rb
CHANGED
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Tue, 09 Jun 2015 22:06:08 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=5EoMhmetSPee6_2CppO_Uw;Path=/;Domain=.salesforce.com;Expires=Sat,
|
27
|
+
08-Aug-2015 22:06:08 GMT
|
28
28
|
Expires:
|
29
29
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
30
|
Pragma:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
- chunked
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
|
-
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"
|
41
|
-
http_version:
|
42
|
-
recorded_at:
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433887569106","token_type":"Bearer","instance_url":"https://<host>","signature":"FXsFwxwntQi1pI74vzwOOYylDUIWOo+LkgnVGiwmB6I=","access_token":"00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx"}'
|
41
|
+
http_version:
|
42
|
+
recorded_at: Tue, 09 Jun 2015 22:06:09 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,28 +63,28 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Tue, 09 Jun 2015 22:06:10 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=EbzIz8ytRuSp_DsYVZcE7Q;Path=/;Domain=.salesforce.com;Expires=Sat,
|
69
|
+
08-Aug-2015 22:06:10 GMT
|
70
70
|
Expires:
|
71
71
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
72
|
Sforce-Limit-Info:
|
73
|
-
- api-usage=
|
73
|
+
- api-usage=1/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/<api_version>/sobjects/CustomObject__c/
|
75
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cLRLAA2"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
79
79
|
- chunked
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
|
-
string: '{"id":"
|
83
|
-
http_version:
|
84
|
-
recorded_at:
|
82
|
+
string: '{"id":"a001a000001cLRLAA2","success":true,"errors":[]}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Tue, 09 Jun 2015 22:06:10 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
87
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001cLRLAA2%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -92,7 +92,7 @@ http_interactions:
|
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Authorization:
|
95
|
-
- OAuth 00D1a000000H3O9!
|
95
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
96
96
|
Accept-Encoding:
|
97
97
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
98
98
|
Accept:
|
@@ -103,27 +103,103 @@ http_interactions:
|
|
103
103
|
message: OK
|
104
104
|
headers:
|
105
105
|
Date:
|
106
|
-
-
|
106
|
+
- Tue, 09 Jun 2015 22:06:11 GMT
|
107
107
|
Set-Cookie:
|
108
|
-
- BrowserId=
|
109
|
-
|
108
|
+
- BrowserId=ec6vh11bQsy0xZtlgnMjCQ;Path=/;Domain=.salesforce.com;Expires=Sat,
|
109
|
+
08-Aug-2015 22:06:11 GMT
|
110
110
|
Expires:
|
111
111
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
112
112
|
Sforce-Limit-Info:
|
113
|
-
- api-usage=
|
113
|
+
- api-usage=1/15000
|
114
114
|
Content-Type:
|
115
115
|
- application/json;charset=UTF-8
|
116
116
|
Transfer-Encoding:
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cLRLAA2"},"Id":"a001a000001cLRLAA2","SystemModstamp":"2015-06-09T22:06:10.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"Sample
|
121
121
|
object","Example_Field__c":null}]}'
|
122
|
-
http_version:
|
123
|
-
recorded_at:
|
122
|
+
http_version:
|
123
|
+
recorded_at: Tue, 09 Jun 2015 22:06:11 GMT
|
124
|
+
- request:
|
125
|
+
method: get
|
126
|
+
uri: https://<host>/services/data/<api_version>/
|
127
|
+
body:
|
128
|
+
encoding: US-ASCII
|
129
|
+
string: ''
|
130
|
+
headers:
|
131
|
+
User-Agent:
|
132
|
+
- Faraday v0.9.1
|
133
|
+
Authorization:
|
134
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
135
|
+
Accept-Encoding:
|
136
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
137
|
+
Accept:
|
138
|
+
- "*/*"
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message: OK
|
143
|
+
headers:
|
144
|
+
Date:
|
145
|
+
- Tue, 09 Jun 2015 22:06:12 GMT
|
146
|
+
Set-Cookie:
|
147
|
+
- BrowserId=aGOZIhuERNKTLAJPVk3oew;Path=/;Domain=.salesforce.com;Expires=Sat,
|
148
|
+
08-Aug-2015 22:06:12 GMT
|
149
|
+
Expires:
|
150
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
151
|
+
Sforce-Limit-Info:
|
152
|
+
- api-usage=1/15000
|
153
|
+
Content-Type:
|
154
|
+
- application/json;charset=UTF-8
|
155
|
+
Transfer-Encoding:
|
156
|
+
- chunked
|
157
|
+
body:
|
158
|
+
encoding: ASCII-8BIT
|
159
|
+
string: '{"limits":"/services/data/<api_version>/limits","sobjects":"/services/data/<api_version>/sobjects","connect":"/services/data/<api_version>/connect","query":"/services/data/<api_version>/query","theme":"/services/data/<api_version>/theme","queryAll":"/services/data/<api_version>/queryAll","tooling":"/services/data/<api_version>/tooling","chatter":"/services/data/<api_version>/chatter","analytics":"/services/data/<api_version>/analytics","recent":"/services/data/<api_version>/recent","commerce":"/services/data/<api_version>/commerce","licensing":"/services/data/<api_version>/licensing","identity":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","flexiPage":"/services/data/<api_version>/flexiPage","search":"/services/data/<api_version>/search","quickActions":"/services/data/<api_version>/quickActions","appMenu":"/services/data/<api_version>/appMenu"}'
|
160
|
+
http_version:
|
161
|
+
recorded_at: Tue, 09 Jun 2015 22:06:12 GMT
|
162
|
+
- request:
|
163
|
+
method: get
|
164
|
+
uri: https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO
|
165
|
+
body:
|
166
|
+
encoding: US-ASCII
|
167
|
+
string: ''
|
168
|
+
headers:
|
169
|
+
User-Agent:
|
170
|
+
- Faraday v0.9.1
|
171
|
+
Authorization:
|
172
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
173
|
+
Accept-Encoding:
|
174
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
175
|
+
Accept:
|
176
|
+
- "*/*"
|
177
|
+
response:
|
178
|
+
status:
|
179
|
+
code: 200
|
180
|
+
message: OK
|
181
|
+
headers:
|
182
|
+
Date:
|
183
|
+
- Tue, 09 Jun 2015 22:06:12 GMT
|
184
|
+
- Tue, 09 Jun 2015 22:06:12 GMT
|
185
|
+
Set-Cookie:
|
186
|
+
- BrowserId=DZL4ac-sTvu65A7v9w37xQ;Path=/;Domain=.salesforce.com;Expires=Sat,
|
187
|
+
08-Aug-2015 22:06:12 GMT
|
188
|
+
Expires:
|
189
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
190
|
+
Content-Type:
|
191
|
+
- application/json;charset=UTF-8
|
192
|
+
Transfer-Encoding:
|
193
|
+
- chunked
|
194
|
+
body:
|
195
|
+
encoding: ASCII-8BIT
|
196
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","asserted_user":true,"user_id":"0051a000000UGT8AAO","organization_id":"00D1a000000H3O9EAK","username":"<username>","nick_name":"andrew+salesforce1.42656567106328E12","display_name":"Andrew
|
197
|
+
Horner","email":"andrew@tablexi.com","email_verified":true,"first_name":"Andrew","last_name":"Horner","timezone":"America/Los_Angeles","photos":{"picture":"https://c.na24.content.force.com/profilephoto/005/F","thumbnail":"https://c.na24.content.force.com/profilephoto/005/T"},"addr_street":null,"addr_city":null,"addr_state":null,"addr_country":"US","addr_zip":"60661","mobile_phone":null,"mobile_phone_verified":false,"status":{"created_date":null,"body":null},"urls":{"enterprise":"https://<host>/services/Soap/c/{version}/00D1a000000H3O9","metadata":"https://<host>/services/Soap/m/{version}/00D1a000000H3O9","partner":"https://<host>/services/Soap/u/{version}/00D1a000000H3O9","rest":"https://<host>/services/data/v{version}/","sobjects":"https://<host>/services/data/v{version}/sobjects/","search":"https://<host>/services/data/v{version}/search/","query":"https://<host>/services/data/v{version}/query/","recent":"https://<host>/services/data/v{version}/recent/","profile":"https://<host>/0051a000000UGT8AAO","feeds":"https://<host>/services/data/v{version}/chatter/feeds","groups":"https://<host>/services/data/v{version}/chatter/groups","users":"https://<host>/services/data/v{version}/chatter/users","feed_items":"https://<host>/services/data/v{version}/chatter/feed-items"},"active":true,"user_type":"STANDARD","language":"en_US","locale":"en_US","utcOffset":-28800000,"last_modified_date":"2015-03-17T04:14:23.000+0000","is_app_installed":true}'
|
198
|
+
http_version:
|
199
|
+
recorded_at: Tue, 09 Jun 2015 22:06:12 GMT
|
124
200
|
- request:
|
125
201
|
method: delete
|
126
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
202
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cLRLAA2
|
127
203
|
body:
|
128
204
|
encoding: US-ASCII
|
129
205
|
string: ''
|
@@ -131,7 +207,7 @@ http_interactions:
|
|
131
207
|
User-Agent:
|
132
208
|
- Faraday v0.9.1
|
133
209
|
Authorization:
|
134
|
-
- OAuth 00D1a000000H3O9!
|
210
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
135
211
|
Accept-Encoding:
|
136
212
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
137
213
|
Accept:
|
@@ -142,17 +218,17 @@ http_interactions:
|
|
142
218
|
message: No Content
|
143
219
|
headers:
|
144
220
|
Date:
|
145
|
-
-
|
221
|
+
- Tue, 09 Jun 2015 22:06:13 GMT
|
146
222
|
Set-Cookie:
|
147
|
-
- BrowserId=
|
148
|
-
|
223
|
+
- BrowserId=fpNyIxqmTzSTEP-z_TsK_A;Path=/;Domain=.salesforce.com;Expires=Sat,
|
224
|
+
08-Aug-2015 22:06:13 GMT
|
149
225
|
Expires:
|
150
226
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
151
227
|
Sforce-Limit-Info:
|
152
|
-
- api-usage=
|
228
|
+
- api-usage=1/15000
|
153
229
|
body:
|
154
230
|
encoding: UTF-8
|
155
231
|
string: ''
|
156
|
-
http_version:
|
157
|
-
recorded_at:
|
232
|
+
http_version:
|
233
|
+
recorded_at: Tue, 09 Jun 2015 22:06:14 GMT
|
158
234
|
recorded_with: VCR 2.9.3
|
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Tue, 09 Jun 2015 22:06:20 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=yZBDdEVVSzujZnQGNgEcgQ;Path=/;Domain=.salesforce.com;Expires=Sat,
|
27
|
+
08-Aug-2015 22:06:20 GMT
|
28
28
|
Expires:
|
29
29
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
30
|
Pragma:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
- chunked
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
|
-
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433887580276","token_type":"Bearer","instance_url":"https://<host>","signature":"0yyCzzhE4N3ijddIOTmkWUEbAcJFKuj94FIL7zjqjuY=","access_token":"00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx"}'
|
41
41
|
http_version:
|
42
|
-
recorded_at:
|
42
|
+
recorded_at: Tue, 09 Jun 2015 22:06:20 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,28 +63,28 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Tue, 09 Jun 2015 22:06:21 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=8G0XdXU2TGa6rHdhyy5VmA;Path=/;Domain=.salesforce.com;Expires=Sat,
|
69
|
+
08-Aug-2015 22:06:21 GMT
|
70
70
|
Expires:
|
71
71
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
72
|
Sforce-Limit-Info:
|
73
|
-
- api-usage=
|
73
|
+
- api-usage=2/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/<api_version>/sobjects/CustomObject__c/
|
75
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cLRQAA2"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
79
79
|
- chunked
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
|
-
string: '{"id":"
|
82
|
+
string: '{"id":"a001a000001cLRQAA2","success":true,"errors":[]}'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Tue, 09 Jun 2015 22:06:21 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
87
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001cLRQAA2%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -92,7 +92,7 @@ http_interactions:
|
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Authorization:
|
95
|
-
- OAuth 00D1a000000H3O9!
|
95
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
96
96
|
Accept-Encoding:
|
97
97
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
98
98
|
Accept:
|
@@ -103,24 +103,100 @@ http_interactions:
|
|
103
103
|
message: OK
|
104
104
|
headers:
|
105
105
|
Date:
|
106
|
-
-
|
106
|
+
- Tue, 09 Jun 2015 22:06:22 GMT
|
107
107
|
Set-Cookie:
|
108
|
-
- BrowserId=
|
109
|
-
|
108
|
+
- BrowserId=zBfDDmOATMeTT7SVV5_Szw;Path=/;Domain=.salesforce.com;Expires=Sat,
|
109
|
+
08-Aug-2015 22:06:22 GMT
|
110
110
|
Expires:
|
111
111
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
112
112
|
Sforce-Limit-Info:
|
113
|
-
- api-usage=
|
113
|
+
- api-usage=2/15000
|
114
114
|
Content-Type:
|
115
115
|
- application/json;charset=UTF-8
|
116
116
|
Transfer-Encoding:
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cLRQAA2"},"Id":"a001a000001cLRQAA2","SystemModstamp":"2015-06-09T22:06:21.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"Custom
|
121
121
|
object","Example_Field__c":"Some sample text"}]}'
|
122
122
|
http_version:
|
123
|
-
recorded_at:
|
123
|
+
recorded_at: Tue, 09 Jun 2015 22:06:22 GMT
|
124
|
+
- request:
|
125
|
+
method: get
|
126
|
+
uri: https://<host>/services/data/<api_version>/
|
127
|
+
body:
|
128
|
+
encoding: US-ASCII
|
129
|
+
string: ''
|
130
|
+
headers:
|
131
|
+
User-Agent:
|
132
|
+
- Faraday v0.9.1
|
133
|
+
Authorization:
|
134
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
135
|
+
Accept-Encoding:
|
136
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
137
|
+
Accept:
|
138
|
+
- "*/*"
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message: OK
|
143
|
+
headers:
|
144
|
+
Date:
|
145
|
+
- Tue, 09 Jun 2015 22:06:23 GMT
|
146
|
+
Set-Cookie:
|
147
|
+
- BrowserId=PQ9dfO2pQhOdNOG8rGGPVA;Path=/;Domain=.salesforce.com;Expires=Sat,
|
148
|
+
08-Aug-2015 22:06:23 GMT
|
149
|
+
Expires:
|
150
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
151
|
+
Sforce-Limit-Info:
|
152
|
+
- api-usage=2/15000
|
153
|
+
Content-Type:
|
154
|
+
- application/json;charset=UTF-8
|
155
|
+
Transfer-Encoding:
|
156
|
+
- chunked
|
157
|
+
body:
|
158
|
+
encoding: ASCII-8BIT
|
159
|
+
string: '{"limits":"/services/data/<api_version>/limits","sobjects":"/services/data/<api_version>/sobjects","connect":"/services/data/<api_version>/connect","query":"/services/data/<api_version>/query","theme":"/services/data/<api_version>/theme","queryAll":"/services/data/<api_version>/queryAll","tooling":"/services/data/<api_version>/tooling","chatter":"/services/data/<api_version>/chatter","analytics":"/services/data/<api_version>/analytics","recent":"/services/data/<api_version>/recent","commerce":"/services/data/<api_version>/commerce","licensing":"/services/data/<api_version>/licensing","identity":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","flexiPage":"/services/data/<api_version>/flexiPage","search":"/services/data/<api_version>/search","quickActions":"/services/data/<api_version>/quickActions","appMenu":"/services/data/<api_version>/appMenu"}'
|
160
|
+
http_version:
|
161
|
+
recorded_at: Tue, 09 Jun 2015 22:06:23 GMT
|
162
|
+
- request:
|
163
|
+
method: get
|
164
|
+
uri: https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO
|
165
|
+
body:
|
166
|
+
encoding: US-ASCII
|
167
|
+
string: ''
|
168
|
+
headers:
|
169
|
+
User-Agent:
|
170
|
+
- Faraday v0.9.1
|
171
|
+
Authorization:
|
172
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
173
|
+
Accept-Encoding:
|
174
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
175
|
+
Accept:
|
176
|
+
- "*/*"
|
177
|
+
response:
|
178
|
+
status:
|
179
|
+
code: 200
|
180
|
+
message: OK
|
181
|
+
headers:
|
182
|
+
Date:
|
183
|
+
- Tue, 09 Jun 2015 22:06:23 GMT
|
184
|
+
- Tue, 09 Jun 2015 22:06:27 GMT
|
185
|
+
Set-Cookie:
|
186
|
+
- BrowserId=II3feyU6R-SDW3FyFqKtQQ;Path=/;Domain=.salesforce.com;Expires=Sat,
|
187
|
+
08-Aug-2015 22:06:27 GMT
|
188
|
+
Expires:
|
189
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
190
|
+
Content-Type:
|
191
|
+
- application/json;charset=UTF-8
|
192
|
+
Transfer-Encoding:
|
193
|
+
- chunked
|
194
|
+
body:
|
195
|
+
encoding: ASCII-8BIT
|
196
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","asserted_user":true,"user_id":"0051a000000UGT8AAO","organization_id":"00D1a000000H3O9EAK","username":"andrew+salesforce@tablexi.com","nick_name":"andrew+salesforce1.42656567106328E12","display_name":"Andrew
|
197
|
+
Horner","email":"andrew@tablexi.com","email_verified":true,"first_name":"Andrew","last_name":"Horner","timezone":"America/Los_Angeles","photos":{"picture":"https://c.na24.content.force.com/profilephoto/005/F","thumbnail":"https://c.na24.content.force.com/profilephoto/005/T"},"addr_street":null,"addr_city":null,"addr_state":null,"addr_country":"US","addr_zip":"60661","mobile_phone":null,"mobile_phone_verified":false,"status":{"created_date":null,"body":null},"urls":{"enterprise":"https://<host>/services/Soap/c/{version}/00D1a000000H3O9","metadata":"https://<host>/services/Soap/m/{version}/00D1a000000H3O9","partner":"https://<host>/services/Soap/u/{version}/00D1a000000H3O9","rest":"https://<host>/services/data/v{version}/","sobjects":"https://<host>/services/data/v{version}/sobjects/","search":"https://<host>/services/data/v{version}/search/","query":"https://<host>/services/data/v{version}/query/","recent":"https://<host>/services/data/v{version}/recent/","profile":"https://<host>/0051a000000UGT8AAO","feeds":"https://<host>/services/data/v{version}/chatter/feeds","groups":"https://<host>/services/data/v{version}/chatter/groups","users":"https://<host>/services/data/v{version}/chatter/users","feed_items":"https://<host>/services/data/v{version}/chatter/feed-items"},"active":true,"user_type":"STANDARD","language":"en_US","locale":"en_US","utcOffset":-28800000,"last_modified_date":"2015-03-17T04:14:23.000+0000","is_app_installed":true}'
|
198
|
+
http_version:
|
199
|
+
recorded_at: Tue, 09 Jun 2015 22:06:27 GMT
|
124
200
|
- request:
|
125
201
|
method: get
|
126
202
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/describe
|
@@ -131,7 +207,7 @@ http_interactions:
|
|
131
207
|
User-Agent:
|
132
208
|
- Faraday v0.9.1
|
133
209
|
Authorization:
|
134
|
-
- OAuth 00D1a000000H3O9!
|
210
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
135
211
|
Accept-Encoding:
|
136
212
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
137
213
|
Accept:
|
@@ -142,14 +218,14 @@ http_interactions:
|
|
142
218
|
message: OK
|
143
219
|
headers:
|
144
220
|
Date:
|
145
|
-
-
|
221
|
+
- Tue, 09 Jun 2015 22:06:28 GMT
|
146
222
|
Set-Cookie:
|
147
|
-
- BrowserId=
|
148
|
-
|
223
|
+
- BrowserId=nmm5EQJUStGWFEYgEMxjog;Path=/;Domain=.salesforce.com;Expires=Sat,
|
224
|
+
08-Aug-2015 22:06:28 GMT
|
149
225
|
Expires:
|
150
226
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
151
227
|
Sforce-Limit-Info:
|
152
|
-
- api-usage=
|
228
|
+
- api-usage=2/15000
|
153
229
|
Org.eclipse.jetty.server.include.etag:
|
154
230
|
- 7057c783
|
155
231
|
Last-Modified:
|
@@ -173,10 +249,10 @@ http_interactions:
|
|
173
249
|
Modstamp","length":0,"name":"SystemModstamp","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:dateTime","sortable":true,"type":"datetime","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":765,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Example
|
174
250
|
Field","length":255,"name":"Example_Field__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:string","sortable":true,"type":"string","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Friend","length":18,"name":"Friend__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":["Contact"],"relationshipName":"Friend__r","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Visible","length":0,"name":"Visible__c","nameField":false,"namePointing":false,"nillable":false,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:boolean","sortable":true,"type":"boolean","unique":false,"updateable":true,"writeRequiresMasterRead":false}],"keyPrefix":"a00","label":"CustomObject","labelPlural":"CustomObjects","layoutable":true,"listviewable":null,"lookupLayoutable":null,"mergeable":false,"name":"CustomObject__c","queryable":true,"recordTypeInfos":[{"available":true,"defaultRecordTypeMapping":true,"name":"Master","recordTypeId":"012000000000000AAA","urls":{"layout":"/services/data/<api_version>/sobjects/CustomObject__c/describe/layouts/012000000000000AAA"}}],"replicateable":true,"retrieveable":true,"searchLayoutable":true,"searchable":true,"triggerable":true,"undeletable":true,"updateable":true,"urls":{"uiEditTemplate":"https://<host>/{ID}/e","sobject":"/services/data/<api_version>/sobjects/CustomObject__c","quickActions":"/services/data/<api_version>/sobjects/CustomObject__c/quickActions","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/<api_version>/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/<api_version>/sobjects/CustomObject__c/{ID}","layouts":"/services/data/<api_version>/sobjects/CustomObject__c/describe/layouts","compactLayouts":"/services/data/<api_version>/sobjects/CustomObject__c/describe/compactLayouts","uiNewRecord":"https://<host>/a00/e"}}'
|
175
251
|
http_version:
|
176
|
-
recorded_at:
|
252
|
+
recorded_at: Tue, 09 Jun 2015 22:06:28 GMT
|
177
253
|
- request:
|
178
254
|
method: patch
|
179
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
255
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cLRQAA2
|
180
256
|
body:
|
181
257
|
encoding: UTF-8
|
182
258
|
string: '{"Name":"Some new name","Example_Field__c":"New sample text"}'
|
@@ -186,7 +262,7 @@ http_interactions:
|
|
186
262
|
Content-Type:
|
187
263
|
- application/json
|
188
264
|
Authorization:
|
189
|
-
- OAuth 00D1a000000H3O9!
|
265
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
190
266
|
Accept-Encoding:
|
191
267
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
192
268
|
Accept:
|
@@ -197,22 +273,22 @@ http_interactions:
|
|
197
273
|
message: No Content
|
198
274
|
headers:
|
199
275
|
Date:
|
200
|
-
-
|
276
|
+
- Tue, 09 Jun 2015 22:06:29 GMT
|
201
277
|
Set-Cookie:
|
202
|
-
- BrowserId=
|
203
|
-
|
278
|
+
- BrowserId=CpVFX-qpTPiRypBqOpJ97Q;Path=/;Domain=.salesforce.com;Expires=Sat,
|
279
|
+
08-Aug-2015 22:06:29 GMT
|
204
280
|
Expires:
|
205
281
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
206
282
|
Sforce-Limit-Info:
|
207
|
-
- api-usage=
|
283
|
+
- api-usage=2/15000
|
208
284
|
body:
|
209
285
|
encoding: UTF-8
|
210
286
|
string: ''
|
211
287
|
http_version:
|
212
|
-
recorded_at:
|
288
|
+
recorded_at: Tue, 09 Jun 2015 22:06:29 GMT
|
213
289
|
- request:
|
214
290
|
method: get
|
215
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
291
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001cLRQAA2%27
|
216
292
|
body:
|
217
293
|
encoding: US-ASCII
|
218
294
|
string: ''
|
@@ -220,7 +296,7 @@ http_interactions:
|
|
220
296
|
User-Agent:
|
221
297
|
- Faraday v0.9.1
|
222
298
|
Authorization:
|
223
|
-
- OAuth 00D1a000000H3O9!
|
299
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
224
300
|
Accept-Encoding:
|
225
301
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
226
302
|
Accept:
|
@@ -231,27 +307,27 @@ http_interactions:
|
|
231
307
|
message: OK
|
232
308
|
headers:
|
233
309
|
Date:
|
234
|
-
-
|
310
|
+
- Tue, 09 Jun 2015 22:06:30 GMT
|
235
311
|
Set-Cookie:
|
236
|
-
- BrowserId=
|
237
|
-
|
312
|
+
- BrowserId=f6sUSzBMTOeL-8LAA4LiGA;Path=/;Domain=.salesforce.com;Expires=Sat,
|
313
|
+
08-Aug-2015 22:06:30 GMT
|
238
314
|
Expires:
|
239
315
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
240
316
|
Sforce-Limit-Info:
|
241
|
-
- api-usage=
|
317
|
+
- api-usage=3/15000
|
242
318
|
Content-Type:
|
243
319
|
- application/json;charset=UTF-8
|
244
320
|
Transfer-Encoding:
|
245
321
|
- chunked
|
246
322
|
body:
|
247
323
|
encoding: ASCII-8BIT
|
248
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/
|
324
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cLRQAA2"},"Id":"a001a000001cLRQAA2","SystemModstamp":"2015-06-09T22:06:29.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"Some
|
249
325
|
new name","Example_Field__c":"New sample text"}]}'
|
250
326
|
http_version:
|
251
|
-
recorded_at:
|
327
|
+
recorded_at: Tue, 09 Jun 2015 22:06:30 GMT
|
252
328
|
- request:
|
253
329
|
method: delete
|
254
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
330
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cLRQAA2
|
255
331
|
body:
|
256
332
|
encoding: US-ASCII
|
257
333
|
string: ''
|
@@ -259,7 +335,7 @@ http_interactions:
|
|
259
335
|
User-Agent:
|
260
336
|
- Faraday v0.9.1
|
261
337
|
Authorization:
|
262
|
-
- OAuth 00D1a000000H3O9!
|
338
|
+
- OAuth 00D1a000000H3O9!AQ4AQBXTS4r5FG0Bm5V10yICLble63B7zQPiRQ_U4mkOC0rVM36iCCQ1bo6mlT59mZt2AUQ1iWhaYFtXhVL2w4_3O0mrUCPx
|
263
339
|
Accept-Encoding:
|
264
340
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
265
341
|
Accept:
|
@@ -270,17 +346,17 @@ http_interactions:
|
|
270
346
|
message: No Content
|
271
347
|
headers:
|
272
348
|
Date:
|
273
|
-
-
|
349
|
+
- Tue, 09 Jun 2015 22:06:31 GMT
|
274
350
|
Set-Cookie:
|
275
|
-
- BrowserId
|
276
|
-
|
351
|
+
- BrowserId=5hXSLl8iQkiLI77Gg-H12Q;Path=/;Domain=.salesforce.com;Expires=Sat,
|
352
|
+
08-Aug-2015 22:06:31 GMT
|
277
353
|
Expires:
|
278
354
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
279
355
|
Sforce-Limit-Info:
|
280
|
-
- api-usage=
|
356
|
+
- api-usage=2/15000
|
281
357
|
body:
|
282
358
|
encoding: UTF-8
|
283
359
|
string: ''
|
284
360
|
http_version:
|
285
|
-
recorded_at:
|
361
|
+
recorded_at: Tue, 09 Jun 2015 22:06:31 GMT
|
286
362
|
recorded_with: VCR 2.9.3
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restforce-db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Horner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -372,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
372
372
|
version: '0'
|
373
373
|
requirements: []
|
374
374
|
rubyforge_project:
|
375
|
-
rubygems_version: 2.4.
|
375
|
+
rubygems_version: 2.4.5
|
376
376
|
signing_key:
|
377
377
|
specification_version: 4
|
378
378
|
summary: Bind your database to Salesforce data
|