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 06:42:59 GMT
24
+ - Mon, 08 Jun 2015 22:12:15 GMT
25
25
  Set-Cookie:
26
- - BrowserId=u-7EnRPMQEOh3y4FZAIEHg;Path=/;Domain=.salesforce.com;Expires=Wed,
27
- 10-Jun-2015 06:42:59 GMT
26
+ - BrowserId=b249nkLHTkOlmMxdg1jR7g;Path=/;Domain=.salesforce.com;Expires=Fri,
27
+ 07-Aug-2015 22:12:15 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":"1428734579132","token_type":"Bearer","instance_url":"https://<host>","signature":"22v+bPU50gx+t0KAwCUnZYB07Lyh/CzrwLhWUeAOwQs=","access_token":"00D1a000000H3O9!AQ4AQIyTuSKn1TCR6oX6k4qCgK2hb4xjUYNDY3Jrprus.eG.vfY9WTiqMBJovOXyNilB_lzfaHH0cbBzfmw1gYcg7_8PyEzx"}'
41
- http_version:
42
- recorded_at: Sat, 11 Apr 2015 06:42:59 GMT
40
+ string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801535781","token_type":"Bearer","instance_url":"https://<host>","signature":"oNi9HB+lnY4h1s4exktZvQyzwWDzt3DQ8v7hWQ7WmDc=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
41
+ http_version:
42
+ recorded_at: Mon, 08 Jun 2015 22:12:17 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!AQ4AQIyTuSKn1TCR6oX6k4qCgK2hb4xjUYNDY3Jrprus.eG.vfY9WTiqMBJovOXyNilB_lzfaHH0cbBzfmw1gYcg7_8PyEzx
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 06:43:00 GMT
66
+ - Mon, 08 Jun 2015 22:12:15 GMT
67
67
  Set-Cookie:
68
- - BrowserId=iL1n2l9wSwa25t41vHCoEg;Path=/;Domain=.salesforce.com;Expires=Wed,
69
- 10-Jun-2015 06:43:00 GMT
68
+ - BrowserId=SRPqp0RJStqaT_uNAZ807Q;Path=/;Domain=.salesforce.com;Expires=Fri,
69
+ 07-Aug-2015 22:12:15 GMT
70
70
  Expires:
71
71
  - Thu, 01 Jan 1970 00:00:00 GMT
72
72
  Sforce-Limit-Info:
73
- - api-usage=153/15000
73
+ - api-usage=6/15000
74
74
  Location:
75
- - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXq2AAG"
75
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF4HAAU"
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":"a001a000001LXq2AAG","success":true,"errors":[]}'
83
- http_version:
84
- recorded_at: Sat, 11 Apr 2015 06:43:00 GMT
82
+ string: '{"id":"a001a000001cF4HAAU","success":true,"errors":[]}'
83
+ http_version:
84
+ recorded_at: Mon, 08 Jun 2015 22:12:17 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: '{"CustomObject__c":"a001a000001LXq2AAG"}'
90
+ string: '{"CustomObject__c":"a001a000001cF4HAAU"}'
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!AQ4AQIyTuSKn1TCR6oX6k4qCgK2hb4xjUYNDY3Jrprus.eG.vfY9WTiqMBJovOXyNilB_lzfaHH0cbBzfmw1gYcg7_8PyEzx
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
- - Sat, 11 Apr 2015 06:43:01 GMT
108
+ - Mon, 08 Jun 2015 22:12:16 GMT
109
109
  Set-Cookie:
110
- - BrowserId=2y5mWp0eR0ighxHLFk0XPg;Path=/;Domain=.salesforce.com;Expires=Wed,
111
- 10-Jun-2015 06:43:01 GMT
110
+ - BrowserId=y22DrGUxS1K6GnnPUKlm-g;Path=/;Domain=.salesforce.com;Expires=Fri,
111
+ 07-Aug-2015 22:12:16 GMT
112
112
  Expires:
113
113
  - Thu, 01 Jan 1970 00:00:00 GMT
114
114
  Sforce-Limit-Info:
115
- - api-usage=153/15000
115
+ - api-usage=7/15000
116
116
  Location:
117
- - "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gyxMAAQ"
117
+ - "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPdAAK"
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":"a011a000000gyxMAAQ","success":true,"errors":[]}'
125
- http_version:
126
- recorded_at: Sat, 11 Apr 2015 06:43:01 GMT
124
+ string: '{"id":"a011a000001FiPdAAK","success":true,"errors":[]}'
125
+ http_version:
126
+ recorded_at: Mon, 08 Jun 2015 22:12:17 GMT
127
127
  - request:
128
128
  method: get
129
- uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20CustomObject__c%20from%20CustomObjectDetail__c%20where%20Id%20=%20%27a011a000000gyxMAAQ%27
129
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20CustomObject__c%20from%20CustomObjectDetail__c%20where%20Id%20=%20%27a011a000001FiPdAAK%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!AQ4AQIyTuSKn1TCR6oX6k4qCgK2hb4xjUYNDY3Jrprus.eG.vfY9WTiqMBJovOXyNilB_lzfaHH0cbBzfmw1gYcg7_8PyEzx
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
- - Sat, 11 Apr 2015 06:43:02 GMT
148
+ - Mon, 08 Jun 2015 22:12:16 GMT
149
149
  Set-Cookie:
150
- - BrowserId=sRFL1Q8DQm-fm1RgKmjBIw;Path=/;Domain=.salesforce.com;Expires=Wed,
151
- 10-Jun-2015 06:43:02 GMT
150
+ - BrowserId=8nCiZecRR9ebP1GFwv-IVQ;Path=/;Domain=.salesforce.com;Expires=Fri,
151
+ 07-Aug-2015 22:12:16 GMT
152
152
  Expires:
153
153
  - Thu, 01 Jan 1970 00:00:00 GMT
154
154
  Sforce-Limit-Info:
155
- - api-usage=153/15000
155
+ - api-usage=8/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":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gyxMAAQ"},"Id":"a011a000000gyxMAAQ","SystemModstamp":"2015-04-11T06:43:01.000+0000","Name":"a011a000000gyxM","CustomObject__c":"a001a000001LXq2AAG"}]}'
163
- http_version:
164
- recorded_at: Sat, 11 Apr 2015 06:43:02 GMT
162
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPdAAK"},"Id":"a011a000001FiPdAAK","SystemModstamp":"2015-06-08T22:12:16.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a011a000001FiPd","CustomObject__c":"a001a000001cF4HAAU"}]}'
163
+ http_version:
164
+ recorded_at: Mon, 08 Jun 2015 22:12:17 GMT
165
165
  - request:
166
166
  method: get
167
- uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20CustomObject__c%20from%20CustomObjectDetail__c%20where%20Id%20=%20%27a011a000000gyxMAAQ%27
167
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20CustomObject__c%20from%20CustomObjectDetail__c%20where%20Id%20=%20%27a011a000001FiPdAAK%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!AQ4AQIyTuSKn1TCR6oX6k4qCgK2hb4xjUYNDY3Jrprus.eG.vfY9WTiqMBJovOXyNilB_lzfaHH0cbBzfmw1gYcg7_8PyEzx
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
- - Sat, 11 Apr 2015 06:43:03 GMT
186
+ - Mon, 08 Jun 2015 22:12:16 GMT
187
187
  Set-Cookie:
188
- - BrowserId=BKTUJbnMQMyam6jgObGEQA;Path=/;Domain=.salesforce.com;Expires=Wed,
189
- 10-Jun-2015 06:43:03 GMT
188
+ - BrowserId=sEvVdhGjTzq4Fd2NF-3Tyw;Path=/;Domain=.salesforce.com;Expires=Fri,
189
+ 07-Aug-2015 22:12:16 GMT
190
190
  Expires:
191
191
  - Thu, 01 Jan 1970 00:00:00 GMT
192
192
  Sforce-Limit-Info:
193
- - api-usage=153/15000
193
+ - api-usage=7/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":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gyxMAAQ"},"Id":"a011a000000gyxMAAQ","SystemModstamp":"2015-04-11T06:43:01.000+0000","Name":"a011a000000gyxM","CustomObject__c":"a001a000001LXq2AAG"}]}'
201
- http_version:
202
- recorded_at: Sat, 11 Apr 2015 06:43:04 GMT
200
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPdAAK"},"Id":"a011a000001FiPdAAK","SystemModstamp":"2015-06-08T22:12:16.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a011a000001FiPd","CustomObject__c":"a001a000001cF4HAAU"}]}'
201
+ http_version:
202
+ recorded_at: Mon, 08 Jun 2015 22:12:18 GMT
203
203
  - request:
204
204
  method: delete
205
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXq2AAG
205
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF4HAAU
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!AQ4AQIyTuSKn1TCR6oX6k4qCgK2hb4xjUYNDY3Jrprus.eG.vfY9WTiqMBJovOXyNilB_lzfaHH0cbBzfmw1gYcg7_8PyEzx
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
- - Sat, 11 Apr 2015 06:43:04 GMT
224
+ - Mon, 08 Jun 2015 22:12:16 GMT
225
225
  Set-Cookie:
226
- - BrowserId=ADr5HBxESOiPA9wrwXFnmw;Path=/;Domain=.salesforce.com;Expires=Wed,
227
- 10-Jun-2015 06:43:04 GMT
226
+ - BrowserId=XvMgq4viRo2akdr8SEGgOA;Path=/;Domain=.salesforce.com;Expires=Fri,
227
+ 07-Aug-2015 22:12:16 GMT
228
228
  Expires:
229
229
  - Thu, 01 Jan 1970 00:00:00 GMT
230
230
  Sforce-Limit-Info:
231
- - api-usage=154/15000
231
+ - api-usage=7/15000
232
232
  body:
233
233
  encoding: UTF-8
234
234
  string: ''
235
- http_version:
236
- recorded_at: Sat, 11 Apr 2015 06:43:05 GMT
235
+ http_version:
236
+ recorded_at: Mon, 08 Jun 2015 22:12:18 GMT
237
237
  - request:
238
238
  method: delete
239
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000000gyxMAAQ
239
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiPdAAK
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!AQ4AQIyTuSKn1TCR6oX6k4qCgK2hb4xjUYNDY3Jrprus.eG.vfY9WTiqMBJovOXyNilB_lzfaHH0cbBzfmw1gYcg7_8PyEzx
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,14 +255,14 @@ http_interactions:
255
255
  message: Not Found
256
256
  headers:
257
257
  Date:
258
- - Sat, 11 Apr 2015 06:43:05 GMT
258
+ - Mon, 08 Jun 2015 22:12:16 GMT
259
259
  Set-Cookie:
260
- - BrowserId=Ch5ajP1eRXSAfvcy_VMG0g;Path=/;Domain=.salesforce.com;Expires=Wed,
261
- 10-Jun-2015 06:43:05 GMT
260
+ - BrowserId=WfQQEGbsRNqI6P-L07-IAw;Path=/;Domain=.salesforce.com;Expires=Fri,
261
+ 07-Aug-2015 22:12:16 GMT
262
262
  Expires:
263
263
  - Thu, 01 Jan 1970 00:00:00 GMT
264
264
  Sforce-Limit-Info:
265
- - api-usage=154/15000
265
+ - api-usage=7/15000
266
266
  Content-Type:
267
267
  - application/json;charset=UTF-8
268
268
  Transfer-Encoding:
@@ -270,6 +270,6 @@ http_interactions:
270
270
  body:
271
271
  encoding: UTF-8
272
272
  string: '[{"message":"entity is deleted","errorCode":"ENTITY_IS_DELETED","fields":[]}]'
273
- http_version:
274
- recorded_at: Sat, 11 Apr 2015 06:43:06 GMT
273
+ http_version:
274
+ recorded_at: Mon, 08 Jun 2015 22:12:18 GMT
275
275
  recorded_with: VCR 2.9.3