occams-record 1.11.1 → 1.13.0

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
  SHA256:
3
- metadata.gz: 59a1532b7b4de439a549008362dcc631ee79bfbd069c76a322e7df01c7f8d7f9
4
- data.tar.gz: 765fe5f325d60a9d9830960be99028aa6215b166d9b2ef13bab84d074e9ede5c
3
+ metadata.gz: 29615d5553b1bda52eebe8bb2c5883eb4cd7a24434dac8298b006c925d415bed
4
+ data.tar.gz: 0a7dea0524dbb874341b05cb3c44563a2ff6ccaf6138f20bcef13fead9af4088
5
5
  SHA512:
6
- metadata.gz: d3a1bebbc0996c1b5b1efe59dfe2b47f14491b8a426eba7bea2e8269693ad7e0ff579c860bcf9031eb7c2ed18f7f4ce525c854d61d8444ed4505fd366fcb6050
7
- data.tar.gz: a315b65a3a5c1750a09956ea9330c68b83d10bcd943cb9edf32fe94f47b54b9f9af016abb6f524f7567bd424c74d5cc661b836db6dbeb324e94f7f8222f444a5
6
+ metadata.gz: d0f3f9d0c5c7a85ea41c88ed3e4bc4e61593a9a1f329d59baf7aa02065ebc3455ae9028cc6bdfd14d0ea50e904f510725ac54b73946f16ef56101d7ea869f2ad
7
+ data.tar.gz: fce1957894506de0ce88481ffaabb6b7ec87406cb048a9e196e0291b344a86ddc8a6750d1a2989b0cd20c1bf44ff352d38f8119ac908582535cb07d56fd67eb2
data/README.md CHANGED
@@ -8,6 +8,8 @@ Learn OccamsRecord by reading [The Book at occams.jordanhollinger.com](https://o
8
8
 
9
9
  API documentation is available at [rubydoc.info/gems/occams-record](http://www.rubydoc.info/gems/occams-record).
10
10
 
11
+ *Want OccamsRecord's flexible preloading in ActiveRecord itself? Check out [Uberloader](https://github.com/jhollinger/uberloader/)!*
12
+
11
13
  OccamsRecord is a high-efficiency, advanced query library for use alongside ActiveRecord. It is **not** an ORM or an ActiveRecord replacement. OccamsRecord can breathe fresh life into your ActiveRecord app by giving it two things:
12
14
 
13
15
  ### 1) Huge performance gains
@@ -359,8 +361,8 @@ It's possible to run tests without Docker Compose, but you'll be limited by the
359
361
 
360
362
  ```bash
361
363
  bundle install
362
- bundle exec appraisal ar-7.0 bundle install
363
- bundle exec appraisal ar-7.0 rake test
364
+ bundle exec appraisal ar-8.0 bundle install
365
+ bundle exec appraisal ar-8.0 rake test
364
366
  ```
365
367
 
366
368
  # License
@@ -1,3 +1,5 @@
1
+ require 'benchmark'
2
+
1
3
  module OccamsRecord
2
4
  Measurements = Struct.new(:total_time, :queries)
3
5
  Measurement = Struct.new(:table_name, :sql, :time)
@@ -3,7 +3,7 @@ module OccamsRecord
3
3
  # @private
4
4
  CASTER =
5
5
  case ActiveRecord::VERSION::MAJOR
6
- when 6, 7 then :deserialize
6
+ when 6, 7, 8 then :deserialize
7
7
  else raise "OccamsRecord::TypeCaster::CASTER does yet support this version of ActiveRecord"
8
8
  end
9
9
 
@@ -3,5 +3,5 @@
3
3
  #
4
4
  module OccamsRecord
5
5
  # @private
6
- VERSION = "1.11.1".freeze
6
+ VERSION = "1.13.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.11.1
4
+ version: 1.13.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-10-19 00:00:00.000000000 Z
11
+ date: 2024-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '6.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.2'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '6.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.2'
32
+ version: '8.1'
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