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, 04 May 2015 03:11:53 GMT
24
+ - Mon, 08 Jun 2015 22:13:12 GMT
25
25
  Set-Cookie:
26
- - BrowserId=xMX1dTw3TIGcKjfx_Cujpw;Path=/;Domain=.salesforce.com;Expires=Fri,
27
- 03-Jul-2015 03:11:53 GMT
26
+ - BrowserId=rTItl4RwRdyKlJbq5P8IXw;Path=/;Domain=.salesforce.com;Expires=Fri,
27
+ 07-Aug-2015 22:13:12 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":"1430709113521","token_type":"Bearer","instance_url":"https://<host>","signature":"2BWFc3pyXdIWgSNtXnE+OpZDdD+Oas7Mk3KKVvtfEzw=","access_token":"00D1a000000H3O9!AQ4AQNDrKHLCuinZBZ4a3F0V9mX6K..kuE6uPghr4hEJlGztbaV7OXvvfrl14zZZxgwsTH9RfcLkE1Wikbn..Xma3Bd5XKSX"}'
41
- http_version:
42
- recorded_at: Mon, 04 May 2015 03:11:53 GMT
40
+ string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801592354","token_type":"Bearer","instance_url":"https://<host>","signature":"FGNgNSVt8fvGtlvH695klUqpcIT9k3bhSdR5/bDTomc=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
41
+ http_version:
42
+ recorded_at: Mon, 08 Jun 2015 22:13:13 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!AQ4AQNDrKHLCuinZBZ4a3F0V9mX6K..kuE6uPghr4hEJlGztbaV7OXvvfrl14zZZxgwsTH9RfcLkE1Wikbn..Xma3Bd5XKSX
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, 04 May 2015 03:11:54 GMT
66
+ - Mon, 08 Jun 2015 22:13:12 GMT
67
67
  Set-Cookie:
68
- - BrowserId=5-H8lcRDTYW0wIDWnj21qA;Path=/;Domain=.salesforce.com;Expires=Fri,
69
- 03-Jul-2015 03:11:54 GMT
68
+ - BrowserId=RU7t89JoQvGnFDQHPbb1-A;Path=/;Domain=.salesforce.com;Expires=Fri,
69
+ 07-Aug-2015 22:13:12 GMT
70
70
  Expires:
71
71
  - Thu, 01 Jan 1970 00:00:00 GMT
72
72
  Sforce-Limit-Info:
73
- - api-usage=66/15000
73
+ - api-usage=74/15000
74
74
  Location:
75
- - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001U16VAAS"
75
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF7BAAU"
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":"a001a000001U16VAAS","success":true,"errors":[]}'
83
- http_version:
84
- recorded_at: Mon, 04 May 2015 03:11:54 GMT
82
+ string: '{"id":"a001a000001cF7BAAU","success":true,"errors":[]}'
83
+ http_version:
84
+ recorded_at: Mon, 08 Jun 2015 22:13:14 GMT
85
85
  - request:
86
86
  method: delete
87
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001U16VAAS
87
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF7BAAU
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!AQ4AQNDrKHLCuinZBZ4a3F0V9mX6K..kuE6uPghr4hEJlGztbaV7OXvvfrl14zZZxgwsTH9RfcLkE1Wikbn..Xma3Bd5XKSX
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,17 +103,17 @@ http_interactions:
103
103
  message: No Content
104
104
  headers:
105
105
  Date:
106
- - Mon, 04 May 2015 03:11:55 GMT
106
+ - Mon, 08 Jun 2015 22:13:12 GMT
107
107
  Set-Cookie:
108
- - BrowserId=7IbTrRJmRZCYf_zWQWFUKQ;Path=/;Domain=.salesforce.com;Expires=Fri,
109
- 03-Jul-2015 03:11:55 GMT
108
+ - BrowserId=q2c4WS8JQdqVjKNdMoT4sw;Path=/;Domain=.salesforce.com;Expires=Fri,
109
+ 07-Aug-2015 22:13:12 GMT
110
110
  Expires:
111
111
  - Thu, 01 Jan 1970 00:00:00 GMT
112
112
  Sforce-Limit-Info:
113
- - api-usage=66/15000
113
+ - api-usage=68/15000
114
114
  body:
115
115
  encoding: UTF-8
116
116
  string: ''
117
- http_version:
118
- recorded_at: Mon, 04 May 2015 03:11:55 GMT
117
+ http_version:
118
+ recorded_at: Mon, 08 Jun 2015 22:13:14 GMT
119
119
  recorded_with: VCR 2.9.3
@@ -21,10 +21,10 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  Date:
24
- - Sat, 11 Apr 2015 01:23:50 GMT
24
+ - Mon, 08 Jun 2015 22:13:23 GMT
25
25
  Set-Cookie:
26
- - BrowserId=wxVKkgCtS0iqyMbtQnfpwg;Path=/;Domain=.salesforce.com;Expires=Wed,
27
- 10-Jun-2015 01:23:50 GMT
26
+ - BrowserId=1gyu7M9wTciKjiTPy__B6w;Path=/;Domain=.salesforce.com;Expires=Fri,
27
+ 07-Aug-2015 22:13:23 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":"1428715430707","token_type":"Bearer","instance_url":"https://<host>","signature":"GqowJrZwZnvh/FQmaN/zR2DJsm9BQNYlk+S4ewYO+s4=","access_token":"00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj"}'
41
- http_version:
42
- recorded_at: Sat, 11 Apr 2015 01:23:51 GMT
40
+ string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801603354","token_type":"Bearer","instance_url":"https://<host>","signature":"w+4atIfiYsYitTK+Y4PVy6YS1O9ELl49MMofC8MCnII=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
41
+ http_version:
42
+ recorded_at: Mon, 08 Jun 2015 22:13:24 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!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:23:52 GMT
66
+ - Mon, 08 Jun 2015 22:13:23 GMT
67
67
  Set-Cookie:
68
- - BrowserId=Fw86cXceQQ6uq3NGexsHLw;Path=/;Domain=.salesforce.com;Expires=Wed,
69
- 10-Jun-2015 01:23:52 GMT
68
+ - BrowserId=5WQLWnG1SqKPIIZURHeB4w;Path=/;Domain=.salesforce.com;Expires=Fri,
69
+ 07-Aug-2015 22:13:23 GMT
70
70
  Expires:
71
71
  - Thu, 01 Jan 1970 00:00:00 GMT
72
72
  Sforce-Limit-Info:
73
- - api-usage=103/15000
73
+ - api-usage=104/15000
74
74
  Location:
75
- - "/services/data/<api_version>/sobjects/Contact/0031a000001yZN7AAM"
75
+ - "/services/data/<api_version>/sobjects/Contact/0031a000004cfNdAAI"
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":"0031a000001yZN7AAM","success":true,"errors":[]}'
83
- http_version:
84
- recorded_at: Sat, 11 Apr 2015 01:23:53 GMT
82
+ string: '{"id":"0031a000004cfNdAAI","success":true,"errors":[]}'
83
+ http_version:
84
+ recorded_at: Mon, 08 Jun 2015 22:13:25 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":"0031a000001yZN7AAM"}'
90
+ string: '{"Friend__c":"0031a000004cfNdAAI"}'
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,28 +105,28 @@ http_interactions:
105
105
  message: Created
106
106
  headers:
107
107
  Date:
108
- - Sat, 11 Apr 2015 01:23:54 GMT
108
+ - Mon, 08 Jun 2015 22:13:23 GMT
109
109
  Set-Cookie:
110
- - BrowserId=WTpUCqKNTraZywGUlNicww;Path=/;Domain=.salesforce.com;Expires=Wed,
111
- 10-Jun-2015 01:23:54 GMT
110
+ - BrowserId=BLsBYB6SQx-HEV_nZvfzVA;Path=/;Domain=.salesforce.com;Expires=Fri,
111
+ 07-Aug-2015 22:13:23 GMT
112
112
  Expires:
113
113
  - Thu, 01 Jan 1970 00:00:00 GMT
114
114
  Sforce-Limit-Info:
115
- - api-usage=104/15000
115
+ - api-usage=114/15000
116
116
  Location:
117
- - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgVAAW"
117
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF43AAE"
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":"a001a000001LXgVAAW","success":true,"errors":[]}'
125
- http_version:
126
- recorded_at: Sat, 11 Apr 2015 01:23:54 GMT
124
+ string: '{"id":"a001a000001cF43AAE","success":true,"errors":[]}'
125
+ http_version:
126
+ recorded_at: Mon, 08 Jun 2015 22:13:25 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%27a001a000001LXgVAAW%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%27a001a000001cF43AAE%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!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
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,10 +145,10 @@ http_interactions:
145
145
  message: OK
146
146
  headers:
147
147
  Date:
148
- - Sat, 11 Apr 2015 01:23:55 GMT
148
+ - Mon, 08 Jun 2015 22:13:24 GMT
149
149
  Set-Cookie:
150
- - BrowserId=yLwk0BE-Ss220Wk6te85NQ;Path=/;Domain=.salesforce.com;Expires=Wed,
151
- 10-Jun-2015 01:23:55 GMT
150
+ - BrowserId=FC-2cmbLQ3-Z3KkNAC55aQ;Path=/;Domain=.salesforce.com;Expires=Fri,
151
+ 07-Aug-2015 22:13:24 GMT
152
152
  Expires:
153
153
  - Thu, 01 Jan 1970 00:00:00 GMT
154
154
  Sforce-Limit-Info:
@@ -159,12 +159,12 @@ http_interactions:
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/a001a000001LXgVAAW"},"Id":"a001a000001LXgVAAW","SystemModstamp":"2015-04-11T01:23:54.000+0000","Name":"a001a000001LXgV","Example_Field__c":null,"Friend__c":"0031a000001yZN7AAM"}]}'
163
- http_version:
164
- recorded_at: Sat, 11 Apr 2015 01:23:56 GMT
162
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF43AAE"},"Id":"a001a000001cF43AAE","SystemModstamp":"2015-06-08T22:13:23.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000001cF43","Example_Field__c":null,"Friend__c":"0031a000004cfNdAAI"}]}'
163
+ http_version:
164
+ recorded_at: Mon, 08 Jun 2015 22:13:25 GMT
165
165
  - request:
166
166
  method: get
167
- 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%27a001a000001LXgVAAW%27
167
+ 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%27a001a000001cF43AAE%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!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
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 01:23:57 GMT
186
+ - Mon, 08 Jun 2015 22:13:24 GMT
187
187
  Set-Cookie:
188
- - BrowserId=FXOhyMjuTeOqg7AeJJPytw;Path=/;Domain=.salesforce.com;Expires=Wed,
189
- 10-Jun-2015 01:23:57 GMT
188
+ - BrowserId=9RWzdIPvR6SABGIW4aFvng;Path=/;Domain=.salesforce.com;Expires=Fri,
189
+ 07-Aug-2015 22:13:24 GMT
190
190
  Expires:
191
191
  - Thu, 01 Jan 1970 00:00:00 GMT
192
192
  Sforce-Limit-Info:
193
- - api-usage=105/15000
193
+ - api-usage=104/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":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgVAAW"},"Id":"a001a000001LXgVAAW","SystemModstamp":"2015-04-11T01:23:54.000+0000","Name":"a001a000001LXgV","Example_Field__c":null,"Friend__c":"0031a000001yZN7AAM"}]}'
201
- http_version:
202
- recorded_at: Sat, 11 Apr 2015 01:23:58 GMT
200
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF43AAE"},"Id":"a001a000001cF43AAE","SystemModstamp":"2015-06-08T22:13:23.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000001cF43","Example_Field__c":null,"Friend__c":"0031a000004cfNdAAI"}]}'
201
+ http_version:
202
+ recorded_at: Mon, 08 Jun 2015 22:13:25 GMT
203
203
  - request:
204
204
  method: delete
205
- uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000001yZN7AAM
205
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000004cfNdAAI
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!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
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 01:23:58 GMT
224
+ - Mon, 08 Jun 2015 22:13:24 GMT
225
225
  Set-Cookie:
226
- - BrowserId=UBitBTBlSxCu9Zf0gKy-Gg;Path=/;Domain=.salesforce.com;Expires=Wed,
227
- 10-Jun-2015 01:23:58 GMT
226
+ - BrowserId=10nsVKWqSSSSP32WEV-NkA;Path=/;Domain=.salesforce.com;Expires=Fri,
227
+ 07-Aug-2015 22:13:24 GMT
228
228
  Expires:
229
229
  - Thu, 01 Jan 1970 00:00:00 GMT
230
230
  Sforce-Limit-Info:
231
- - api-usage=103/15000
231
+ - api-usage=106/15000
232
232
  body:
233
233
  encoding: UTF-8
234
234
  string: ''
235
- http_version:
236
- recorded_at: Sat, 11 Apr 2015 01:23:59 GMT
235
+ http_version:
236
+ recorded_at: Mon, 08 Jun 2015 22:13:26 GMT
237
237
  - request:
238
238
  method: delete
239
- uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgVAAW
239
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF43AAE
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!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj
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
- - Sat, 11 Apr 2015 01:23:59 GMT
258
+ - Mon, 08 Jun 2015 22:13:24 GMT
259
259
  Set-Cookie:
260
- - BrowserId=i1yP-cSvQdKBCnLItTDKzw;Path=/;Domain=.salesforce.com;Expires=Wed,
261
- 10-Jun-2015 01:23:59 GMT
260
+ - BrowserId=mundqCrTRjaaXBLi3LQPmA;Path=/;Domain=.salesforce.com;Expires=Fri,
261
+ 07-Aug-2015 22:13:24 GMT
262
262
  Expires:
263
263
  - Thu, 01 Jan 1970 00:00:00 GMT
264
264
  Sforce-Limit-Info:
265
- - api-usage=103/15000
265
+ - api-usage=110/15000
266
266
  body:
267
267
  encoding: UTF-8
268
268
  string: ''
269
- http_version:
270
- recorded_at: Sat, 11 Apr 2015 01:24:00 GMT
269
+ http_version:
270
+ recorded_at: Mon, 08 Jun 2015 22:13:26 GMT
271
271
  recorded_with: VCR 2.9.3