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
- - Sat, 11 Apr 2015 01:29:45 GMT
24
+ - Mon, 08 Jun 2015 22:12:08 GMT
25
25
  Set-Cookie:
26
- - BrowserId=VV_spkQdR8qubm0JpfTtbw;Path=/;Domain=.salesforce.com;Expires=Wed,
27
- 10-Jun-2015 01:29:45 GMT
26
+ - BrowserId=d0QpJhNkTgaNsW-k4xL3XQ;Path=/;Domain=.salesforce.com;Expires=Fri,
27
+ 07-Aug-2015 22:12: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":"1428715785563","token_type":"Bearer","instance_url":"https://<host>","signature":"CP3JKuG7/SQHR4Dam1HfpVtvW2QDAn8O0aTFO+2REEg=","access_token":"00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj"}'
41
- http_version:
42
- recorded_at: Sat, 11 Apr 2015 01:29:46 GMT
40
+ string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801528187","token_type":"Bearer","instance_url":"https://<host>","signature":"rBxYmXgPQcB55pphZb1eue9NmpK1TjeeqXy9z0UwwIM=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
41
+ http_version:
42
+ recorded_at: Mon, 08 Jun 2015 22:12: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!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
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
- - Sat, 11 Apr 2015 01:29:46 GMT
66
+ - Mon, 08 Jun 2015 22:12:08 GMT
67
67
  Set-Cookie:
68
- - BrowserId=aInJO_P6S9CgPQAJiPLQOg;Path=/;Domain=.salesforce.com;Expires=Wed,
69
- 10-Jun-2015 01:29:46 GMT
68
+ - BrowserId=cxk5xxssRuOLf9AeJHn_sw;Path=/;Domain=.salesforce.com;Expires=Fri,
69
+ 07-Aug-2015 22:12:08 GMT
70
70
  Expires:
71
71
  - Thu, 01 Jan 1970 00:00:00 GMT
72
72
  Sforce-Limit-Info:
73
- - api-usage=170/15000
73
+ - api-usage=5/15000
74
74
  Location:
75
- - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgyAAG"
75
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF3xAAE"
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":"a001a000001LXgyAAG","success":true,"errors":[]}'
83
- http_version:
84
- recorded_at: Sat, 11 Apr 2015 01:29:47 GMT
82
+ string: '{"id":"a001a000001cF3xAAE","success":true,"errors":[]}'
83
+ http_version:
84
+ recorded_at: Mon, 08 Jun 2015 22:12:09 GMT
85
85
  - request:
86
86
  method: post
87
87
  uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c
88
88
  body:
89
89
  encoding: UTF-8
90
- string: '{"Name":"First Detail","CustomObject__c":"a001a000001LXgyAAG"}'
90
+ string: '{"Name":"First Detail","CustomObject__c":"a001a000001cF3xAAE"}'
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!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
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,38 +105,38 @@ http_interactions:
105
105
  message: Created
106
106
  headers:
107
107
  Date:
108
- - Sat, 11 Apr 2015 01:29:47 GMT
108
+ - Mon, 08 Jun 2015 22:12:08 GMT
109
109
  Set-Cookie:
110
- - BrowserId=8OuxrYcMSci9f5ucAA61Ow;Path=/;Domain=.salesforce.com;Expires=Wed,
111
- 10-Jun-2015 01:29:47 GMT
110
+ - BrowserId=CQi9eeBlTG-TTTNGWr4amw;Path=/;Domain=.salesforce.com;Expires=Fri,
111
+ 07-Aug-2015 22:12:08 GMT
112
112
  Expires:
113
113
  - Thu, 01 Jan 1970 00:00:00 GMT
114
114
  Sforce-Limit-Info:
115
- - api-usage=170/15000
115
+ - api-usage=5/15000
116
116
  Location:
117
- - "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gym7AAA"
117
+ - "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPOAA0"
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":"a011a000000gym7AAA","success":true,"errors":[]}'
125
- http_version:
126
- recorded_at: Sat, 11 Apr 2015 01:29:48 GMT
124
+ string: '{"id":"a011a000001FiPOAA0","success":true,"errors":[]}'
125
+ http_version:
126
+ recorded_at: Mon, 08 Jun 2015 22:12:10 GMT
127
127
  - request:
128
128
  method: post
129
129
  uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c
130
130
  body:
131
131
  encoding: UTF-8
132
- string: '{"Name":"Second Detail","CustomObject__c":"a001a000001LXgyAAG"}'
132
+ string: '{"Name":"Second Detail","CustomObject__c":"a001a000001cF3xAAE"}'
133
133
  headers:
134
134
  User-Agent:
135
135
  - Faraday v0.9.1
136
136
  Content-Type:
137
137
  - application/json
138
138
  Authorization:
139
- - OAuth 00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
139
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
140
140
  Accept-Encoding:
141
141
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
142
142
  Accept:
@@ -147,38 +147,38 @@ http_interactions:
147
147
  message: Created
148
148
  headers:
149
149
  Date:
150
- - Sat, 11 Apr 2015 01:29:48 GMT
150
+ - Mon, 08 Jun 2015 22:12:08 GMT
151
151
  Set-Cookie:
152
- - BrowserId=gqy-MunDTHSeKeiSBBS5Sg;Path=/;Domain=.salesforce.com;Expires=Wed,
153
- 10-Jun-2015 01:29:48 GMT
152
+ - BrowserId=ZZpIzxzBTYqNiV3zK-EjIg;Path=/;Domain=.salesforce.com;Expires=Fri,
153
+ 07-Aug-2015 22:12:08 GMT
154
154
  Expires:
155
155
  - Thu, 01 Jan 1970 00:00:00 GMT
156
156
  Sforce-Limit-Info:
157
- - api-usage=170/15000
157
+ - api-usage=5/15000
158
158
  Location:
159
- - "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gylUAAQ"
159
+ - "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPTAA0"
160
160
  Content-Type:
161
161
  - application/json;charset=UTF-8
162
162
  Transfer-Encoding:
163
163
  - chunked
164
164
  body:
165
165
  encoding: ASCII-8BIT
166
- string: '{"id":"a011a000000gylUAAQ","success":true,"errors":[]}'
167
- http_version:
168
- recorded_at: Sat, 11 Apr 2015 01:29:49 GMT
166
+ string: '{"id":"a011a000001FiPTAA0","success":true,"errors":[]}'
167
+ http_version:
168
+ recorded_at: Mon, 08 Jun 2015 22:12:10 GMT
169
169
  - request:
170
170
  method: post
171
171
  uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c
172
172
  body:
173
173
  encoding: UTF-8
174
- string: '{"Name":"Third Detail","CustomObject__c":"a001a000001LXgyAAG"}'
174
+ string: '{"Name":"Third Detail","CustomObject__c":"a001a000001cF3xAAE"}'
175
175
  headers:
176
176
  User-Agent:
177
177
  - Faraday v0.9.1
178
178
  Content-Type:
179
179
  - application/json
180
180
  Authorization:
181
- - OAuth 00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
181
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
182
182
  Accept-Encoding:
183
183
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
184
184
  Accept:
@@ -189,28 +189,28 @@ http_interactions:
189
189
  message: Created
190
190
  headers:
191
191
  Date:
192
- - Sat, 11 Apr 2015 01:29:49 GMT
192
+ - Mon, 08 Jun 2015 22:12:09 GMT
193
193
  Set-Cookie:
194
- - BrowserId=eVURrnNBQvqY48EHi_z8ZQ;Path=/;Domain=.salesforce.com;Expires=Wed,
195
- 10-Jun-2015 01:29:49 GMT
194
+ - BrowserId=b53z30RTRmivcmz9vrzTPw;Path=/;Domain=.salesforce.com;Expires=Fri,
195
+ 07-Aug-2015 22:12:09 GMT
196
196
  Expires:
197
197
  - Thu, 01 Jan 1970 00:00:00 GMT
198
198
  Sforce-Limit-Info:
199
- - api-usage=170/15000
199
+ - api-usage=6/15000
200
200
  Location:
201
- - "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gymCAAQ"
201
+ - "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPYAA0"
202
202
  Content-Type:
203
203
  - application/json;charset=UTF-8
204
204
  Transfer-Encoding:
205
205
  - chunked
206
206
  body:
207
207
  encoding: ASCII-8BIT
208
- string: '{"id":"a011a000000gymCAAQ","success":true,"errors":[]}'
209
- http_version:
210
- recorded_at: Sat, 11 Apr 2015 01:29:50 GMT
208
+ string: '{"id":"a011a000001FiPYAA0","success":true,"errors":[]}'
209
+ http_version:
210
+ recorded_at: Mon, 08 Jun 2015 22:12:10 GMT
211
211
  - request:
212
212
  method: get
213
- uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001LXgyAAG%27
213
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001cF3xAAE%27
214
214
  body:
215
215
  encoding: US-ASCII
216
216
  string: ''
@@ -218,7 +218,7 @@ http_interactions:
218
218
  User-Agent:
219
219
  - Faraday v0.9.1
220
220
  Authorization:
221
- - OAuth 00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
221
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
222
222
  Accept-Encoding:
223
223
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
224
224
  Accept:
@@ -229,27 +229,27 @@ http_interactions:
229
229
  message: OK
230
230
  headers:
231
231
  Date:
232
- - Sat, 11 Apr 2015 01:29:50 GMT
232
+ - Mon, 08 Jun 2015 22:12:09 GMT
233
233
  Set-Cookie:
234
- - BrowserId=ZhSDIpJlR1SlGlsJOOCO5w;Path=/;Domain=.salesforce.com;Expires=Wed,
235
- 10-Jun-2015 01:29:50 GMT
234
+ - BrowserId=f0Ch4DcaSRWniqVL_8HA5g;Path=/;Domain=.salesforce.com;Expires=Fri,
235
+ 07-Aug-2015 22:12:09 GMT
236
236
  Expires:
237
237
  - Thu, 01 Jan 1970 00:00:00 GMT
238
238
  Sforce-Limit-Info:
239
- - api-usage=170/15000
239
+ - api-usage=5/15000
240
240
  Content-Type:
241
241
  - application/json;charset=UTF-8
242
242
  Transfer-Encoding:
243
243
  - chunked
244
244
  body:
245
245
  encoding: ASCII-8BIT
246
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgyAAG"},"Id":"a001a000001LXgyAAG","SystemModstamp":"2015-04-11T01:29:46.000+0000","Name":"Sample
246
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF3xAAE"},"Id":"a001a000001cF3xAAE","SystemModstamp":"2015-06-08T22:12:08.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"Sample
247
247
  object","Example_Field__c":null}]}'
248
- http_version:
249
- recorded_at: Sat, 11 Apr 2015 01:29:51 GMT
248
+ http_version:
249
+ recorded_at: Mon, 08 Jun 2015 22:12:10 GMT
250
250
  - request:
251
251
  method: get
252
- uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20CustomObject__c%20from%20CustomObjectDetail__c%20where%20CustomObject__c%20=%20%27a001a000001LXgyAAG%27
252
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20CustomObject__c%20from%20CustomObjectDetail__c%20where%20CustomObject__c%20=%20%27a001a000001cF3xAAE%27
253
253
  body:
254
254
  encoding: US-ASCII
255
255
  string: ''
@@ -257,7 +257,7 @@ http_interactions:
257
257
  User-Agent:
258
258
  - Faraday v0.9.1
259
259
  Authorization:
260
- - OAuth 00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
260
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
261
261
  Accept-Encoding:
262
262
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
263
263
  Accept:
@@ -268,29 +268,29 @@ http_interactions:
268
268
  message: OK
269
269
  headers:
270
270
  Date:
271
- - Sat, 11 Apr 2015 01:29:51 GMT
271
+ - Mon, 08 Jun 2015 22:12:09 GMT
272
272
  Set-Cookie:
273
- - BrowserId=TPsGnc-QRp6JWQdNY6H7nw;Path=/;Domain=.salesforce.com;Expires=Wed,
274
- 10-Jun-2015 01:29:51 GMT
273
+ - BrowserId=GSNSBCefRaqhcDvtOnIm_Q;Path=/;Domain=.salesforce.com;Expires=Fri,
274
+ 07-Aug-2015 22:12:09 GMT
275
275
  Expires:
276
276
  - Thu, 01 Jan 1970 00:00:00 GMT
277
277
  Sforce-Limit-Info:
278
- - api-usage=170/15000
278
+ - api-usage=5/15000
279
279
  Content-Type:
280
280
  - application/json;charset=UTF-8
281
281
  Transfer-Encoding:
282
282
  - chunked
283
283
  body:
284
284
  encoding: ASCII-8BIT
285
- string: '{"totalSize":3,"done":true,"records":[{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gylUAAQ"},"Id":"a011a000000gylUAAQ","SystemModstamp":"2015-04-11T01:29:48.000+0000","Name":"Second
286
- Detail","CustomObject__c":"a001a000001LXgyAAG"},{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gym7AAA"},"Id":"a011a000000gym7AAA","SystemModstamp":"2015-04-11T01:29:47.000+0000","Name":"First
287
- Detail","CustomObject__c":"a001a000001LXgyAAG"},{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gymCAAQ"},"Id":"a011a000000gymCAAQ","SystemModstamp":"2015-04-11T01:29:49.000+0000","Name":"Third
288
- Detail","CustomObject__c":"a001a000001LXgyAAG"}]}'
289
- http_version:
290
- recorded_at: Sat, 11 Apr 2015 01:29:52 GMT
285
+ string: '{"totalSize":3,"done":true,"records":[{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPOAA0"},"Id":"a011a000001FiPOAA0","SystemModstamp":"2015-06-08T22:12:08.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"First
286
+ Detail","CustomObject__c":"a001a000001cF3xAAE"},{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPYAA0"},"Id":"a011a000001FiPYAA0","SystemModstamp":"2015-06-08T22:12:09.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"Third
287
+ Detail","CustomObject__c":"a001a000001cF3xAAE"},{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPTAA0"},"Id":"a011a000001FiPTAA0","SystemModstamp":"2015-06-08T22:12:08.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"Second
288
+ Detail","CustomObject__c":"a001a000001cF3xAAE"}]}'
289
+ http_version:
290
+ recorded_at: Mon, 08 Jun 2015 22:12:11 GMT
291
291
  - request:
292
292
  method: delete
293
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgyAAG
293
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF3xAAE
294
294
  body:
295
295
  encoding: US-ASCII
296
296
  string: ''
@@ -298,7 +298,7 @@ http_interactions:
298
298
  User-Agent:
299
299
  - Faraday v0.9.1
300
300
  Authorization:
301
- - OAuth 00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
301
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
302
302
  Accept-Encoding:
303
303
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
304
304
  Accept:
@@ -309,22 +309,22 @@ http_interactions:
309
309
  message: No Content
310
310
  headers:
311
311
  Date:
312
- - Sat, 11 Apr 2015 01:29:52 GMT
312
+ - Mon, 08 Jun 2015 22:12:09 GMT
313
313
  Set-Cookie:
314
- - BrowserId=GPOLOtEhRjOj-ZQI9VhL_A;Path=/;Domain=.salesforce.com;Expires=Wed,
315
- 10-Jun-2015 01:29:52 GMT
314
+ - BrowserId=eZVKUi0GRKagIpQz802ZRQ;Path=/;Domain=.salesforce.com;Expires=Fri,
315
+ 07-Aug-2015 22:12:09 GMT
316
316
  Expires:
317
317
  - Thu, 01 Jan 1970 00:00:00 GMT
318
318
  Sforce-Limit-Info:
319
- - api-usage=170/15000
319
+ - api-usage=5/15000
320
320
  body:
321
321
  encoding: UTF-8
322
322
  string: ''
323
- http_version:
324
- recorded_at: Sat, 11 Apr 2015 01:29:53 GMT
323
+ http_version:
324
+ recorded_at: Mon, 08 Jun 2015 22:12:11 GMT
325
325
  - request:
326
326
  method: delete
327
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gym7AAA
327
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPOAA0
328
328
  body:
329
329
  encoding: US-ASCII
330
330
  string: ''
@@ -332,7 +332,7 @@ http_interactions:
332
332
  User-Agent:
333
333
  - Faraday v0.9.1
334
334
  Authorization:
335
- - OAuth 00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
335
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
336
336
  Accept-Encoding:
337
337
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
338
338
  Accept:
@@ -343,14 +343,14 @@ http_interactions:
343
343
  message: Not Found
344
344
  headers:
345
345
  Date:
346
- - Sat, 11 Apr 2015 01:29:53 GMT
346
+ - Mon, 08 Jun 2015 22:12:09 GMT
347
347
  Set-Cookie:
348
- - BrowserId=X2FYj_rwQ46ZEYVmd34Ehg;Path=/;Domain=.salesforce.com;Expires=Wed,
349
- 10-Jun-2015 01:29:53 GMT
348
+ - BrowserId=Dp-zDpkBQ9CFsqkk8amcpQ;Path=/;Domain=.salesforce.com;Expires=Fri,
349
+ 07-Aug-2015 22:12:09 GMT
350
350
  Expires:
351
351
  - Thu, 01 Jan 1970 00:00:00 GMT
352
352
  Sforce-Limit-Info:
353
- - api-usage=170/15000
353
+ - api-usage=7/15000
354
354
  Content-Type:
355
355
  - application/json;charset=UTF-8
356
356
  Transfer-Encoding:
@@ -358,11 +358,11 @@ http_interactions:
358
358
  body:
359
359
  encoding: UTF-8
360
360
  string: '[{"message":"entity is deleted","errorCode":"ENTITY_IS_DELETED","fields":[]}]'
361
- http_version:
362
- recorded_at: Sat, 11 Apr 2015 01:29:54 GMT
361
+ http_version:
362
+ recorded_at: Mon, 08 Jun 2015 22:12:11 GMT
363
363
  - request:
364
364
  method: delete
365
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gylUAAQ
365
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPTAA0
366
366
  body:
367
367
  encoding: US-ASCII
368
368
  string: ''
@@ -370,7 +370,7 @@ http_interactions:
370
370
  User-Agent:
371
371
  - Faraday v0.9.1
372
372
  Authorization:
373
- - OAuth 00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
373
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
374
374
  Accept-Encoding:
375
375
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
376
376
  Accept:
@@ -381,14 +381,14 @@ http_interactions:
381
381
  message: Not Found
382
382
  headers:
383
383
  Date:
384
- - Sat, 11 Apr 2015 01:29:54 GMT
384
+ - Mon, 08 Jun 2015 22:12:10 GMT
385
385
  Set-Cookie:
386
- - BrowserId=0F4dFZ8OT_i3EZx6ySX99w;Path=/;Domain=.salesforce.com;Expires=Wed,
387
- 10-Jun-2015 01:29:54 GMT
386
+ - BrowserId=zGSIONIeT0KJCfZUJ3PLsg;Path=/;Domain=.salesforce.com;Expires=Fri,
387
+ 07-Aug-2015 22:12:10 GMT
388
388
  Expires:
389
389
  - Thu, 01 Jan 1970 00:00:00 GMT
390
390
  Sforce-Limit-Info:
391
- - api-usage=170/15000
391
+ - api-usage=5/15000
392
392
  Content-Type:
393
393
  - application/json;charset=UTF-8
394
394
  Transfer-Encoding:
@@ -396,11 +396,11 @@ http_interactions:
396
396
  body:
397
397
  encoding: UTF-8
398
398
  string: '[{"message":"entity is deleted","errorCode":"ENTITY_IS_DELETED","fields":[]}]'
399
- http_version:
400
- recorded_at: Sat, 11 Apr 2015 01:29:55 GMT
399
+ http_version:
400
+ recorded_at: Mon, 08 Jun 2015 22:12:11 GMT
401
401
  - request:
402
402
  method: delete
403
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gymCAAQ
403
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPYAA0
404
404
  body:
405
405
  encoding: US-ASCII
406
406
  string: ''
@@ -408,7 +408,7 @@ http_interactions:
408
408
  User-Agent:
409
409
  - Faraday v0.9.1
410
410
  Authorization:
411
- - OAuth 00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
411
+ - OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
412
412
  Accept-Encoding:
413
413
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
414
414
  Accept:
@@ -419,14 +419,14 @@ http_interactions:
419
419
  message: Not Found
420
420
  headers:
421
421
  Date:
422
- - Sat, 11 Apr 2015 01:29:56 GMT
422
+ - Mon, 08 Jun 2015 22:12:10 GMT
423
423
  Set-Cookie:
424
- - BrowserId=fa1WPMDhTqGrd6tI4KrzYQ;Path=/;Domain=.salesforce.com;Expires=Wed,
425
- 10-Jun-2015 01:29:56 GMT
424
+ - BrowserId=XgiF9JpjQl2HbEjKaXVgCg;Path=/;Domain=.salesforce.com;Expires=Fri,
425
+ 07-Aug-2015 22:12:10 GMT
426
426
  Expires:
427
427
  - Thu, 01 Jan 1970 00:00:00 GMT
428
428
  Sforce-Limit-Info:
429
- - api-usage=170/15000
429
+ - api-usage=5/15000
430
430
  Content-Type:
431
431
  - application/json;charset=UTF-8
432
432
  Transfer-Encoding:
@@ -434,6 +434,6 @@ http_interactions:
434
434
  body:
435
435
  encoding: UTF-8
436
436
  string: '[{"message":"entity is deleted","errorCode":"ENTITY_IS_DELETED","fields":[]}]'
437
- http_version:
438
- recorded_at: Sat, 11 Apr 2015 01:29:57 GMT
437
+ http_version:
438
+ recorded_at: Mon, 08 Jun 2015 22:12:11 GMT
439
439
  recorded_with: VCR 2.9.3