activerecord_bulkoperation 0.0.5 → 0.0.6

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: e0fdbe573c69d2ff5aa9df27fbf8203480723bbd
4
- data.tar.gz: 7287e196ca1e4ef2f383396d1d43016a9ddc9148
3
+ metadata.gz: 59f7889321cf96c2be699d172e09afa0d74f5c61
4
+ data.tar.gz: 32646eef313b3fd12eb076f5fc3d275a7a1b81d8
5
5
  SHA512:
6
- metadata.gz: 2194265b91b93611aa60fd74e783f64dc49b14bc275a1bd27ac00414f6dc39dac1c5b5ea2e12396eda60e68173cffd3cc4c8591fe7a80e62c28375903c7dfc1f
7
- data.tar.gz: ead7b3f0f9a96f0923b4cb3ab22fd8340a20247ed8d69381aa938e944bb2e893c447979b07293ceca5eb30603ce78e649d0839ec1aca6cc9e37b0f026d05dc38
6
+ metadata.gz: 62533c08ace89c06d403a2db76d0e8e1468053b525b041f5cf62378d5b1810560174263f9f8446eb522dcd7eaca9351ed935deb4f95fdb8b4a795a27327acb0b
7
+ data.tar.gz: 07944b81ff9f56410432a8b1743d9b9811eee3b78c7e2808878b88325ada7c065fa51d14a749c61a24dc48cc8b4e6a6bd8fc8dae9bc0a1a7a28742e764687e12
@@ -120,7 +120,7 @@ module ActiveRecord
120
120
 
121
121
  fail ExternalDataChange.new(sql) if result_is_int and result != values.count and optimistic
122
122
 
123
- affected_rows += result_is_int ? result : 0
123
+ affected_rows += result_is_int ? result : cursor.row_count
124
124
 
125
125
  connection.send(:log, sql, 'Update') {}
126
126
  ensure
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Bulkoperation
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_bulkoperation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - OSP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-26 00:00:00.000000000 Z
11
+ date: 2019-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord