occams-record 1.9.1 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7d307ad8676050496976606227a5a671dbccb156be8ba2799b2e845f7b79be8
4
- data.tar.gz: 0c268a2bf9dc72f045067608b7981b12c18577623ebb497bd3551a82a43cbeea
3
+ metadata.gz: 18a298de4e4ba5a69fc0a6d1b3fb3faa2aa87fff6521b646a247276047a19881
4
+ data.tar.gz: 01b292cfd25ab7343d817e58dfca09b5bf78f49a91ec3db7686dda5d83e840b5
5
5
  SHA512:
6
- metadata.gz: 6073e65f4e3f7cac8b12f7da49f66dd914249f5b32eb3c42a8a8b0635eafe5bbdff6f63af1cbb8d227cdff82843f839a44b74b9d0d1c193351f96ef7089bd1d9
7
- data.tar.gz: f3f42c3c8d3e6f42515a864bd69407093176f1794c92241b9c0c17045a61d5b4698ae1ea699d781d824b5c4779138b006b50079e9b07b1ce089c58be59c3ed9b
6
+ metadata.gz: a403135e27531126a476472f8a8480598a1ed62c08657f6fa6541548d312a2d67707806620771d79ece5c8731f5f2b5e09e645676578b4018df69af0a1187437
7
+ data.tar.gz: e154b22a69dd39051be5ef604f64ee9c86c80f9cf332cc1b26f6019ed2f599701f562f47537b39bc3c40433166200f554b819a949578f0c3acc483ab2ea1d847
@@ -13,8 +13,7 @@ module OccamsRecord
13
13
  #
14
14
  # Returns an Enumerator that yields batches of records, of size "of".
15
15
  # NOTE ActiveRecord 5+ provides the 'in_batches' method to do something
16
- # similiar, although 4.2 does not. Also it does not respect ORDER BY,
17
- # whereas this does.
16
+ # similiar, but unlike this it doesn't respect ORDER BY.
18
17
  #
19
18
  # @param batch_size [Integer] batch size
20
19
  # @param use_transaction [Boolean] Ensure it runs inside of a database transaction
@@ -3,8 +3,7 @@ module OccamsRecord
3
3
  # @private
4
4
  CASTER =
5
5
  case ActiveRecord::VERSION::MAJOR
6
- when 4 then :type_cast_from_database
7
- when 5, 6, 7 then :deserialize
6
+ when 6, 7 then :deserialize
8
7
  else raise "OccamsRecord::TypeCaster::CASTER does yet support this version of ActiveRecord"
9
8
  end
10
9
 
@@ -3,5 +3,5 @@
3
3
  #
4
4
  module OccamsRecord
5
5
  # @private
6
- VERSION = "1.9.1".freeze
6
+ VERSION = "1.11.0".freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occams-record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Hollinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-16 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '6.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
22
+ version: '7.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
29
+ version: '6.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '7.2'
33
33
  description: A faster, lower-memory, fuller-featured querying API for ActiveRecord
34
34
  that returns results as unadorned, read-only objects.
35
35
  email: jordan.hollinger@gmail.com
@@ -84,14 +84,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - ">="
86
86
  - !ruby/object:Gem::Version
87
- version: 2.3.0
87
+ version: 3.0.0
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubygems_version: 3.4.1
94
+ rubygems_version: 3.4.19
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: The missing high-efficiency query API for ActiveRecord