restforce-db 3.1.6 → 3.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa08c096f6fb6a9549f7e763b967a679e9692d16
4
- data.tar.gz: c2a10b3654e6a934a0dadc79f95bc37aeb97edab
3
+ metadata.gz: 74c7b63ec29db54865e3f3d6e8b0b5dae05c4f91
4
+ data.tar.gz: 27664dbabac47d3b88f12af38fe768cd27e7f690
5
5
  SHA512:
6
- metadata.gz: b00954d572d1ab284e990a227dad7eed10b22f6c095526d68b6a58cb605ecaef6eb95c57678c22f19ae2474380d50a0f87b593d7421966925005e973fe0551f8
7
- data.tar.gz: 4d72dcb027f9a3cd28396b5d1bffabe3d8adf8aa28d1bc3c50d724ec65865e6c0b0ec3a2fc68628c54a3e1ccc45718f60e327e9b68900ec73329da9f7dfd2fa6
6
+ metadata.gz: d6fc19fbf1af59725404d3404f5cd7e5d05eb40c4c5cdd2d2be4676d095f7cc07bbedf6b5734e2dc637828fd89b5aabd89b010cd4f9a1db3f7ccc5166eb71989
7
+ data.tar.gz: b52f8c45b3a480acc62383d436872194c33233a495c97f60faec679d8f58a7836d95a9e2a3a7cd3b4cc261459fbba1142377e291bc08a0b0fd4f834b590892c5
data/bin/console CHANGED
File without changes
data/bin/setup CHANGED
File without changes
@@ -7,29 +7,6 @@ module Restforce
7
7
  # for a specific mapping.
8
8
  class Cleaner < Task
9
9
 
10
- # RecordsChanged is an exception which reports IDs for Salesforce records
11
- # that were updated externally during the cleaning process.
12
- class RecordsChanged < RuntimeError
13
-
14
- # Public: Initialize a new RecordsChanged exception.
15
- #
16
- # database_model - A String name of an ActiveRecord class.
17
- # salesforce_model - A String name of a Salesforce object type.
18
- # starts - A Time for the startpoint of the run.
19
- # ends - A Time for the endpoint of the run.
20
- # ids - A List of Strings representing Salesforce IDs.
21
- def initialize(database_model, salesforce_model, starts, ends, *ids)
22
- super <<-MESSAGE.sub(/\A\s+/, "").gsub(/\s+/, " ")
23
- [#{database_model}|#{salesforce_model}]
24
- (#{starts.utc.iso8601} to #{ends.utc.iso8601})
25
-
26
- The following #{salesforce_model} records were updated externally
27
- during the cleaning phase of synchronization: #{ids.join(' ')}
28
- MESSAGE
29
- end
30
-
31
- end
32
-
33
10
  # Salesforce can take a few minutes to register record deletion. This
34
11
  # buffer gives us a window of time (in seconds) to look back and see
35
12
  # records which may not have been visible in previous runs.
@@ -85,22 +62,6 @@ module Restforce
85
62
  valid_ids = valid_salesforce_ids
86
63
  all_ids = all_salesforce_ids
87
64
 
88
- updated_ids = valid_ids - all_ids
89
-
90
- unless updated_ids.empty?
91
- exception = RecordsChanged.new(
92
- @mapping.database_model,
93
- @mapping.salesforce_model,
94
- @runner.after,
95
- @runner.before,
96
- "CHANGED: #{updated_ids}",
97
- "VALID: #{valid_ids}",
98
- "ALL: #{all_ids}",
99
- )
100
-
101
- DB.logger.error(exception)
102
- end
103
-
104
65
  all_ids - valid_ids
105
66
  end
106
67
 
@@ -3,7 +3,7 @@ module Restforce
3
3
  # :nodoc:
4
4
  module DB
5
5
 
6
- VERSION = "3.1.6"
6
+ VERSION = "3.1.7"
7
7
 
8
8
  end
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restforce-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.6
4
+ version: 3.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Horner
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -392,7 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
392
392
  version: '0'
393
393
  requirements: []
394
394
  rubyforge_project:
395
- rubygems_version: 2.4.6
395
+ rubygems_version: 2.4.5
396
396
  signing_key:
397
397
  specification_version: 4
398
398
  summary: Bind your database to Salesforce data