restforce-db 2.0.0 → 2.0.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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/restforce/db/accumulator.rb +13 -0
  3. data/lib/restforce/db/field_processor.rb +70 -0
  4. data/lib/restforce/db/instances/salesforce.rb +10 -0
  5. data/lib/restforce/db/record_types/salesforce.rb +2 -2
  6. data/lib/restforce/db/synchronizer.rb +2 -1
  7. data/lib/restforce/db/version.rb +1 -1
  8. data/lib/restforce/db.rb +1 -0
  9. data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_Salesforce_association_is_out_of_date/updates_the_association_ID_in_Salesforce.yml +135 -82
  10. data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_database_association_is_out_of_date/updates_the_associated_record_in_the_database.yml +152 -99
  11. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_mapping_has_no_conditions/does_not_drop_the_synchronized_database_record.yml +120 -0
  12. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/for_a_non-Passive_strategy/drops_the_synchronized_database_record.yml +34 -36
  13. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_meets_the_mapping_conditions/does_not_drop_the_synchronized_database_record.yml +35 -37
  14. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +96 -44
  15. data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +88 -35
  16. data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +96 -43
  17. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +81 -28
  18. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +81 -28
  19. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +88 -35
  20. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +96 -43
  21. data/test/lib/restforce/db/accumulator_test.rb +16 -0
  22. data/test/lib/restforce/db/cleaner_test.rb +15 -9
  23. data/test/lib/restforce/db/collector_test.rb +13 -15
  24. data/test/lib/restforce/db/field_processor_test.rb +51 -0
  25. data/test/lib/restforce/db/initializer_test.rb +10 -13
  26. data/test/lib/restforce/db/runner_cache_test.rb +1 -0
  27. data/test/support/utilities.rb +1 -0
  28. metadata +5 -3
  29. data/test/cassettes/Restforce_DB_Instances_Salesforce/_copy_/updates_the_record_with_the_attributes_from_the_copied_object.yml +0 -194
@@ -0,0 +1,120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<host>/services/oauth2/token
6
+ body:
7
+ encoding: US-ASCII
8
+ string: grant_type=password&client_id=<client_id>&client_secret=<client_secret>&username=<username>&password=<password><security_token>
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.1
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Fri, 15 May 2015 01:18:57 GMT
25
+ Set-Cookie:
26
+ - BrowserId=Flpm78MlSe67R7xkifj2Yw;Path=/;Domain=.salesforce.com;Expires=Tue,
27
+ 14-Jul-2015 01:18:57 GMT
28
+ Expires:
29
+ - Thu, 01 Jan 1970 00:00:00 GMT
30
+ Pragma:
31
+ - no-cache
32
+ Cache-Control:
33
+ - no-cache, no-store
34
+ Content-Type:
35
+ - application/json;charset=UTF-8
36
+ Transfer-Encoding:
37
+ - chunked
38
+ body:
39
+ encoding: ASCII-8BIT
40
+ string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431652737381","token_type":"Bearer","instance_url":"https://<host>","signature":"eDi+FfWSG5svT9zP9racSdUlz4GQ3ZX37gNEFN5JYyk=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
41
+ http_version:
42
+ recorded_at: Fri, 15 May 2015 01:18:57 GMT
43
+ - request:
44
+ method: post
45
+ uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
46
+ body:
47
+ encoding: UTF-8
48
+ string: '{"Name":"Are you going to Scarborough Fair?","Example_Field__c":"Parsley,
49
+ Sage, Rosemary, and Thyme."}'
50
+ headers:
51
+ User-Agent:
52
+ - Faraday v0.9.1
53
+ Content-Type:
54
+ - application/json
55
+ Authorization:
56
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - "*/*"
61
+ response:
62
+ status:
63
+ code: 201
64
+ message: Created
65
+ headers:
66
+ Date:
67
+ - Fri, 15 May 2015 01:18:58 GMT
68
+ Set-Cookie:
69
+ - BrowserId=IrKaoFW2SHGjeIBDQTZqvA;Path=/;Domain=.salesforce.com;Expires=Tue,
70
+ 14-Jul-2015 01:18:58 GMT
71
+ Expires:
72
+ - Thu, 01 Jan 1970 00:00:00 GMT
73
+ Sforce-Limit-Info:
74
+ - api-usage=624/15000
75
+ Location:
76
+ - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoCiAAK"
77
+ Content-Type:
78
+ - application/json;charset=UTF-8
79
+ Transfer-Encoding:
80
+ - chunked
81
+ body:
82
+ encoding: ASCII-8BIT
83
+ string: '{"id":"a001a000001ZoCiAAK","success":true,"errors":[]}'
84
+ http_version:
85
+ recorded_at: Fri, 15 May 2015 01:18:58 GMT
86
+ - request:
87
+ method: delete
88
+ uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoCiAAK
89
+ body:
90
+ encoding: US-ASCII
91
+ string: ''
92
+ headers:
93
+ User-Agent:
94
+ - Faraday v0.9.1
95
+ Authorization:
96
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
97
+ Accept-Encoding:
98
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
+ Accept:
100
+ - "*/*"
101
+ response:
102
+ status:
103
+ code: 204
104
+ message: No Content
105
+ headers:
106
+ Date:
107
+ - Fri, 15 May 2015 01:18:59 GMT
108
+ Set-Cookie:
109
+ - BrowserId=RgPz1kLLRwu-QDIxksKAYQ;Path=/;Domain=.salesforce.com;Expires=Tue,
110
+ 14-Jul-2015 01:18:59 GMT
111
+ Expires:
112
+ - Thu, 01 Jan 1970 00:00:00 GMT
113
+ Sforce-Limit-Info:
114
+ - api-usage=623/15000
115
+ body:
116
+ encoding: UTF-8
117
+ string: ''
118
+ http_version:
119
+ recorded_at: Fri, 15 May 2015 01:18:59 GMT
120
+ recorded_with: VCR 2.9.3
@@ -21,10 +21,10 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  Date:
24
- - Tue, 28 Apr 2015 22:35:20 GMT
24
+ - Fri, 15 May 2015 01:21:30 GMT
25
25
  Set-Cookie:
26
- - BrowserId=Mv4KGAcATkaQUlaR0LmBiQ;Path=/;Domain=.salesforce.com;Expires=Sat,
27
- 27-Jun-2015 22:35:20 GMT
26
+ - BrowserId=E_1YTVCUQsaftF55tGMiqw;Path=/;Domain=.salesforce.com;Expires=Tue,
27
+ 14-Jul-2015 01:21:30 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":"1430260520482","token_type":"Bearer","instance_url":"https://<host>","signature":"yQWlkrP+VEy6cJMr8X01tKUcp3jJfdab28DpozcgRRk=","access_token":"00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI"}'
40
+ string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431652890698","token_type":"Bearer","instance_url":"https://<host>","signature":"0evU70RDGPagRqFniwNzBo1tfyh5vTuYv+0/JBWjpuk=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
41
41
  http_version:
42
- recorded_at: Tue, 28 Apr 2015 22:35:20 GMT
42
+ recorded_at: Fri, 15 May 2015 01:21:30 GMT
43
43
  - request:
44
44
  method: post
45
45
  uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
@@ -53,7 +53,7 @@ http_interactions:
53
53
  Content-Type:
54
54
  - application/json
55
55
  Authorization:
56
- - OAuth 00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI
56
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
57
57
  Accept-Encoding:
58
58
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
59
  Accept:
@@ -64,25 +64,25 @@ http_interactions:
64
64
  message: Created
65
65
  headers:
66
66
  Date:
67
- - Tue, 28 Apr 2015 22:35:20 GMT
67
+ - Fri, 15 May 2015 01:21:31 GMT
68
68
  Set-Cookie:
69
- - BrowserId=3WUn9_WbQZGC6UHfLFxLmQ;Path=/;Domain=.salesforce.com;Expires=Sat,
70
- 27-Jun-2015 22:35:20 GMT
69
+ - BrowserId=fTB3kvgnRAmnaxlskVAN2Q;Path=/;Domain=.salesforce.com;Expires=Tue,
70
+ 14-Jul-2015 01:21:31 GMT
71
71
  Expires:
72
72
  - Thu, 01 Jan 1970 00:00:00 GMT
73
73
  Sforce-Limit-Info:
74
- - api-usage=6/15000
74
+ - api-usage=716/15000
75
75
  Location:
76
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001Sr0KAAS"
76
+ - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEPAA0"
77
77
  Content-Type:
78
78
  - application/json;charset=UTF-8
79
79
  Transfer-Encoding:
80
80
  - chunked
81
81
  body:
82
82
  encoding: ASCII-8BIT
83
- string: '{"id":"a001a000001Sr0KAAS","success":true,"errors":[]}'
83
+ string: '{"id":"a001a000001ZoEPAA0","success":true,"errors":[]}'
84
84
  http_version:
85
- recorded_at: Tue, 28 Apr 2015 22:35:20 GMT
85
+ recorded_at: Fri, 15 May 2015 01:21:31 GMT
86
86
  - request:
87
87
  method: get
88
88
  uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
@@ -93,7 +93,7 @@ http_interactions:
93
93
  User-Agent:
94
94
  - Faraday v0.9.1
95
95
  Authorization:
96
- - OAuth 00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI
96
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
97
97
  Accept-Encoding:
98
98
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
99
  Accept:
@@ -104,26 +104,25 @@ http_interactions:
104
104
  message: OK
105
105
  headers:
106
106
  Date:
107
- - Tue, 28 Apr 2015 22:35:21 GMT
107
+ - Fri, 15 May 2015 01:21:32 GMT
108
108
  Set-Cookie:
109
- - BrowserId=z-eXo_idQN6fNmKWqkMjUQ;Path=/;Domain=.salesforce.com;Expires=Sat,
110
- 27-Jun-2015 22:35:21 GMT
109
+ - BrowserId=bQlg2D4rSwKYlP7RBCSGTg;Path=/;Domain=.salesforce.com;Expires=Tue,
110
+ 14-Jul-2015 01:21:32 GMT
111
111
  Expires:
112
112
  - Thu, 01 Jan 1970 00:00:00 GMT
113
113
  Sforce-Limit-Info:
114
- - api-usage=5/15000
114
+ - api-usage=718/15000
115
115
  Content-Type:
116
116
  - application/json;charset=UTF-8
117
117
  Transfer-Encoding:
118
118
  - chunked
119
119
  body:
120
120
  encoding: ASCII-8BIT
121
- string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LNK5AAO"},"Id":"a001a000001LNK5AAO","SystemModstamp":"2015-04-08T20:49:02.000+0000","Name":"Custom
122
- object","Example_Field__c":"Some sample text"},{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001Sr0KAAS"},"Id":"a001a000001Sr0KAAS","SystemModstamp":"2015-04-28T22:35:20.000+0000","Name":"Are
121
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEPAA0"},"Id":"a001a000001ZoEPAA0","SystemModstamp":"2015-05-15T01:21:31.000+0000","Name":"Are
123
122
  you going to Scarborough Fair?","Example_Field__c":"Parsley, Sage, Rosemary,
124
123
  and Thyme."}]}'
125
124
  http_version:
126
- recorded_at: Tue, 28 Apr 2015 22:35:21 GMT
125
+ recorded_at: Fri, 15 May 2015 01:21:32 GMT
127
126
  - request:
128
127
  method: get
129
128
  uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Name%20!=%20%27Are%20you%20going%20to%20Scarborough%20Fair?%27
@@ -134,7 +133,7 @@ http_interactions:
134
133
  User-Agent:
135
134
  - Faraday v0.9.1
136
135
  Authorization:
137
- - OAuth 00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI
136
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
138
137
  Accept-Encoding:
139
138
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
139
  Accept:
@@ -145,27 +144,26 @@ http_interactions:
145
144
  message: OK
146
145
  headers:
147
146
  Date:
148
- - Tue, 28 Apr 2015 22:35:21 GMT
147
+ - Fri, 15 May 2015 01:21:33 GMT
149
148
  Set-Cookie:
150
- - BrowserId=lCyOd81BQGCTyp4OGv1j6A;Path=/;Domain=.salesforce.com;Expires=Sat,
151
- 27-Jun-2015 22:35:21 GMT
149
+ - BrowserId=xE1B9MaBS1egHKfnLCLJ3w;Path=/;Domain=.salesforce.com;Expires=Tue,
150
+ 14-Jul-2015 01:21:33 GMT
152
151
  Expires:
153
152
  - Thu, 01 Jan 1970 00:00:00 GMT
154
153
  Sforce-Limit-Info:
155
- - api-usage=5/15000
154
+ - api-usage=717/15000
156
155
  Content-Type:
157
156
  - application/json;charset=UTF-8
158
157
  Transfer-Encoding:
159
158
  - chunked
160
159
  body:
161
160
  encoding: ASCII-8BIT
162
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LNK5AAO"},"Id":"a001a000001LNK5AAO","SystemModstamp":"2015-04-08T20:49:02.000+0000","Name":"Custom
163
- object","Example_Field__c":"Some sample text"}]}'
161
+ string: '{"totalSize":0,"done":true,"records":[]}'
164
162
  http_version:
165
- recorded_at: Tue, 28 Apr 2015 22:35:21 GMT
163
+ recorded_at: Fri, 15 May 2015 01:21:33 GMT
166
164
  - request:
167
165
  method: delete
168
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001Sr0KAAS
166
+ uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEPAA0
169
167
  body:
170
168
  encoding: US-ASCII
171
169
  string: ''
@@ -173,7 +171,7 @@ http_interactions:
173
171
  User-Agent:
174
172
  - Faraday v0.9.1
175
173
  Authorization:
176
- - OAuth 00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI
174
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
177
175
  Accept-Encoding:
178
176
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
179
177
  Accept:
@@ -184,17 +182,17 @@ http_interactions:
184
182
  message: No Content
185
183
  headers:
186
184
  Date:
187
- - Tue, 28 Apr 2015 22:35:22 GMT
185
+ - Fri, 15 May 2015 01:21:34 GMT
188
186
  Set-Cookie:
189
- - BrowserId=KOe6M7BRQ0-6dcG-gG0bEg;Path=/;Domain=.salesforce.com;Expires=Sat,
190
- 27-Jun-2015 22:35:22 GMT
187
+ - BrowserId=FweFSQPHTYaX13IOz-IItg;Path=/;Domain=.salesforce.com;Expires=Tue,
188
+ 14-Jul-2015 01:21:34 GMT
191
189
  Expires:
192
190
  - Thu, 01 Jan 1970 00:00:00 GMT
193
191
  Sforce-Limit-Info:
194
- - api-usage=5/15000
192
+ - api-usage=715/15000
195
193
  body:
196
194
  encoding: UTF-8
197
195
  string: ''
198
196
  http_version:
199
- recorded_at: Tue, 28 Apr 2015 22:35:22 GMT
197
+ recorded_at: Fri, 15 May 2015 01:21:34 GMT
200
198
  recorded_with: VCR 2.9.3
@@ -21,10 +21,10 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  Date:
24
- - Tue, 28 Apr 2015 22:35:14 GMT
24
+ - Fri, 15 May 2015 01:34:07 GMT
25
25
  Set-Cookie:
26
- - BrowserId=ATzeC8sYTiON60FmYuKong;Path=/;Domain=.salesforce.com;Expires=Sat,
27
- 27-Jun-2015 22:35:14 GMT
26
+ - BrowserId=PlvBJsmsQl2Ua2NNWOb3lg;Path=/;Domain=.salesforce.com;Expires=Tue,
27
+ 14-Jul-2015 01:34:07 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":"1430260514286","token_type":"Bearer","instance_url":"https://<host>","signature":"8KSXxaHQWEXc7N8QF4D7sei0VTdPiA9Acov+SAqtAC0=","access_token":"00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI"}'
40
+ string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431653647956","token_type":"Bearer","instance_url":"https://<host>","signature":"0Y5hzj5yAfpvGVh+sdgK56/XvRhuAg1oyXBywP0nOwE=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
41
41
  http_version:
42
- recorded_at: Tue, 28 Apr 2015 22:35:14 GMT
42
+ recorded_at: Fri, 15 May 2015 01:34:07 GMT
43
43
  - request:
44
44
  method: post
45
45
  uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
@@ -53,7 +53,7 @@ http_interactions:
53
53
  Content-Type:
54
54
  - application/json
55
55
  Authorization:
56
- - OAuth 00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI
56
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
57
57
  Accept-Encoding:
58
58
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
59
  Accept:
@@ -64,25 +64,25 @@ http_interactions:
64
64
  message: Created
65
65
  headers:
66
66
  Date:
67
- - Tue, 28 Apr 2015 22:35:14 GMT
67
+ - Fri, 15 May 2015 01:34:08 GMT
68
68
  Set-Cookie:
69
- - BrowserId=7F5nncr9TF661qns_ENlfw;Path=/;Domain=.salesforce.com;Expires=Sat,
70
- 27-Jun-2015 22:35:14 GMT
69
+ - BrowserId=16qh2C_0Rh28tGWSD55c4w;Path=/;Domain=.salesforce.com;Expires=Tue,
70
+ 14-Jul-2015 01:34:08 GMT
71
71
  Expires:
72
72
  - Thu, 01 Jan 1970 00:00:00 GMT
73
73
  Sforce-Limit-Info:
74
- - api-usage=5/15000
74
+ - api-usage=806/15000
75
75
  Location:
76
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001Sr0FAAS"
76
+ - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEoAAK"
77
77
  Content-Type:
78
78
  - application/json;charset=UTF-8
79
79
  Transfer-Encoding:
80
80
  - chunked
81
81
  body:
82
82
  encoding: ASCII-8BIT
83
- string: '{"id":"a001a000001Sr0FAAS","success":true,"errors":[]}'
83
+ string: '{"id":"a001a000001ZoEoAAK","success":true,"errors":[]}'
84
84
  http_version:
85
- recorded_at: Tue, 28 Apr 2015 22:35:14 GMT
85
+ recorded_at: Fri, 15 May 2015 01:34:08 GMT
86
86
  - request:
87
87
  method: get
88
88
  uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
@@ -93,7 +93,7 @@ http_interactions:
93
93
  User-Agent:
94
94
  - Faraday v0.9.1
95
95
  Authorization:
96
- - OAuth 00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI
96
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
97
97
  Accept-Encoding:
98
98
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
99
  Accept:
@@ -104,29 +104,28 @@ http_interactions:
104
104
  message: OK
105
105
  headers:
106
106
  Date:
107
- - Tue, 28 Apr 2015 22:35:14 GMT
107
+ - Fri, 15 May 2015 01:34:10 GMT
108
108
  Set-Cookie:
109
- - BrowserId=LPwX--hBSJ2-qXwhmGa1Rw;Path=/;Domain=.salesforce.com;Expires=Sat,
110
- 27-Jun-2015 22:35:14 GMT
109
+ - BrowserId=Fpx4klHITVyqczp5DuSzqA;Path=/;Domain=.salesforce.com;Expires=Tue,
110
+ 14-Jul-2015 01:34:10 GMT
111
111
  Expires:
112
112
  - Thu, 01 Jan 1970 00:00:00 GMT
113
113
  Sforce-Limit-Info:
114
- - api-usage=5/15000
114
+ - api-usage=806/15000
115
115
  Content-Type:
116
116
  - application/json;charset=UTF-8
117
117
  Transfer-Encoding:
118
118
  - chunked
119
119
  body:
120
120
  encoding: ASCII-8BIT
121
- string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LNK5AAO"},"Id":"a001a000001LNK5AAO","SystemModstamp":"2015-04-08T20:49:02.000+0000","Name":"Custom
122
- object","Example_Field__c":"Some sample text"},{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001Sr0FAAS"},"Id":"a001a000001Sr0FAAS","SystemModstamp":"2015-04-28T22:35:14.000+0000","Name":"Are
121
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEoAAK"},"Id":"a001a000001ZoEoAAK","SystemModstamp":"2015-05-15T01:34:08.000+0000","Name":"Are
123
122
  you going to Scarborough Fair?","Example_Field__c":"Parsley, Sage, Rosemary,
124
123
  and Thyme."}]}'
125
124
  http_version:
126
- recorded_at: Tue, 28 Apr 2015 22:35:14 GMT
125
+ recorded_at: Fri, 15 May 2015 01:34:10 GMT
127
126
  - request:
128
127
  method: get
129
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
128
+ uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Name%20=%20%27Are%20you%20going%20to%20Scarborough%20Fair?%27
130
129
  body:
131
130
  encoding: US-ASCII
132
131
  string: ''
@@ -134,7 +133,7 @@ http_interactions:
134
133
  User-Agent:
135
134
  - Faraday v0.9.1
136
135
  Authorization:
137
- - OAuth 00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI
136
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
138
137
  Accept-Encoding:
139
138
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
139
  Accept:
@@ -145,29 +144,28 @@ http_interactions:
145
144
  message: OK
146
145
  headers:
147
146
  Date:
148
- - Tue, 28 Apr 2015 22:35:14 GMT
147
+ - Fri, 15 May 2015 01:34:11 GMT
149
148
  Set-Cookie:
150
- - BrowserId=zLWLapMfQDuUw4XC2ORLBw;Path=/;Domain=.salesforce.com;Expires=Sat,
151
- 27-Jun-2015 22:35:14 GMT
149
+ - BrowserId=qeq0i8FKR6CM0Sb9B7nswg;Path=/;Domain=.salesforce.com;Expires=Tue,
150
+ 14-Jul-2015 01:34:11 GMT
152
151
  Expires:
153
152
  - Thu, 01 Jan 1970 00:00:00 GMT
154
153
  Sforce-Limit-Info:
155
- - api-usage=5/15000
154
+ - api-usage=806/15000
156
155
  Content-Type:
157
156
  - application/json;charset=UTF-8
158
157
  Transfer-Encoding:
159
158
  - chunked
160
159
  body:
161
160
  encoding: ASCII-8BIT
162
- string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LNK5AAO"},"Id":"a001a000001LNK5AAO","SystemModstamp":"2015-04-08T20:49:02.000+0000","Name":"Custom
163
- object","Example_Field__c":"Some sample text"},{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001Sr0FAAS"},"Id":"a001a000001Sr0FAAS","SystemModstamp":"2015-04-28T22:35:14.000+0000","Name":"Are
161
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEoAAK"},"Id":"a001a000001ZoEoAAK","SystemModstamp":"2015-05-15T01:34:08.000+0000","Name":"Are
164
162
  you going to Scarborough Fair?","Example_Field__c":"Parsley, Sage, Rosemary,
165
163
  and Thyme."}]}'
166
164
  http_version:
167
- recorded_at: Tue, 28 Apr 2015 22:35:14 GMT
165
+ recorded_at: Fri, 15 May 2015 01:34:11 GMT
168
166
  - request:
169
167
  method: delete
170
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001Sr0FAAS
168
+ uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEoAAK
171
169
  body:
172
170
  encoding: US-ASCII
173
171
  string: ''
@@ -175,7 +173,7 @@ http_interactions:
175
173
  User-Agent:
176
174
  - Faraday v0.9.1
177
175
  Authorization:
178
- - OAuth 00D1a000000H3O9!AQ4AQKiSKdgqc4RvsFXyw8iT6exh89uDmXHSdoOm02DBwGRy9GlP_kVfG5FkxxjC_xd0GhiDTxOOu7j2B3K7FlG1lJo1IecI
176
+ - OAuth 00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb
179
177
  Accept-Encoding:
180
178
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
181
179
  Accept:
@@ -186,17 +184,17 @@ http_interactions:
186
184
  message: No Content
187
185
  headers:
188
186
  Date:
189
- - Tue, 28 Apr 2015 22:35:15 GMT
187
+ - Fri, 15 May 2015 01:34:12 GMT
190
188
  Set-Cookie:
191
- - BrowserId=wCjzqpiIQKGLi3e1ZCi2hA;Path=/;Domain=.salesforce.com;Expires=Sat,
192
- 27-Jun-2015 22:35:15 GMT
189
+ - BrowserId=WZLkP1ihSbeq_nlkOpDByQ;Path=/;Domain=.salesforce.com;Expires=Tue,
190
+ 14-Jul-2015 01:34:12 GMT
193
191
  Expires:
194
192
  - Thu, 01 Jan 1970 00:00:00 GMT
195
193
  Sforce-Limit-Info:
196
- - api-usage=5/15000
194
+ - api-usage=806/15000
197
195
  body:
198
196
  encoding: UTF-8
199
197
  string: ''
200
198
  http_version:
201
- recorded_at: Tue, 28 Apr 2015 22:35:15 GMT
199
+ recorded_at: Fri, 15 May 2015 01:34:12 GMT
202
200
  recorded_with: VCR 2.9.3