active_record-union_relation 0.1.0 → 0.1.1
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 +4 -4
- data/.github/workflows/main.yml +20 -13
- data/CHANGELOG.md +9 -2
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +88 -85
- data/LICENSE +1 -1
- data/README.md +26 -3
- data/active_record-union_relation.gemspec +15 -5
- data/lib/active_record/union_relation/version.rb +1 -1
- metadata +17 -14
- data/.mergify.yml +0 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bc17659336cfc5c3f2420d5e91dda2abaf245bce0dcd2f0538ddf706f22c3be
|
|
4
|
+
data.tar.gz: 9e9d3407293eafa3bdb81e5f4630751a17bb31c4c151985ad4b268b4a0da3092
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82eae8d80a46a0d3ad4c59292a5fe945ca14d5fe8779740883fe65f5165a92413f17b10aee87e6031284bf7929243d074dddd58103d2a37d81c03eab5f072180
|
|
7
|
+
data.tar.gz: 0ce40b1c7776054681389ac31bd3ab05121ac926c60c7dbcaa13401e8e9bed2e24f045661aedd52fb1288c834e0719089d7cfb5a3970bf085cbca6633d0c3541
|
data/.github/workflows/main.yml
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
name: Main
|
|
2
|
-
on:
|
|
2
|
+
on:
|
|
3
|
+
- push
|
|
4
|
+
- pull_request_target
|
|
3
5
|
jobs:
|
|
4
6
|
ci:
|
|
5
7
|
name: CI
|
|
@@ -23,17 +25,22 @@ jobs:
|
|
|
23
25
|
- uses: actions/checkout@master
|
|
24
26
|
- uses: ruby/setup-ruby@v1
|
|
25
27
|
with:
|
|
26
|
-
ruby-version:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
path: vendor/bundle
|
|
30
|
-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
31
|
-
restore-keys: |
|
|
32
|
-
${{ runner.os }}-gems-
|
|
33
|
-
- name: Install deps
|
|
34
|
-
run: |
|
|
35
|
-
bundle config path vendor/bundle
|
|
36
|
-
bundle install --jobs 4 --retry 3
|
|
37
|
-
- name: Lint and test
|
|
28
|
+
ruby-version: 3.0
|
|
29
|
+
bundler-cache: true
|
|
30
|
+
- name: Test
|
|
38
31
|
run: |
|
|
39
32
|
bundle exec rake test
|
|
33
|
+
automerge:
|
|
34
|
+
name: AutoMerge
|
|
35
|
+
needs: ci
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
if: github.event_name == 'pull_request_target' && (github.actor == github.repository_owner || github.actor == 'dependabot[bot]')
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/github-script@v3
|
|
40
|
+
with:
|
|
41
|
+
script: |
|
|
42
|
+
github.pulls.merge({
|
|
43
|
+
owner: context.payload.repository.owner.login,
|
|
44
|
+
repo: context.payload.repository.name,
|
|
45
|
+
pull_number: context.payload.pull_request.number
|
|
46
|
+
})
|
data/CHANGELOG.md
CHANGED
|
@@ -6,11 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.1.1] - 2021-11-17
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Require MFA for releasing.
|
|
14
|
+
|
|
9
15
|
## [0.1.0] - 2020-10-08
|
|
10
16
|
|
|
11
17
|
### Added
|
|
12
18
|
|
|
13
19
|
- 🎉 Initial release. 🎉
|
|
14
20
|
|
|
15
|
-
[unreleased]: https://github.com/
|
|
16
|
-
[0.1.
|
|
21
|
+
[unreleased]: https://github.com/kddnewton/active_record-union_relation/compare/v0.1.1...HEAD
|
|
22
|
+
[0.1.1]: https://github.com/kddnewton/active_record-union_relation/compare/v0.1.0...v0.1.1
|
|
23
|
+
[0.1.0]: https://github.com/kddnewton/active_record-union_relation/compare/a71bb8...v0.1.0
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
|
55
55
|
## Enforcement
|
|
56
56
|
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at
|
|
58
|
+
reported by contacting the project team at kddnewton@gmail.com. All
|
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/Gemfile.lock
CHANGED
|
@@ -1,121 +1,125 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
active_record-union_relation (0.1.
|
|
4
|
+
active_record-union_relation (0.1.1)
|
|
5
5
|
activerecord (>= 6)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
actioncable (6.
|
|
11
|
-
actionpack (= 6.
|
|
10
|
+
actioncable (6.1.4.1)
|
|
11
|
+
actionpack (= 6.1.4.1)
|
|
12
|
+
activesupport (= 6.1.4.1)
|
|
12
13
|
nio4r (~> 2.0)
|
|
13
14
|
websocket-driver (>= 0.6.1)
|
|
14
|
-
actionmailbox (6.
|
|
15
|
-
actionpack (= 6.
|
|
16
|
-
activejob (= 6.
|
|
17
|
-
activerecord (= 6.
|
|
18
|
-
activestorage (= 6.
|
|
19
|
-
activesupport (= 6.
|
|
15
|
+
actionmailbox (6.1.4.1)
|
|
16
|
+
actionpack (= 6.1.4.1)
|
|
17
|
+
activejob (= 6.1.4.1)
|
|
18
|
+
activerecord (= 6.1.4.1)
|
|
19
|
+
activestorage (= 6.1.4.1)
|
|
20
|
+
activesupport (= 6.1.4.1)
|
|
20
21
|
mail (>= 2.7.1)
|
|
21
|
-
actionmailer (6.
|
|
22
|
-
actionpack (= 6.
|
|
23
|
-
actionview (= 6.
|
|
24
|
-
activejob (= 6.
|
|
22
|
+
actionmailer (6.1.4.1)
|
|
23
|
+
actionpack (= 6.1.4.1)
|
|
24
|
+
actionview (= 6.1.4.1)
|
|
25
|
+
activejob (= 6.1.4.1)
|
|
26
|
+
activesupport (= 6.1.4.1)
|
|
25
27
|
mail (~> 2.5, >= 2.5.4)
|
|
26
28
|
rails-dom-testing (~> 2.0)
|
|
27
|
-
actionpack (6.
|
|
28
|
-
actionview (= 6.
|
|
29
|
-
activesupport (= 6.
|
|
30
|
-
rack (~> 2.0, >= 2.0.
|
|
29
|
+
actionpack (6.1.4.1)
|
|
30
|
+
actionview (= 6.1.4.1)
|
|
31
|
+
activesupport (= 6.1.4.1)
|
|
32
|
+
rack (~> 2.0, >= 2.0.9)
|
|
31
33
|
rack-test (>= 0.6.3)
|
|
32
34
|
rails-dom-testing (~> 2.0)
|
|
33
35
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
34
|
-
actiontext (6.
|
|
35
|
-
actionpack (= 6.
|
|
36
|
-
activerecord (= 6.
|
|
37
|
-
activestorage (= 6.
|
|
38
|
-
activesupport (= 6.
|
|
36
|
+
actiontext (6.1.4.1)
|
|
37
|
+
actionpack (= 6.1.4.1)
|
|
38
|
+
activerecord (= 6.1.4.1)
|
|
39
|
+
activestorage (= 6.1.4.1)
|
|
40
|
+
activesupport (= 6.1.4.1)
|
|
39
41
|
nokogiri (>= 1.8.5)
|
|
40
|
-
actionview (6.
|
|
41
|
-
activesupport (= 6.
|
|
42
|
+
actionview (6.1.4.1)
|
|
43
|
+
activesupport (= 6.1.4.1)
|
|
42
44
|
builder (~> 3.1)
|
|
43
45
|
erubi (~> 1.4)
|
|
44
46
|
rails-dom-testing (~> 2.0)
|
|
45
47
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
46
|
-
activejob (6.
|
|
47
|
-
activesupport (= 6.
|
|
48
|
+
activejob (6.1.4.1)
|
|
49
|
+
activesupport (= 6.1.4.1)
|
|
48
50
|
globalid (>= 0.3.6)
|
|
49
|
-
activemodel (6.
|
|
50
|
-
activesupport (= 6.
|
|
51
|
-
activerecord (6.
|
|
52
|
-
activemodel (= 6.
|
|
53
|
-
activesupport (= 6.
|
|
54
|
-
activestorage (6.
|
|
55
|
-
actionpack (= 6.
|
|
56
|
-
activejob (= 6.
|
|
57
|
-
activerecord (= 6.
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
activemodel (6.1.4.1)
|
|
52
|
+
activesupport (= 6.1.4.1)
|
|
53
|
+
activerecord (6.1.4.1)
|
|
54
|
+
activemodel (= 6.1.4.1)
|
|
55
|
+
activesupport (= 6.1.4.1)
|
|
56
|
+
activestorage (6.1.4.1)
|
|
57
|
+
actionpack (= 6.1.4.1)
|
|
58
|
+
activejob (= 6.1.4.1)
|
|
59
|
+
activerecord (= 6.1.4.1)
|
|
60
|
+
activesupport (= 6.1.4.1)
|
|
61
|
+
marcel (~> 1.0.0)
|
|
62
|
+
mini_mime (>= 1.1.0)
|
|
63
|
+
activesupport (6.1.4.1)
|
|
60
64
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
61
|
-
i18n (>=
|
|
62
|
-
minitest (
|
|
63
|
-
tzinfo (~>
|
|
64
|
-
zeitwerk (~> 2.
|
|
65
|
+
i18n (>= 1.6, < 2)
|
|
66
|
+
minitest (>= 5.1)
|
|
67
|
+
tzinfo (~> 2.0)
|
|
68
|
+
zeitwerk (~> 2.3)
|
|
65
69
|
builder (3.2.4)
|
|
66
|
-
concurrent-ruby (1.1.
|
|
70
|
+
concurrent-ruby (1.1.9)
|
|
67
71
|
crass (1.0.6)
|
|
68
|
-
erubi (1.
|
|
69
|
-
globalid (0.
|
|
70
|
-
activesupport (>=
|
|
71
|
-
i18n (1.8.
|
|
72
|
+
erubi (1.10.0)
|
|
73
|
+
globalid (0.5.2)
|
|
74
|
+
activesupport (>= 5.0)
|
|
75
|
+
i18n (1.8.10)
|
|
72
76
|
concurrent-ruby (~> 1.0)
|
|
73
|
-
loofah (2.
|
|
77
|
+
loofah (2.12.0)
|
|
74
78
|
crass (~> 1.0.2)
|
|
75
79
|
nokogiri (>= 1.5.9)
|
|
76
80
|
mail (2.7.1)
|
|
77
81
|
mini_mime (>= 0.1.1)
|
|
78
|
-
marcel (0.
|
|
79
|
-
mimemagic (~> 0.3.2)
|
|
82
|
+
marcel (1.0.1)
|
|
80
83
|
method_source (1.0.0)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
mini_mime (1.1.0)
|
|
85
|
+
mini_portile2 (2.6.1)
|
|
86
|
+
minitest (5.14.4)
|
|
87
|
+
nio4r (2.5.8)
|
|
88
|
+
nokogiri (1.12.3)
|
|
89
|
+
mini_portile2 (~> 2.6.1)
|
|
90
|
+
racc (~> 1.4)
|
|
88
91
|
pg (1.2.3)
|
|
92
|
+
racc (1.5.2)
|
|
89
93
|
rack (2.2.3)
|
|
90
94
|
rack-test (1.1.0)
|
|
91
95
|
rack (>= 1.0, < 3)
|
|
92
|
-
rails (6.
|
|
93
|
-
actioncable (= 6.
|
|
94
|
-
actionmailbox (= 6.
|
|
95
|
-
actionmailer (= 6.
|
|
96
|
-
actionpack (= 6.
|
|
97
|
-
actiontext (= 6.
|
|
98
|
-
actionview (= 6.
|
|
99
|
-
activejob (= 6.
|
|
100
|
-
activemodel (= 6.
|
|
101
|
-
activerecord (= 6.
|
|
102
|
-
activestorage (= 6.
|
|
103
|
-
activesupport (= 6.
|
|
104
|
-
bundler (>= 1.
|
|
105
|
-
railties (= 6.
|
|
96
|
+
rails (6.1.4.1)
|
|
97
|
+
actioncable (= 6.1.4.1)
|
|
98
|
+
actionmailbox (= 6.1.4.1)
|
|
99
|
+
actionmailer (= 6.1.4.1)
|
|
100
|
+
actionpack (= 6.1.4.1)
|
|
101
|
+
actiontext (= 6.1.4.1)
|
|
102
|
+
actionview (= 6.1.4.1)
|
|
103
|
+
activejob (= 6.1.4.1)
|
|
104
|
+
activemodel (= 6.1.4.1)
|
|
105
|
+
activerecord (= 6.1.4.1)
|
|
106
|
+
activestorage (= 6.1.4.1)
|
|
107
|
+
activesupport (= 6.1.4.1)
|
|
108
|
+
bundler (>= 1.15.0)
|
|
109
|
+
railties (= 6.1.4.1)
|
|
106
110
|
sprockets-rails (>= 2.0.0)
|
|
107
111
|
rails-dom-testing (2.0.3)
|
|
108
112
|
activesupport (>= 4.2.0)
|
|
109
113
|
nokogiri (>= 1.6)
|
|
110
|
-
rails-html-sanitizer (1.
|
|
114
|
+
rails-html-sanitizer (1.4.1)
|
|
111
115
|
loofah (~> 2.3)
|
|
112
|
-
railties (6.
|
|
113
|
-
actionpack (= 6.
|
|
114
|
-
activesupport (= 6.
|
|
116
|
+
railties (6.1.4.1)
|
|
117
|
+
actionpack (= 6.1.4.1)
|
|
118
|
+
activesupport (= 6.1.4.1)
|
|
115
119
|
method_source
|
|
116
|
-
rake (>= 0.
|
|
117
|
-
thor (
|
|
118
|
-
rake (13.0.
|
|
120
|
+
rake (>= 0.13)
|
|
121
|
+
thor (~> 1.0)
|
|
122
|
+
rake (13.0.6)
|
|
119
123
|
sprockets (4.0.2)
|
|
120
124
|
concurrent-ruby (~> 1.0)
|
|
121
125
|
rack (> 1, < 3)
|
|
@@ -123,14 +127,13 @@ GEM
|
|
|
123
127
|
actionpack (>= 4.0)
|
|
124
128
|
activesupport (>= 4.0)
|
|
125
129
|
sprockets (>= 3.0.0)
|
|
126
|
-
thor (1.0
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
websocket-driver (0.7.3)
|
|
130
|
+
thor (1.1.0)
|
|
131
|
+
tzinfo (2.0.4)
|
|
132
|
+
concurrent-ruby (~> 1.0)
|
|
133
|
+
websocket-driver (0.7.5)
|
|
131
134
|
websocket-extensions (>= 0.1.0)
|
|
132
135
|
websocket-extensions (0.1.5)
|
|
133
|
-
zeitwerk (2.4.
|
|
136
|
+
zeitwerk (2.4.2)
|
|
134
137
|
|
|
135
138
|
PLATFORMS
|
|
136
139
|
ruby
|
|
@@ -139,8 +142,8 @@ DEPENDENCIES
|
|
|
139
142
|
active_record-union_relation!
|
|
140
143
|
minitest (~> 5.14)
|
|
141
144
|
pg (~> 1.2)
|
|
142
|
-
rails (~> 6.
|
|
145
|
+
rails (~> 6.1)
|
|
143
146
|
rake (~> 13.0)
|
|
144
147
|
|
|
145
148
|
BUNDLED WITH
|
|
146
|
-
2.
|
|
149
|
+
2.2.3
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ActiveRecord::UnionRelation
|
|
2
2
|
|
|
3
|
-
[](https://github.com/kddnewton/active_record-union_relation/actions)
|
|
4
4
|
|
|
5
5
|
There are times when you want to use SQL's [UNION](https://www.w3schools.com/sql/sql_union.asp) operator to pull rows from multiple relations, but you still want to maintain the query-builder interface of ActiveRecord. This gem allows you to do that with minimal syntax.
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ Or install it yourself as:
|
|
|
24
24
|
|
|
25
25
|
Let's assume you're writing something like a search function, and you want to be able to return a polymorphic relation containing all of the search results. You could maintain a separate index table with links out to the entities or use a more advanced search engine. Or you could perform a `UNION` that searches each table.
|
|
26
26
|
|
|
27
|
-
`UNION` subrelations must all have the same number of columns, so first we define the name of the columns that the `UNION` will select, then we define the sources that will become those columns from each subrelation. It makes
|
|
27
|
+
`UNION` subrelations must all have the same number of columns, so first we define the name of the columns that the `UNION` will select, then we define the sources that will become those columns from each subrelation. It makes more sense looking at an example.
|
|
28
28
|
|
|
29
29
|
Let's assume we have the following structure with default table names:
|
|
30
30
|
|
|
@@ -94,15 +94,38 @@ relation.order(matched: :asc)
|
|
|
94
94
|
# #<Comment:0x00 id: 3, post_id: 2, body: "This is a comment with foo in it">]
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
+
The query generated in the example above will look something like:
|
|
98
|
+
|
|
99
|
+
```sql
|
|
100
|
+
SELECT discriminator, id, post_id, matched
|
|
101
|
+
FROM (
|
|
102
|
+
(SELECT 'Post' AS "discriminator", id AS "id", NULL AS "post_id", title AS "matched" FROM "posts" WHERE "posts"."published" = $1 AND (title LIKE '%foo%'))
|
|
103
|
+
UNION
|
|
104
|
+
(SELECT 'Comment' AS "discriminator", id AS "id", post_id AS "post_id", body AS "matched" FROM "comments" WHERE (body LIKE '%foo%'))
|
|
105
|
+
UNION
|
|
106
|
+
(SELECT 'Tag' AS "discriminator", id AS "id", NULL AS "post_id", name AS "matched" FROM "tags" WHERE (name LIKE '%foo%'))
|
|
107
|
+
) AS "union"
|
|
108
|
+
ORDER BY "matched" ASC
|
|
109
|
+
```
|
|
110
|
+
|
|
97
111
|
## Development
|
|
98
112
|
|
|
99
113
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
100
114
|
|
|
101
115
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
102
116
|
|
|
117
|
+
To check types using `rbs`, you can run:
|
|
118
|
+
|
|
119
|
+
```sh
|
|
120
|
+
RBS_TEST_TARGET='ActiveRecord::UnionRelation::*' \
|
|
121
|
+
ruby -rrbs/test/setup \
|
|
122
|
+
-Itest -Isig/active_record/union_relation.rbs \
|
|
123
|
+
test/active_record/union_relation_test.rb
|
|
124
|
+
```
|
|
125
|
+
|
|
103
126
|
## Contributing
|
|
104
127
|
|
|
105
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
128
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kddnewton/active_record-union_relation.
|
|
106
129
|
|
|
107
130
|
## License
|
|
108
131
|
|
|
@@ -2,16 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative 'lib/active_record/union_relation/version'
|
|
4
4
|
|
|
5
|
+
version = ActiveRecord::UnionRelation::VERSION
|
|
6
|
+
repository = 'https://github.com/kddnewton/active_record-union_relation'
|
|
7
|
+
|
|
5
8
|
Gem::Specification.new do |spec|
|
|
6
9
|
spec.name = 'active_record-union_relation'
|
|
7
|
-
spec.version =
|
|
8
|
-
spec.authors = ['Kevin
|
|
9
|
-
spec.email = ['
|
|
10
|
+
spec.version = version
|
|
11
|
+
spec.authors = ['Kevin Newton']
|
|
12
|
+
spec.email = ['kddnewton@gmail.com']
|
|
10
13
|
|
|
11
14
|
spec.summary = 'Create ActiveRecord relations from UNIONs'
|
|
12
|
-
spec.homepage =
|
|
15
|
+
spec.homepage = repository
|
|
13
16
|
spec.license = 'MIT'
|
|
14
17
|
|
|
18
|
+
spec.metadata = {
|
|
19
|
+
'bug_tracker_uri' => "#{repository}/issues",
|
|
20
|
+
'changelog_uri' => "#{repository}/blob/v#{version}/CHANGELOG.md",
|
|
21
|
+
'source_code_uri' => repository,
|
|
22
|
+
'rubygems_mfa_required' => 'true'
|
|
23
|
+
}
|
|
24
|
+
|
|
15
25
|
spec.files = Dir.chdir(__dir__) do
|
|
16
26
|
`git ls-files -z`.split("\x0").reject do |f|
|
|
17
27
|
f.match(%r{^(test|spec|features)/})
|
|
@@ -26,6 +36,6 @@ Gem::Specification.new do |spec|
|
|
|
26
36
|
|
|
27
37
|
spec.add_development_dependency 'minitest', '~> 5.14'
|
|
28
38
|
spec.add_development_dependency 'pg', '~> 1.2'
|
|
29
|
-
spec.add_development_dependency 'rails', '~> 6.
|
|
39
|
+
spec.add_development_dependency 'rails', '~> 6.1'
|
|
30
40
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
31
41
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_record-union_relation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Kevin
|
|
8
|
-
autorequire:
|
|
7
|
+
- Kevin Newton
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -58,14 +58,14 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '6.
|
|
61
|
+
version: '6.1'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '6.
|
|
68
|
+
version: '6.1'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rake
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -80,9 +80,9 @@ dependencies:
|
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '13.0'
|
|
83
|
-
description:
|
|
83
|
+
description:
|
|
84
84
|
email:
|
|
85
|
-
-
|
|
85
|
+
- kddnewton@gmail.com
|
|
86
86
|
executables: []
|
|
87
87
|
extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
|
@@ -90,7 +90,6 @@ files:
|
|
|
90
90
|
- ".github/dependabot.yml"
|
|
91
91
|
- ".github/workflows/main.yml"
|
|
92
92
|
- ".gitignore"
|
|
93
|
-
- ".mergify.yml"
|
|
94
93
|
- CHANGELOG.md
|
|
95
94
|
- CODE_OF_CONDUCT.md
|
|
96
95
|
- Gemfile
|
|
@@ -103,11 +102,15 @@ files:
|
|
|
103
102
|
- bin/setup
|
|
104
103
|
- lib/active_record/union_relation.rb
|
|
105
104
|
- lib/active_record/union_relation/version.rb
|
|
106
|
-
homepage: https://github.com/
|
|
105
|
+
homepage: https://github.com/kddnewton/active_record-union_relation
|
|
107
106
|
licenses:
|
|
108
107
|
- MIT
|
|
109
|
-
metadata:
|
|
110
|
-
|
|
108
|
+
metadata:
|
|
109
|
+
bug_tracker_uri: https://github.com/kddnewton/active_record-union_relation/issues
|
|
110
|
+
changelog_uri: https://github.com/kddnewton/active_record-union_relation/blob/v0.1.1/CHANGELOG.md
|
|
111
|
+
source_code_uri: https://github.com/kddnewton/active_record-union_relation
|
|
112
|
+
rubygems_mfa_required: 'true'
|
|
113
|
+
post_install_message:
|
|
111
114
|
rdoc_options: []
|
|
112
115
|
require_paths:
|
|
113
116
|
- lib
|
|
@@ -122,8 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
122
125
|
- !ruby/object:Gem::Version
|
|
123
126
|
version: '0'
|
|
124
127
|
requirements: []
|
|
125
|
-
rubygems_version: 3.
|
|
126
|
-
signing_key:
|
|
128
|
+
rubygems_version: 3.2.3
|
|
129
|
+
signing_key:
|
|
127
130
|
specification_version: 4
|
|
128
131
|
summary: Create ActiveRecord relations from UNIONs
|
|
129
132
|
test_files: []
|