restforce-db 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/lib/restforce/db/associator.rb +1 -1
  3. data/lib/restforce/db/initializer.rb +2 -2
  4. data/lib/restforce/db/instances/active_record.rb +18 -8
  5. data/lib/restforce/db/instances/salesforce.rb +9 -0
  6. data/lib/restforce/db/synchronization_error.rb +40 -0
  7. data/lib/restforce/db/synchronizer.rb +15 -9
  8. data/lib/restforce/db/version.rb +1 -1
  9. data/lib/restforce/db.rb +9 -0
  10. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +55 -55
  11. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
  12. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +59 -59
  13. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +59 -59
  14. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +50 -50
  15. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml +59 -59
  16. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml +41 -41
  17. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/and_the_underlying_association_is_one-to-many/still_returns_a_nil_lookup_value_in_the_hash.yml +20 -20
  18. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/returns_a_nil_lookup_value_in_the_hash.yml +23 -23
  19. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +58 -58
  20. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +58 -58
  21. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/builds_a_number_of_associated_records_from_the_data_in_Salesforce.yml +98 -98
  22. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
  23. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_alrady_been_persisted/constructs_the_association_from_the_existing_records.yml +98 -98
  24. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_been_cached/uses_the_cached_records.yml +98 -98
  25. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +32 -32
  26. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +98 -98
  27. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +40 -40
  28. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/and_a_nested_association_on_the_associated_mapping/recursively_builds_all_associations.yml +86 -86
  29. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +59 -59
  30. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
  31. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +59 -59
  32. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +59 -59
  33. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +50 -50
  34. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +59 -59
  35. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +59 -59
  36. 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 +103 -103
  37. 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 +112 -112
  38. 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 +23 -23
  39. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/but_meets_conditions_for_a_parallel_mapping/does_not_drop_the_synchronized_database_record.yml +43 -45
  40. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/drops_the_synchronized_database_record.yml +41 -41
  41. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_has_been_deleted_in_Salesforce/drops_the_synchronized_database_record.yml +20 -20
  42. 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 +41 -41
  43. data/test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml +41 -41
  44. data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +41 -41
  45. data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +15 -15
  46. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_Passive_strategy/does_not_create_a_database_record.yml +23 -23
  47. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_an_Always_strategy/creates_a_matching_database_record.yml +32 -33
  48. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +59 -59
  49. data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml +32 -32
  50. data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml +32 -32
  51. data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +49 -49
  52. data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +58 -58
  53. data/test/cassettes/Restforce_DB_Instances_Salesforce/_updated_internally_/when_another_user_made_the_last_change/returns_false.yml +119 -0
  54. data/test/cassettes/Restforce_DB_Instances_Salesforce/_updated_internally_/when_our_client_made_the_last_change/returns_true.yml +158 -0
  55. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_all/returns_a_list_of_the_existing_records_in_Salesforce.yml +32 -32
  56. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +41 -41
  57. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +41 -41
  58. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +32 -32
  59. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_does_not_meet_the_conditions/does_not_find_the_record.yml +31 -31
  60. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_meets_the_conditions/finds_the_record.yml +32 -32
  61. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +14 -14
  62. data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/wants_to_build_a_new_matching_record.yml +32 -32
  63. data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/with_a_corresponding_database_record/does_not_want_to_build_a_new_record.yml +32 -32
  64. data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_a_synchronized_association_record/wants_to_build_a_new_record.yml +59 -59
  65. data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_an_existing_database_record/does_not_want_to_build_a_new_record.yml +50 -50
  66. data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_no_synchronized_association_record/does_not_want_to_build_a_new_record.yml +59 -59
  67. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +125 -49
  68. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +58 -58
  69. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_change_timestamp_is_stale/does_not_update_the_database_record.yml +125 -36
  70. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_change_timestamp_is_stale/does_not_update_the_salesforce_record.yml +44 -44
  71. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_changes_are_current/updates_the_database_record.yml +323 -0
  72. 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 +286 -0
  73. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_no_associated_database_record/does_nothing_for_this_specific_mapping.yml +41 -41
  74. data/test/lib/restforce/db/instances/active_record_test.rb +44 -0
  75. data/test/lib/restforce/db/instances/salesforce_test.rb +20 -0
  76. data/test/lib/restforce/db/synchronizer_test.rb +25 -13
  77. metadata +7 -2
@@ -21,10 +21,10 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  Date:
24
- - Mon, 20 Apr 2015 19:25:30 GMT
24
+ - Mon, 08 Jun 2015 22:13:25 GMT
25
25
  Set-Cookie:
26
- - BrowserId=CXWuPSH8QvCYOFUGY4K_-g;Path=/;Domain=.salesforce.com;Expires=Fri,
27
- 19-Jun-2015 19:25:30 GMT
26
+ - BrowserId=1e58c5YKTSmZBWQ6JZPF8g;Path=/;Domain=.salesforce.com;Expires=Fri,
27
+ 07-Aug-2015 22:13:25 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":"1429557930126","token_type":"Bearer","instance_url":"https://<host>","signature":"r67C8yGA3MlpIHibA9/5ixX6k3b4vIgUwX+3d1iC3Qs=","access_token":"00D1a000000H3O9!AQ4AQJoC69lofp3.BkQNHdxEquIbjgARO_AQ3LgRth6RSFmB4_KVDLfm9_.J64ouFAGqhXyiThQHypNf.xCD1enx2SQbZDcP"}'
41
- http_version:
42
- recorded_at: Mon, 20 Apr 2015 19:25:30 GMT
40
+ string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801605122","token_type":"Bearer","instance_url":"https://<host>","signature":"Lr2zH8d72KNS/xZ5WdutRZLFAWQxw5nxHU8s0p6DO4U=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
41
+ http_version:
42
+ recorded_at: Mon, 08 Jun 2015 22:13:26 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!AQ4AQJoC69lofp3.BkQNHdxEquIbjgARO_AQ3LgRth6RSFmB4_KVDLfm9_.J64ouFAGqhXyiThQHypNf.xCD1enx2SQbZDcP
55
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
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
- - Mon, 20 Apr 2015 19:25:31 GMT
66
+ - Mon, 08 Jun 2015 22:13:25 GMT
67
67
  Set-Cookie:
68
- - BrowserId=m-mQLSZGT5ywhOztVhoACA;Path=/;Domain=.salesforce.com;Expires=Fri,
69
- 19-Jun-2015 19:25:31 GMT
68
+ - BrowserId=AzL_4vk2S-iT1V4GBIcvoQ;Path=/;Domain=.salesforce.com;Expires=Fri,
69
+ 07-Aug-2015 22:13:25 GMT
70
70
  Expires:
71
71
  - Thu, 01 Jan 1970 00:00:00 GMT
72
72
  Sforce-Limit-Info:
73
- - api-usage=13/15000
73
+ - api-usage=116/15000
74
74
  Location:
75
- - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001MG7WAAW"
75
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF7kAAE"
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":"a001a000001MG7WAAW","success":true,"errors":[]}'
83
- http_version:
84
- recorded_at: Mon, 20 Apr 2015 19:25:31 GMT
82
+ string: '{"id":"a001a000001cF7kAAE","success":true,"errors":[]}'
83
+ http_version:
84
+ recorded_at: Mon, 08 Jun 2015 22:13:26 GMT
85
85
  - request:
86
86
  method: get
87
- uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001MG7WAAW%27
87
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001cF7kAAE%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!AQ4AQJoC69lofp3.BkQNHdxEquIbjgARO_AQ3LgRth6RSFmB4_KVDLfm9_.J64ouFAGqhXyiThQHypNf.xCD1enx2SQbZDcP
95
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
96
96
  Accept-Encoding:
97
97
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
98
98
  Accept:
@@ -103,26 +103,26 @@ http_interactions:
103
103
  message: OK
104
104
  headers:
105
105
  Date:
106
- - Mon, 20 Apr 2015 19:25:31 GMT
106
+ - Mon, 08 Jun 2015 22:13:25 GMT
107
107
  Set-Cookie:
108
- - BrowserId=7lkL7l8_SNuY-kCjNc0jFA;Path=/;Domain=.salesforce.com;Expires=Fri,
109
- 19-Jun-2015 19:25:31 GMT
108
+ - BrowserId=ZgjUeA5pRbmM9xcy_DHIWw;Path=/;Domain=.salesforce.com;Expires=Fri,
109
+ 07-Aug-2015 22:13:25 GMT
110
110
  Expires:
111
111
  - Thu, 01 Jan 1970 00:00:00 GMT
112
112
  Sforce-Limit-Info:
113
- - api-usage=13/15000
113
+ - api-usage=112/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/a001a000001MG7WAAW"},"Id":"a001a000001MG7WAAW","SystemModstamp":"2015-04-20T19:25:31.000+0000","Name":"a001a000001MG7W","Example_Field__c":null,"Friend__c":null}]}'
121
- http_version:
122
- recorded_at: Mon, 20 Apr 2015 19:25:32 GMT
120
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF7kAAE"},"Id":"a001a000001cF7kAAE","SystemModstamp":"2015-06-08T22:13:25.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000001cF7k","Example_Field__c":null,"Friend__c":null}]}'
121
+ http_version:
122
+ recorded_at: Mon, 08 Jun 2015 22:13:27 GMT
123
123
  - request:
124
124
  method: get
125
- uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%27%27
125
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Email%20from%20Contact%20where%20Id%20=%20%27%27
126
126
  body:
127
127
  encoding: US-ASCII
128
128
  string: ''
@@ -130,7 +130,7 @@ http_interactions:
130
130
  User-Agent:
131
131
  - Faraday v0.9.1
132
132
  Authorization:
133
- - OAuth 00D1a000000H3O9!AQ4AQJoC69lofp3.BkQNHdxEquIbjgARO_AQ3LgRth6RSFmB4_KVDLfm9_.J64ouFAGqhXyiThQHypNf.xCD1enx2SQbZDcP
133
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
134
134
  Accept-Encoding:
135
135
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
136
136
  Accept:
@@ -141,14 +141,14 @@ http_interactions:
141
141
  message: OK
142
142
  headers:
143
143
  Date:
144
- - Mon, 20 Apr 2015 19:25:33 GMT
144
+ - Mon, 08 Jun 2015 22:13:25 GMT
145
145
  Set-Cookie:
146
- - BrowserId=AoKaatypTjaBpGNgJAH23A;Path=/;Domain=.salesforce.com;Expires=Fri,
147
- 19-Jun-2015 19:25:33 GMT
146
+ - BrowserId=ksoXt24WSTqrB2gmbi0Zvg;Path=/;Domain=.salesforce.com;Expires=Fri,
147
+ 07-Aug-2015 22:13:25 GMT
148
148
  Expires:
149
149
  - Thu, 01 Jan 1970 00:00:00 GMT
150
150
  Sforce-Limit-Info:
151
- - api-usage=13/15000
151
+ - api-usage=122/15000
152
152
  Content-Type:
153
153
  - application/json;charset=UTF-8
154
154
  Transfer-Encoding:
@@ -156,11 +156,11 @@ http_interactions:
156
156
  body:
157
157
  encoding: ASCII-8BIT
158
158
  string: '{"totalSize":0,"done":true,"records":[]}'
159
- http_version:
160
- recorded_at: Mon, 20 Apr 2015 19:25:33 GMT
159
+ http_version:
160
+ recorded_at: Mon, 08 Jun 2015 22:13:27 GMT
161
161
  - request:
162
162
  method: delete
163
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001MG7WAAW
163
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF7kAAE
164
164
  body:
165
165
  encoding: US-ASCII
166
166
  string: ''
@@ -168,7 +168,7 @@ http_interactions:
168
168
  User-Agent:
169
169
  - Faraday v0.9.1
170
170
  Authorization:
171
- - OAuth 00D1a000000H3O9!AQ4AQJoC69lofp3.BkQNHdxEquIbjgARO_AQ3LgRth6RSFmB4_KVDLfm9_.J64ouFAGqhXyiThQHypNf.xCD1enx2SQbZDcP
171
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
172
172
  Accept-Encoding:
173
173
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
174
174
  Accept:
@@ -179,17 +179,17 @@ http_interactions:
179
179
  message: No Content
180
180
  headers:
181
181
  Date:
182
- - Mon, 20 Apr 2015 19:25:34 GMT
182
+ - Mon, 08 Jun 2015 22:13:25 GMT
183
183
  Set-Cookie:
184
- - BrowserId=GkhRvxVRRTCj8d09-Dp6Kw;Path=/;Domain=.salesforce.com;Expires=Fri,
185
- 19-Jun-2015 19:25:34 GMT
184
+ - BrowserId=mM8-Kl9cRJ-q6xPWTpK_dA;Path=/;Domain=.salesforce.com;Expires=Fri,
185
+ 07-Aug-2015 22:13:25 GMT
186
186
  Expires:
187
187
  - Thu, 01 Jan 1970 00:00:00 GMT
188
188
  Sforce-Limit-Info:
189
- - api-usage=13/15000
189
+ - api-usage=113/15000
190
190
  body:
191
191
  encoding: UTF-8
192
192
  string: ''
193
- http_version:
194
- recorded_at: Mon, 20 Apr 2015 19:25:34 GMT
193
+ http_version:
194
+ recorded_at: Mon, 08 Jun 2015 22:13:27 GMT
195
195
  recorded_with: VCR 2.9.3
@@ -21,10 +21,10 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  Date:
24
- - Thu, 23 Apr 2015 17:33:14 GMT
24
+ - Mon, 08 Jun 2015 22:12:10 GMT
25
25
  Set-Cookie:
26
- - BrowserId=OrIb41RKR1mxYX5PD2RcFQ;Path=/;Domain=.salesforce.com;Expires=Mon,
27
- 22-Jun-2015 17:33:14 GMT
26
+ - BrowserId=wYhaXKCJQtqgl4WyC1-mDA;Path=/;Domain=.salesforce.com;Expires=Fri,
27
+ 07-Aug-2015 22:12:10 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":"1429810394922","token_type":"Bearer","instance_url":"https://<host>","signature":"qD5Hnlij9mqvLquOno/CQKE+/oNFSOhawRLJvX4MVpE=","access_token":"00D1a000000H3O9!AQ4AQFoglftCDJPkzXd0wAZ6dnUwrMZEyIrpgn8BUhjwsElswNHT_M5IOJSysNJCZXw6QPBjjHcAYLoUX8bFjnXkaUCdvO1l"}'
41
- http_version:
42
- recorded_at: Thu, 23 Apr 2015 17:33:15 GMT
40
+ string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801530702","token_type":"Bearer","instance_url":"https://<host>","signature":"XIkv4Kc+q8mWSAD7LsSYDtoSBo1JikRwkNY9VE8g7lw=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
41
+ http_version:
42
+ recorded_at: Mon, 08 Jun 2015 22:12:12 GMT
43
43
  - request:
44
44
  method: post
45
45
  uri: https://<host>/services/data/<api_version>/sobjects/Contact
@@ -52,7 +52,7 @@ http_interactions:
52
52
  Content-Type:
53
53
  - application/json
54
54
  Authorization:
55
- - OAuth 00D1a000000H3O9!AQ4AQFoglftCDJPkzXd0wAZ6dnUwrMZEyIrpgn8BUhjwsElswNHT_M5IOJSysNJCZXw6QPBjjHcAYLoUX8bFjnXkaUCdvO1l
55
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
56
56
  Accept-Encoding:
57
57
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
58
  Accept:
@@ -63,38 +63,38 @@ http_interactions:
63
63
  message: Created
64
64
  headers:
65
65
  Date:
66
- - Thu, 23 Apr 2015 17:33:15 GMT
66
+ - Mon, 08 Jun 2015 22:12:10 GMT
67
67
  Set-Cookie:
68
- - BrowserId=LGloqy6ATQSeJz9TIl9ohg;Path=/;Domain=.salesforce.com;Expires=Mon,
69
- 22-Jun-2015 17:33:15 GMT
68
+ - BrowserId=HB7pTfAyT-uftGzW7AX6-g;Path=/;Domain=.salesforce.com;Expires=Fri,
69
+ 07-Aug-2015 22:12:10 GMT
70
70
  Expires:
71
71
  - Thu, 01 Jan 1970 00:00:00 GMT
72
72
  Sforce-Limit-Info:
73
- - api-usage=13/15000
73
+ - api-usage=5/15000
74
74
  Location:
75
- - "/services/data/<api_version>/sobjects/Contact/0031a000002fBHlAAM"
75
+ - "/services/data/<api_version>/sobjects/Contact/0031a000004cfMKAAY"
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":"0031a000002fBHlAAM","success":true,"errors":[]}'
83
- http_version:
84
- recorded_at: Thu, 23 Apr 2015 17:33:16 GMT
82
+ string: '{"id":"0031a000004cfMKAAY","success":true,"errors":[]}'
83
+ http_version:
84
+ recorded_at: Mon, 08 Jun 2015 22:12:13 GMT
85
85
  - request:
86
86
  method: post
87
87
  uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
88
88
  body:
89
89
  encoding: UTF-8
90
- string: '{"Friend__c":"0031a000002fBHlAAM"}'
90
+ string: '{"Friend__c":"0031a000004cfMKAAY"}'
91
91
  headers:
92
92
  User-Agent:
93
93
  - Faraday v0.9.1
94
94
  Content-Type:
95
95
  - application/json
96
96
  Authorization:
97
- - OAuth 00D1a000000H3O9!AQ4AQFoglftCDJPkzXd0wAZ6dnUwrMZEyIrpgn8BUhjwsElswNHT_M5IOJSysNJCZXw6QPBjjHcAYLoUX8bFjnXkaUCdvO1l
97
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
98
98
  Accept-Encoding:
99
99
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
100
100
  Accept:
@@ -105,28 +105,28 @@ http_interactions:
105
105
  message: Created
106
106
  headers:
107
107
  Date:
108
- - Thu, 23 Apr 2015 17:33:17 GMT
108
+ - Mon, 08 Jun 2015 22:12:11 GMT
109
109
  Set-Cookie:
110
- - BrowserId=SaqTi4_pTU6Wzn2Bfq6KEg;Path=/;Domain=.salesforce.com;Expires=Mon,
111
- 22-Jun-2015 17:33:17 GMT
110
+ - BrowserId=rXDKcxVxSqG9G-BMHBEhEA;Path=/;Domain=.salesforce.com;Expires=Fri,
111
+ 07-Aug-2015 22:12:11 GMT
112
112
  Expires:
113
113
  - Thu, 01 Jan 1970 00:00:00 GMT
114
114
  Sforce-Limit-Info:
115
- - api-usage=13/15000
115
+ - api-usage=6/15000
116
116
  Location:
117
- - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001QmhqAAC"
117
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF42AAE"
118
118
  Content-Type:
119
119
  - application/json;charset=UTF-8
120
120
  Transfer-Encoding:
121
121
  - chunked
122
122
  body:
123
123
  encoding: ASCII-8BIT
124
- string: '{"id":"a001a000001QmhqAAC","success":true,"errors":[]}'
125
- http_version:
126
- recorded_at: Thu, 23 Apr 2015 17:33:17 GMT
124
+ string: '{"id":"a001a000001cF42AAE","success":true,"errors":[]}'
125
+ http_version:
126
+ recorded_at: Mon, 08 Jun 2015 22:12:13 GMT
127
127
  - request:
128
128
  method: get
129
- uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001QmhqAAC%27
129
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001cF42AAE%27
130
130
  body:
131
131
  encoding: US-ASCII
132
132
  string: ''
@@ -134,7 +134,7 @@ http_interactions:
134
134
  User-Agent:
135
135
  - Faraday v0.9.1
136
136
  Authorization:
137
- - OAuth 00D1a000000H3O9!AQ4AQFoglftCDJPkzXd0wAZ6dnUwrMZEyIrpgn8BUhjwsElswNHT_M5IOJSysNJCZXw6QPBjjHcAYLoUX8bFjnXkaUCdvO1l
137
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
138
138
  Accept-Encoding:
139
139
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
140
  Accept:
@@ -145,26 +145,26 @@ http_interactions:
145
145
  message: OK
146
146
  headers:
147
147
  Date:
148
- - Thu, 23 Apr 2015 17:33:18 GMT
148
+ - Mon, 08 Jun 2015 22:12:11 GMT
149
149
  Set-Cookie:
150
- - BrowserId=_63UXHLGRReEluJDxNNTTg;Path=/;Domain=.salesforce.com;Expires=Mon,
151
- 22-Jun-2015 17:33:18 GMT
150
+ - BrowserId=yE1MwawzTZe6PfXjUYAySA;Path=/;Domain=.salesforce.com;Expires=Fri,
151
+ 07-Aug-2015 22:12:11 GMT
152
152
  Expires:
153
153
  - Thu, 01 Jan 1970 00:00:00 GMT
154
154
  Sforce-Limit-Info:
155
- - api-usage=13/15000
155
+ - api-usage=5/15000
156
156
  Content-Type:
157
157
  - application/json;charset=UTF-8
158
158
  Transfer-Encoding:
159
159
  - chunked
160
160
  body:
161
161
  encoding: ASCII-8BIT
162
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001QmhqAAC"},"Id":"a001a000001QmhqAAC","SystemModstamp":"2015-04-23T17:33:17.000+0000","Name":"a001a000001Qmhq","Example_Field__c":null,"Friend__c":"0031a000002fBHlAAM"}]}'
163
- http_version:
164
- recorded_at: Thu, 23 Apr 2015 17:33:18 GMT
162
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF42AAE"},"Id":"a001a000001cF42AAE","SystemModstamp":"2015-06-08T22:12:11.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000001cF42","Example_Field__c":null,"Friend__c":"0031a000004cfMKAAY"}]}'
163
+ http_version:
164
+ recorded_at: Mon, 08 Jun 2015 22:12:13 GMT
165
165
  - request:
166
166
  method: get
167
- uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000002fBHlAAM%27
167
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000004cfMKAAY%27
168
168
  body:
169
169
  encoding: US-ASCII
170
170
  string: ''
@@ -172,7 +172,7 @@ http_interactions:
172
172
  User-Agent:
173
173
  - Faraday v0.9.1
174
174
  Authorization:
175
- - OAuth 00D1a000000H3O9!AQ4AQFoglftCDJPkzXd0wAZ6dnUwrMZEyIrpgn8BUhjwsElswNHT_M5IOJSysNJCZXw6QPBjjHcAYLoUX8bFjnXkaUCdvO1l
175
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
176
176
  Accept-Encoding:
177
177
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
178
178
  Accept:
@@ -183,26 +183,26 @@ http_interactions:
183
183
  message: OK
184
184
  headers:
185
185
  Date:
186
- - Thu, 23 Apr 2015 17:33:18 GMT
186
+ - Mon, 08 Jun 2015 22:12:12 GMT
187
187
  Set-Cookie:
188
- - BrowserId=VITtDGw1SFizllC79xjnpw;Path=/;Domain=.salesforce.com;Expires=Mon,
189
- 22-Jun-2015 17:33:18 GMT
188
+ - BrowserId=kKRBoemzQzybGrHCsiAEVQ;Path=/;Domain=.salesforce.com;Expires=Fri,
189
+ 07-Aug-2015 22:12:12 GMT
190
190
  Expires:
191
191
  - Thu, 01 Jan 1970 00:00:00 GMT
192
192
  Sforce-Limit-Info:
193
- - api-usage=13/15000
193
+ - api-usage=5/15000
194
194
  Content-Type:
195
195
  - application/json;charset=UTF-8
196
196
  Transfer-Encoding:
197
197
  - chunked
198
198
  body:
199
199
  encoding: ASCII-8BIT
200
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000002fBHlAAM"},"Id":"0031a000002fBHlAAM","SystemModstamp":"2015-04-23T17:33:16.000+0000","Email":"somebody@example.com"}]}'
201
- http_version:
202
- recorded_at: Thu, 23 Apr 2015 17:33:19 GMT
200
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000004cfMKAAY"},"Id":"0031a000004cfMKAAY","SystemModstamp":"2015-06-08T22:12:11.000+0000","LastModifiedById":"0051a000000UGT8AAO","Email":"somebody@example.com"}]}'
201
+ http_version:
202
+ recorded_at: Mon, 08 Jun 2015 22:12:13 GMT
203
203
  - request:
204
204
  method: delete
205
- uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000002fBHlAAM
205
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000004cfMKAAY
206
206
  body:
207
207
  encoding: US-ASCII
208
208
  string: ''
@@ -210,7 +210,7 @@ http_interactions:
210
210
  User-Agent:
211
211
  - Faraday v0.9.1
212
212
  Authorization:
213
- - OAuth 00D1a000000H3O9!AQ4AQFoglftCDJPkzXd0wAZ6dnUwrMZEyIrpgn8BUhjwsElswNHT_M5IOJSysNJCZXw6QPBjjHcAYLoUX8bFjnXkaUCdvO1l
213
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
214
214
  Accept-Encoding:
215
215
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
216
216
  Accept:
@@ -221,22 +221,22 @@ http_interactions:
221
221
  message: No Content
222
222
  headers:
223
223
  Date:
224
- - Thu, 23 Apr 2015 17:33:19 GMT
224
+ - Mon, 08 Jun 2015 22:12:12 GMT
225
225
  Set-Cookie:
226
- - BrowserId=g_8s18RQQzKapDhMAJLIOw;Path=/;Domain=.salesforce.com;Expires=Mon,
227
- 22-Jun-2015 17:33:19 GMT
226
+ - BrowserId=ZjBTji8BRbmMlQxfFG2pcQ;Path=/;Domain=.salesforce.com;Expires=Fri,
227
+ 07-Aug-2015 22:12:12 GMT
228
228
  Expires:
229
229
  - Thu, 01 Jan 1970 00:00:00 GMT
230
230
  Sforce-Limit-Info:
231
- - api-usage=13/15000
231
+ - api-usage=6/15000
232
232
  body:
233
233
  encoding: UTF-8
234
234
  string: ''
235
- http_version:
236
- recorded_at: Thu, 23 Apr 2015 17:33:20 GMT
235
+ http_version:
236
+ recorded_at: Mon, 08 Jun 2015 22:12:14 GMT
237
237
  - request:
238
238
  method: delete
239
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001QmhqAAC
239
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF42AAE
240
240
  body:
241
241
  encoding: US-ASCII
242
242
  string: ''
@@ -244,7 +244,7 @@ http_interactions:
244
244
  User-Agent:
245
245
  - Faraday v0.9.1
246
246
  Authorization:
247
- - OAuth 00D1a000000H3O9!AQ4AQFoglftCDJPkzXd0wAZ6dnUwrMZEyIrpgn8BUhjwsElswNHT_M5IOJSysNJCZXw6QPBjjHcAYLoUX8bFjnXkaUCdvO1l
247
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
248
248
  Accept-Encoding:
249
249
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
250
250
  Accept:
@@ -255,17 +255,17 @@ http_interactions:
255
255
  message: No Content
256
256
  headers:
257
257
  Date:
258
- - Thu, 23 Apr 2015 17:33:21 GMT
258
+ - Mon, 08 Jun 2015 22:12:12 GMT
259
259
  Set-Cookie:
260
- - BrowserId=_83pmWlQSA67o0QhpVdJNQ;Path=/;Domain=.salesforce.com;Expires=Mon,
261
- 22-Jun-2015 17:33:21 GMT
260
+ - BrowserId=kRXZEiehRiWoBBp0rh-8rg;Path=/;Domain=.salesforce.com;Expires=Fri,
261
+ 07-Aug-2015 22:12:12 GMT
262
262
  Expires:
263
263
  - Thu, 01 Jan 1970 00:00:00 GMT
264
264
  Sforce-Limit-Info:
265
- - api-usage=13/15000
265
+ - api-usage=6/15000
266
266
  body:
267
267
  encoding: UTF-8
268
268
  string: ''
269
- http_version:
270
- recorded_at: Thu, 23 Apr 2015 17:33:21 GMT
269
+ http_version:
270
+ recorded_at: Mon, 08 Jun 2015 22:12:14 GMT
271
271
  recorded_with: VCR 2.9.3