occams-record 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -6
- data/lib/occams-record/binds_converter/abstract.rb +2 -2
- data/lib/occams-record/results/row.rb +1 -0
- data/lib/occams-record/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13a3f1e39f767ad2eb6948e699d3be39a8018bba1be35260bbdd832c9f83d69f
|
4
|
+
data.tar.gz: 8ef77becb090f5fdea847a707b2a99f5bc796f032632d9bdd4736a92e5a48e8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a45f3ca3fb2d3023a200712331b8d31eb9f4fa8b692cfd66434bccdc0eeac94e0dc0bfdcfd63db202a33501b2199eb916f255af59c35101f701db09c8dd53ed
|
7
|
+
data.tar.gz: af48b818be6aa1fd1814db3bf45c80b62d0d65bacb547cfdd5383d0081245c29fe3469f26cdebbc9681b0c0954caccd8d1c87308852f3d4529cd29455edf7f5a
|
data/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Occams Record
|
2
2
|
|
3
3
|
> Do not multiply entities beyond necessity. -- Occam's Razor
|
4
|
+
>
|
5
|
+
>
|
4
6
|
|
5
|
-
|
7
|
+
Learn OccamsRecord by reading [The Book at occams.jordanhollinger.com](https://occams.jordanhollinger.com/).
|
8
|
+
|
9
|
+
API documentation is available at [rubydoc.info/gems/occams-record](http://www.rubydoc.info/gems/occams-record).
|
6
10
|
|
7
11
|
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:
|
8
12
|
|
@@ -310,24 +314,27 @@ On the other hand, Active Record makes it *very* easy to forget to eager load as
|
|
310
314
|
|
311
315
|
# Testing
|
312
316
|
|
313
|
-
Tests are run with `appraisal` in Docker Compose using the `bin/test` or `bin/testall` scripts.
|
317
|
+
Tests are run with `appraisal` in Docker Compose using the `bin/test` or `bin/testall` scripts. See [test/matrix](./test/matrix) for the full list of Ruby, ActiveRecord, and database versions that are tested against.
|
314
318
|
|
315
319
|
```bash
|
316
320
|
# Run tests against all supported ActiveRecord versions, Ruby versions, and databases
|
317
321
|
bin/testall
|
318
322
|
|
319
|
-
# Run tests for Ruby
|
323
|
+
# Run tests only for Ruby 3.1
|
320
324
|
bin/testall ruby-3.1
|
321
325
|
|
322
|
-
# Run tests for
|
323
|
-
bin/testall ar-6.1
|
326
|
+
# Run tests only for Ruby 3.1 and ActiveRecored 6.1
|
327
|
+
bin/testall ruby-3.1 ar-6.1
|
324
328
|
|
325
329
|
# Run tests against a specific database
|
326
|
-
bin/testall
|
330
|
+
bin/testall sqlite3|postgres-14|mysql-8
|
327
331
|
|
328
332
|
# Run exactly one set of tests
|
329
333
|
bin/test ruby-3.1 ar-7.0 postgres-14
|
330
334
|
|
335
|
+
# Use Podman Compose
|
336
|
+
OCCAMS_PODMAN=1 bin/testall
|
337
|
+
|
331
338
|
# If all tests complete successfully, you'll be rewarded by an ASCII Nyancat!
|
332
339
|
|
333
340
|
+ o + o
|
@@ -31,7 +31,7 @@ module OccamsRecord
|
|
31
31
|
escape = false
|
32
32
|
until @i > @end
|
33
33
|
char = @sql[@i]
|
34
|
-
|
34
|
+
clear_escape = escape
|
35
35
|
case char
|
36
36
|
when @bind_sigil
|
37
37
|
if escape
|
@@ -56,7 +56,7 @@ module OccamsRecord
|
|
56
56
|
else
|
57
57
|
@i += 1
|
58
58
|
end
|
59
|
-
escape = false if
|
59
|
+
escape = false if clear_escape
|
60
60
|
end
|
61
61
|
yield flush_sql if @i > @start_i
|
62
62
|
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.
|
4
|
+
version: 1.10.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-
|
11
|
+
date: 2023-10-19 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: '4.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '7.
|
22
|
+
version: '7.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '7.
|
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
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
94
|
+
rubygems_version: 3.1.6
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: The missing high-efficiency query API for ActiveRecord
|