ika 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ika/version.rb +1 -1
  3. data/lib/ika.rb +1 -5
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40461fd44249bbd6cf740caec34b0ba8af72d212
4
- data.tar.gz: f675094f1ada134596d5c9cd221ff519c90d030a
3
+ metadata.gz: 3f4813d400b8c938225f19661f979ae8a4b746b7
4
+ data.tar.gz: d3a2aa8a19cfe0dd63a5b42a878dac87d4e10a99
5
5
  SHA512:
6
- metadata.gz: 19b476fda08ac546bf3de7ea9c1b15c8468a23756731440ae270ccdee06f59596f93fa33a694bf4d40cd9e4ee2ce2b99126ae978de632c2a8095e6c700a2bdab
7
- data.tar.gz: 84754fabce25b7e2ad120ba9b5a027fdc63fee5dc46c586a6f599b2a45e5c2680279273d1f9bd06c32f34fe3534a8e57b52b22af878f4e508951fd921c4abf62
6
+ metadata.gz: dceaefcab518648dc5a54ca0516a2e32308dc1ab80e81dbfc7b1c3f763a472dc6cf06010544ab7ac870aad23f31ab8292b314c72b42ff345e5d565d3e9152282
7
+ data.tar.gz: 3cc60b79cb78c171b83462854ef39273f4fbd81624cf17877a8fa8d496a03456e903b4c1e2952f44abd381702361b19048839f5cf1ceebc7bd36b4ac0da8bdc5
data/lib/ika/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ika
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
data/lib/ika.rb CHANGED
@@ -20,9 +20,7 @@ module Ika
20
20
 
21
21
  ActiveRecord::Base.transaction do
22
22
  if options && options[:sync]
23
- remove_target_ids = all.pluck(:id)
24
- else
25
- remove_target_ids = []
23
+ destroy_all
26
24
  end
27
25
  objects.each do |object|
28
26
  record_exists = false
@@ -61,9 +59,7 @@ module Ika
61
59
  else
62
60
  create(object_params)
63
61
  end
64
- remove_target_ids -= [object['id'].to_i]
65
62
  end
66
- where(id: remove_target_ids).destroy_all
67
63
  end
68
64
  end
69
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ika
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makoto NAKAYA