caboose-rets 0.0.84 → 0.0.85

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjY1ZWY4NGY4MDU0NGI3Y2IzZDY2N2RiMzQ1OGVjM2M2MTIxMTUwNA==
4
+ MTdiZmZhOTlkMGYxNjU2NjExYzM5MDU5YmVkOTk3YTUwYmM5MDQzYQ==
5
5
  data.tar.gz: !binary |-
6
- MjAwMzJkYjkyY2ExNDVlNTc4NWEwOTUzYmNiMzNiNmY5ZjZkMWRlZg==
6
+ ZTBhZDM2Y2ZmZDI4YzQ3ZjExZDFjYjMyM2VkZDYzMzEzYWViOTZiYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTdkZDUxZDIwNDllMTIzM2RjMTk5MzRlOTU5OGIyZDg0NGQxYTM0NjFjZmQ4
10
- ZjllOTI2MzZkNmJhOGZiNjg1NGY1ZjgxMjVkZGE4NDAyMzBmODg4OTk1OTdh
11
- MTg5NWExNDVhYjdlMDBmNmY0NmUwZjgxNGFjY2Q4ZTUzZTQ0OTk=
9
+ ZjFkMzU3YzhhNjdjMGZmYmQ3ZTY4YTUyYmE1ZTMyMjYwMTI1Mjk3MmZiZDNh
10
+ YmUxNjkyYzg3YzI0ZTkzMTk0Y2FkZDVjZjhiODA0N2JmMjAwMjhhOTk5ZDc2
11
+ Nzc4MjIyZWM0NTIyMjliMWUyM2E4Y2Y4YTQyZDU2YjFiMjBhOTc=
12
12
  data.tar.gz: !binary |-
13
- YmE2NTVhNGM3NGNkMTY1MTljNDgwNDA2OGE4MGQ0NTVhYmJhYjNmMjNmNDc4
14
- MDRjYzhkMmMxYTQ2YzEzMTZiMWNmYWZlYTA2YmU5YmVlMGFiYjc5NjYyZjk5
15
- ZDJiZWIwMGM1ODY1YmM5MTY3N2ZiMmI5YTFjNTY1YWQzNGJiOTk=
13
+ YmE1ZmFiMTk5YTM0NGY4NDE2OTJlYmU1ZDY1YTZhY2M3NjUwODJlMTZlZDFk
14
+ YWM5NjNkMGI5NTkxMTE1MzY1ODQ0ZjE2NzUxMjFjZjhkMjQwMDIxM2YyYTM0
15
+ MzFmODQzZTVhNmYxNGFmODI5MmJkZmM1MmIwZDc2ZDAwZmM4MTY=
@@ -262,7 +262,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
262
262
  local_ids = rows.collect{ |row| row['media_id'] }
263
263
  ids_to_remove = local_ids - ids
264
264
  if ids_to_remove && ids_to_remove.count > 0
265
- query = ["delete from rets_media where media_id not in (?)", ids_to_remove]
265
+ query = ["delete from rets_media where media_id in (?)", ids_to_remove]
266
266
  ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
267
267
  end
268
268
  end
@@ -389,7 +389,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
389
389
  ids_to_remove = local_ids - ids
390
390
  self.log("- Found #{ids_to_remove.count} #{class_type} records in the local database that are not in the remote database.")
391
391
  self.log("- Deleting #{class_type} records in the local database that shouldn't be there...")
392
- query = ["delete from #{t} where #{k} not in (?)", ids_to_remove]
392
+ query = ["delete from #{t} where #{k} in (?)", ids_to_remove]
393
393
  ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
394
394
 
395
395
  # Find any ids in the remote database that should be in the local database
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.0.84'
2
+ VERSION = '0.0.85'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.84
4
+ version: 0.0.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry