active_record-union_relation 0.2.0 → 0.3.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: '0920889c3d3a7bd7ef4cd4e24fde9325418a7d2b108495265af571a3ff3cec88'
4
- data.tar.gz: f056308e383a312cb440eab986a28d95788ae88ce14ffa1b5cac9799c4fd44b9
3
+ metadata.gz: 85cab300b41481aa6b308293a0cad8d5d57ba6cb69d7038584aa6d6853e8871b
4
+ data.tar.gz: 3519ebba7762500a87dc12239ed6eba82cfc411bc2f75c894e78c2777283393b
5
5
  SHA512:
6
- metadata.gz: 4709e79f723b4cf9279f708eaf0a6860ba4b39d3411678ebf1ea7c34923c685af1ae8359004afcdf08178d90f629f355cb5aa98c7b0d1bdabcb5710ba8b28576
7
- data.tar.gz: 106be365eb3f8d6e528d1617e9a95ede261a15c1603e2d147fd4452538190ce47a11d8f556135251591567fc864975b4f54c8bf9a8ca0d449d51d45dcd04552a
6
+ metadata.gz: af74e42519746bddea42fc1dc86988f87db85afd5de8cc3cfb141b9d59bf601510ba74a717eed8cd2aabb5b2dac0e66f0a95ba87b90aca21fdacbb79e9e04319
7
+ data.tar.gz: b4b49cbf3975e6577b0a9c4e3683d318d9f8d312b2e63ec0b4bc127e9ae979a91e7f575d8d00cf195fe9648ae30f3af4df4269f2c05586e47a1fe28a95a2e6c1
data/CHANGELOG.md CHANGED
@@ -6,6 +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.3.0] - 2024-06-13
10
+
11
+ ### Added
12
+
13
+ - Support relations that are using models that have descendants through STI.
14
+
15
+ ## [0.2.1] - 2024-05-29
16
+
17
+ ### Changed
18
+
19
+ - Limit files in packaged gem.
20
+
9
21
  ## [0.2.0] - 2024-02-09
10
22
 
11
23
  ### Added
@@ -25,7 +37,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
25
37
 
26
38
  - 🎉 Initial release. 🎉
27
39
 
28
- [unreleased]: https://github.com/kddnewton/active_record-union_relation/compare/v0.2.0...HEAD
40
+ [unreleased]: https://github.com/kddnewton/active_record-union_relation/compare/v0.3.0...HEAD
41
+ [0.3.0]: https://github.com/kddnewton/active_record-union_relation/compare/v0.2.1...v0.3.0
42
+ [0.2.1]: https://github.com/kddnewton/active_record-union_relation/compare/v0.2.0...v0.2.1
29
43
  [0.2.0]: https://github.com/kddnewton/active_record-union_relation/compare/v0.1.1...v0.2.0
30
44
  [0.1.1]: https://github.com/kddnewton/active_record-union_relation/compare/v0.1.0...v0.1.1
31
45
  [0.1.0]: https://github.com/kddnewton/active_record-union_relation/compare/a71bb8...v0.1.0
@@ -22,14 +22,16 @@ Gem::Specification.new do |spec|
22
22
  "rubygems_mfa_required" => "true"
23
23
  }
24
24
 
25
- spec.files =
26
- Dir.chdir(__dir__) do
27
- `git ls-files -z`.split("\x0")
28
- .reject { |f| f.match(%r{^(test|spec|features)/}) }
29
- end
30
-
31
- spec.bindir = "exe"
32
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.files = %w[
26
+ CHANGELOG.md
27
+ CODE_OF_CONDUCT.md
28
+ LICENSE
29
+ README.md
30
+ active_record-union_relation.gemspec
31
+ lib/active_record/union_relation.rb
32
+ lib/active_record/union_relation/version.rb
33
+ ]
34
+
33
35
  spec.require_paths = ["lib"]
34
36
 
35
37
  spec.add_dependency "activerecord", ">= 6"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  class UnionRelation
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
@@ -33,17 +33,68 @@ module ActiveRecord
33
33
  # number of columns, you can put a null in space of a column instead.
34
34
  NULL = Arel.sql("NULL")
35
35
 
36
+ # A model name for a model that is not using single-table inheritance. In
37
+ # this case we use the model name itself as the discriminator and only
38
+ # need one entry in the mappings hash that maps records to the columns
39
+ # that we are pulling from the result.
40
+ class SingleModelName
41
+ attr_reader :name
42
+
43
+ def initialize(name)
44
+ @name = name
45
+ end
46
+
47
+ def each_name
48
+ yield name
49
+ end
50
+
51
+ def to_sql
52
+ Arel.sql("'#{name}'")
53
+ end
54
+ end
55
+
56
+ # A model name for a model that is using single-table inheritance. In this
57
+ # case we use the inheritance column as the discriminator and need to
58
+ # include all of the subclasses in the mappings hash.
59
+ class MultiModelName
60
+ attr_reader :inheritance_column, :names
61
+
62
+ def initialize(inheritance_column, names)
63
+ @inheritance_column = inheritance_column
64
+ @names = names
65
+ end
66
+
67
+ def each_name(&block)
68
+ names.each(&block)
69
+ end
70
+
71
+ def to_sql
72
+ Arel.sql(inheritance_column)
73
+ end
74
+ end
75
+
36
76
  attr_reader :relation, :model_name, :sources
37
77
 
38
78
  def initialize(relation, sources)
39
79
  @relation = relation
40
- @model_name = relation.model.name
80
+
81
+ model = relation.model
82
+ @model_name =
83
+ if model._has_attribute?(model.inheritance_column)
84
+ MultiModelName.new(
85
+ quote_column_name(model.inheritance_column),
86
+ model.descendants.map(&:name)
87
+ )
88
+ else
89
+ SingleModelName.new(model.name)
90
+ end
91
+
41
92
  @sources = sources.map { |source| source ? source.to_s : NULL }
42
93
  end
43
94
 
44
95
  def to_arel(columns, discriminator)
45
96
  relation.select(
46
- Arel.sql("'#{model_name}'").as(quote_column_name(discriminator)),
97
+ model_name.to_sql.as(quote_column_name(discriminator)),
47
98
  *sources
48
99
  .zip(columns)
49
100
  .map do |(source, column)|
@@ -52,10 +103,11 @@ module ActiveRecord
52
103
  ).arel
53
104
  end
54
105
 
55
- def to_mapping(columns)
106
+ def merge_mappings(mappings, columns)
56
107
  # Remove the scope_name/table_name when using table_name.column
57
- sources_without_scope = sources.map { _1.split(".").last }
58
- [model_name, columns.zip(sources_without_scope).to_h]
108
+ mapping =
109
+ columns.zip(sources.map { |source| source.split(".").last }).to_h
110
+ model_name.each_name { |name| mappings[name] = mapping }
59
111
  end
60
112
 
61
113
  private
@@ -95,7 +147,9 @@ module ActiveRecord
95
147
 
96
148
  def subclass_for(model)
97
149
  discriminator = self.discriminator
98
- mappings = subqueries.to_h { |subquery| subquery.to_mapping(columns) }
150
+
151
+ mappings = {}
152
+ subqueries.each { |subquery| subquery.merge_mappings(mappings, columns) }
99
153
 
100
154
  Class.new(model) do
101
155
  # Set the inheritance column and register the discriminator as a string
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.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Newton
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-09 00:00:00.000000000 Z
11
+ date: 2024-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -87,26 +87,11 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".github/dependabot.yml"
91
- - ".github/workflows/auto-merge.yml"
92
- - ".github/workflows/main.yml"
93
- - ".gitignore"
94
90
  - CHANGELOG.md
95
91
  - CODE_OF_CONDUCT.md
96
- - Gemfile
97
- - Gemfile.lock
98
92
  - LICENSE
99
93
  - README.md
100
- - Rakefile
101
94
  - active_record-union_relation.gemspec
102
- - bin/console
103
- - bin/setup
104
- - gemfiles/mysql/Gemfile
105
- - gemfiles/mysql/Gemfile.lock
106
- - gemfiles/postgresql/Gemfile
107
- - gemfiles/postgresql/Gemfile.lock
108
- - gemfiles/sqlite/Gemfile
109
- - gemfiles/sqlite/Gemfile.lock
110
95
  - lib/active_record/union_relation.rb
111
96
  - lib/active_record/union_relation/version.rb
112
97
  homepage: https://github.com/kddnewton/active_record-union_relation
@@ -114,7 +99,7 @@ licenses:
114
99
  - MIT
115
100
  metadata:
116
101
  bug_tracker_uri: https://github.com/kddnewton/active_record-union_relation/issues
117
- changelog_uri: https://github.com/kddnewton/active_record-union_relation/blob/v0.2.0/CHANGELOG.md
102
+ changelog_uri: https://github.com/kddnewton/active_record-union_relation/blob/v0.3.0/CHANGELOG.md
118
103
  source_code_uri: https://github.com/kddnewton/active_record-union_relation
119
104
  rubygems_mfa_required: 'true'
120
105
  post_install_message:
@@ -132,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
117
  - !ruby/object:Gem::Version
133
118
  version: '0'
134
119
  requirements: []
135
- rubygems_version: 3.4.1
120
+ rubygems_version: 3.5.3
136
121
  signing_key:
137
122
  specification_version: 4
138
123
  summary: Create ActiveRecord relations from UNIONs
@@ -1,22 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: "bundler"
4
- directory: "/"
5
- schedule:
6
- interval: "daily"
7
- - package-ecosystem: "bundler"
8
- directory: "/gemfiles/mysql"
9
- schedule:
10
- interval: "daily"
11
- - package-ecosystem: "bundler"
12
- directory: "/gemfiles/postgresql"
13
- schedule:
14
- interval: "daily"
15
- - package-ecosystem: "bundler"
16
- directory: "/gemfiles/sqlite"
17
- schedule:
18
- interval: "daily"
19
- - package-ecosystem: "github-actions"
20
- directory: "/"
21
- schedule:
22
- interval: "daily"
@@ -1,22 +0,0 @@
1
- name: Dependabot auto-merge
2
- on: pull_request
3
-
4
- permissions:
5
- contents: write
6
- pull-requests: write
7
-
8
- jobs:
9
- dependabot:
10
- runs-on: ubuntu-latest
11
- if: ${{ github.actor == 'dependabot[bot]' }}
12
- steps:
13
- - name: Dependabot metadata
14
- id: metadata
15
- uses: dependabot/fetch-metadata@v1.6.0
16
- with:
17
- github-token: "${{ secrets.GITHUB_TOKEN }}"
18
- - name: Enable auto-merge for Dependabot PRs
19
- run: gh pr merge --auto --merge "$PR_URL"
20
- env:
21
- PR_URL: ${{github.event.pull_request.html_url}}
22
- GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -1,94 +0,0 @@
1
- name: Main
2
-
3
- on:
4
- - push
5
- - pull_request
6
-
7
- jobs:
8
- lint:
9
- name: Lint
10
- runs-on: ubuntu-latest
11
- steps:
12
- - run: sudo apt-get -yqq install libpq-dev libsqlite3-dev
13
- - uses: actions/checkout@master
14
- - uses: ruby/setup-ruby@v1
15
- with:
16
- ruby-version: '3.3'
17
- bundler-cache: true
18
- - name: Lint
19
- run: bundle exec rake stree:check
20
- mysql:
21
- name: MySQL
22
- runs-on: ubuntu-latest
23
- env:
24
- BUNDLE_GEMFILE: gemfiles/mysql/Gemfile
25
- DATABASE_URL: mysql2://root:password@127.0.0.1:3306/test
26
- RAILS_ENV: test
27
- services:
28
- mysql:
29
- image: mysql:5.7
30
- env:
31
- MYSQL_DATABASE: test
32
- MYSQL_USERNAME: root
33
- MYSQL_PASSWORD: password
34
- MYSQL_ROOT_PASSWORD: password
35
- MYSQL_HOST: 127.0.0.1
36
- MYSQL_PORT: 3306
37
- MYSQL_ALLOW_EMPTY_PASSWORD: yes
38
- ports:
39
- - 3306:3306
40
- options: >-
41
- --health-cmd="mysqladmin ping"
42
- --health-interval=10s
43
- --health-timeout=5s
44
- --health-retries=3
45
- steps:
46
- - uses: actions/checkout@master
47
- - uses: ruby/setup-ruby@v1
48
- with:
49
- ruby-version: '3.3'
50
- bundler-cache: true
51
- - name: Test
52
- run: bundle exec rake test
53
- postgresql:
54
- name: PostgreSQL
55
- runs-on: ubuntu-latest
56
- env:
57
- BUNDLE_GEMFILE: gemfiles/postgresql/Gemfile
58
- DATABASE_URL: postgres://postgres:@localhost:5432/postgres
59
- RAILS_ENV: test
60
- services:
61
- postgres:
62
- image: postgres:11.5
63
- ports:
64
- - 5432:5432
65
- options: >-
66
- --health-cmd pg_isready
67
- --health-interval 10s
68
- --health-timeout 5s
69
- --health-retries 5
70
- steps:
71
- - run: sudo apt-get -yqq install libpq-dev
72
- - uses: actions/checkout@master
73
- - uses: ruby/setup-ruby@v1
74
- with:
75
- ruby-version: '3.3'
76
- bundler-cache: true
77
- - name: Test
78
- run: bundle exec rake test
79
- sqlite:
80
- name: SQLite
81
- runs-on: ubuntu-latest
82
- env:
83
- BUNDLE_GEMFILE: gemfiles/sqlite/Gemfile
84
- DATABASE_URL: "sqlite3::memory:"
85
- RAILS_ENV: test
86
- steps:
87
- - run: sudo apt-get -yqq install libsqlite3-dev
88
- - uses: actions/checkout@master
89
- - uses: ruby/setup-ruby@v1
90
- with:
91
- ruby-version: '3.3'
92
- bundler-cache: true
93
- - name: Test
94
- run: bundle exec rake test
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec
6
-
7
- gem "mysql2"
8
- gem "pg"
9
- gem "sqlite3"
data/Gemfile.lock DELETED
@@ -1,207 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- active_record-union_relation (0.2.0)
5
- activerecord (>= 6)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (7.1.3)
11
- actionpack (= 7.1.3)
12
- activesupport (= 7.1.3)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- zeitwerk (~> 2.6)
16
- actionmailbox (7.1.3)
17
- actionpack (= 7.1.3)
18
- activejob (= 7.1.3)
19
- activerecord (= 7.1.3)
20
- activestorage (= 7.1.3)
21
- activesupport (= 7.1.3)
22
- mail (>= 2.7.1)
23
- net-imap
24
- net-pop
25
- net-smtp
26
- actionmailer (7.1.3)
27
- actionpack (= 7.1.3)
28
- actionview (= 7.1.3)
29
- activejob (= 7.1.3)
30
- activesupport (= 7.1.3)
31
- mail (~> 2.5, >= 2.5.4)
32
- net-imap
33
- net-pop
34
- net-smtp
35
- rails-dom-testing (~> 2.2)
36
- actionpack (7.1.3)
37
- actionview (= 7.1.3)
38
- activesupport (= 7.1.3)
39
- nokogiri (>= 1.8.5)
40
- racc
41
- rack (>= 2.2.4)
42
- rack-session (>= 1.0.1)
43
- rack-test (>= 0.6.3)
44
- rails-dom-testing (~> 2.2)
45
- rails-html-sanitizer (~> 1.6)
46
- actiontext (7.1.3)
47
- actionpack (= 7.1.3)
48
- activerecord (= 7.1.3)
49
- activestorage (= 7.1.3)
50
- activesupport (= 7.1.3)
51
- globalid (>= 0.6.0)
52
- nokogiri (>= 1.8.5)
53
- actionview (7.1.3)
54
- activesupport (= 7.1.3)
55
- builder (~> 3.1)
56
- erubi (~> 1.11)
57
- rails-dom-testing (~> 2.2)
58
- rails-html-sanitizer (~> 1.6)
59
- activejob (7.1.3)
60
- activesupport (= 7.1.3)
61
- globalid (>= 0.3.6)
62
- activemodel (7.1.3)
63
- activesupport (= 7.1.3)
64
- activerecord (7.1.3)
65
- activemodel (= 7.1.3)
66
- activesupport (= 7.1.3)
67
- timeout (>= 0.4.0)
68
- activestorage (7.1.3)
69
- actionpack (= 7.1.3)
70
- activejob (= 7.1.3)
71
- activerecord (= 7.1.3)
72
- activesupport (= 7.1.3)
73
- marcel (~> 1.0)
74
- activesupport (7.1.3)
75
- base64
76
- bigdecimal
77
- concurrent-ruby (~> 1.0, >= 1.0.2)
78
- connection_pool (>= 2.2.5)
79
- drb
80
- i18n (>= 1.6, < 2)
81
- minitest (>= 5.1)
82
- mutex_m
83
- tzinfo (~> 2.0)
84
- base64 (0.2.0)
85
- bigdecimal (3.1.6)
86
- builder (3.2.4)
87
- concurrent-ruby (1.2.3)
88
- connection_pool (2.4.1)
89
- crass (1.0.6)
90
- date (3.3.4)
91
- drb (2.2.0)
92
- ruby2_keywords
93
- erubi (1.12.0)
94
- globalid (1.2.1)
95
- activesupport (>= 6.1)
96
- i18n (1.14.1)
97
- concurrent-ruby (~> 1.0)
98
- io-console (0.7.2)
99
- irb (1.11.2)
100
- rdoc
101
- reline (>= 0.4.2)
102
- loofah (2.22.0)
103
- crass (~> 1.0.2)
104
- nokogiri (>= 1.12.0)
105
- mail (2.8.1)
106
- mini_mime (>= 0.1.1)
107
- net-imap
108
- net-pop
109
- net-smtp
110
- marcel (1.0.2)
111
- mini_mime (1.1.5)
112
- minitest (5.22.2)
113
- mutex_m (0.2.0)
114
- mysql2 (0.5.6)
115
- net-imap (0.4.10)
116
- date
117
- net-protocol
118
- net-pop (0.1.2)
119
- net-protocol
120
- net-protocol (0.2.2)
121
- timeout
122
- net-smtp (0.4.0.1)
123
- net-protocol
124
- nio4r (2.7.0)
125
- nokogiri (1.16.2-arm64-darwin)
126
- racc (~> 1.4)
127
- nokogiri (1.16.2-x86_64-linux)
128
- racc (~> 1.4)
129
- pg (1.5.4)
130
- prettier_print (1.2.1)
131
- psych (5.1.2)
132
- stringio
133
- racc (1.7.3)
134
- rack (3.0.9)
135
- rack-session (2.0.0)
136
- rack (>= 3.0.0)
137
- rack-test (2.1.0)
138
- rack (>= 1.3)
139
- rackup (2.1.0)
140
- rack (>= 3)
141
- webrick (~> 1.8)
142
- rails (7.1.3)
143
- actioncable (= 7.1.3)
144
- actionmailbox (= 7.1.3)
145
- actionmailer (= 7.1.3)
146
- actionpack (= 7.1.3)
147
- actiontext (= 7.1.3)
148
- actionview (= 7.1.3)
149
- activejob (= 7.1.3)
150
- activemodel (= 7.1.3)
151
- activerecord (= 7.1.3)
152
- activestorage (= 7.1.3)
153
- activesupport (= 7.1.3)
154
- bundler (>= 1.15.0)
155
- railties (= 7.1.3)
156
- rails-dom-testing (2.2.0)
157
- activesupport (>= 5.0.0)
158
- minitest
159
- nokogiri (>= 1.6)
160
- rails-html-sanitizer (1.6.0)
161
- loofah (~> 2.21)
162
- nokogiri (~> 1.14)
163
- railties (7.1.3)
164
- actionpack (= 7.1.3)
165
- activesupport (= 7.1.3)
166
- irb
167
- rackup (>= 1.0.0)
168
- rake (>= 12.2)
169
- thor (~> 1.0, >= 1.2.2)
170
- zeitwerk (~> 2.6)
171
- rake (13.1.0)
172
- rdoc (6.6.2)
173
- psych (>= 4.0.0)
174
- reline (0.4.2)
175
- io-console (~> 0.5)
176
- ruby2_keywords (0.0.5)
177
- sqlite3 (1.7.2-arm64-darwin)
178
- sqlite3 (1.7.2-x86_64-linux)
179
- stringio (3.1.0)
180
- syntax_tree (6.2.0)
181
- prettier_print (>= 1.2.0)
182
- thor (1.3.0)
183
- timeout (0.4.1)
184
- tzinfo (2.0.6)
185
- concurrent-ruby (~> 1.0)
186
- webrick (1.8.1)
187
- websocket-driver (0.7.6)
188
- websocket-extensions (>= 0.1.0)
189
- websocket-extensions (0.1.5)
190
- zeitwerk (2.6.13)
191
-
192
- PLATFORMS
193
- arm64-darwin-22
194
- x86_64-linux
195
-
196
- DEPENDENCIES
197
- active_record-union_relation!
198
- minitest
199
- mysql2
200
- pg
201
- rails
202
- rake
203
- sqlite3
204
- syntax_tree
205
-
206
- BUNDLED WITH
207
- 2.4.1
data/Rakefile DELETED
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rake/testtask"
5
- require "syntax_tree/rake_tasks"
6
-
7
- Rake::TestTask.new(:test) do |t|
8
- t.libs << "test"
9
- t.libs << "lib"
10
- t.test_files = FileList["test/**/*_test.rb"]
11
- end
12
-
13
- task default: :test
14
-
15
- configure = ->(task) do
16
- task.source_files =
17
- FileList[%w[Gemfile Rakefile *.gemspec lib/**/*.rb test/**/*.rb]]
18
- end
19
-
20
- SyntaxTree::Rake::CheckTask.new(&configure)
21
- SyntaxTree::Rake::WriteTask.new(&configure)
data/bin/console DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'active_record/union_relation'
5
-
6
- require 'irb'
7
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec path: "../.."
6
-
7
- gem "mysql2"
@@ -1,202 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- active_record-union_relation (0.2.0)
5
- activerecord (>= 6)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (7.1.3)
11
- actionpack (= 7.1.3)
12
- activesupport (= 7.1.3)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- zeitwerk (~> 2.6)
16
- actionmailbox (7.1.3)
17
- actionpack (= 7.1.3)
18
- activejob (= 7.1.3)
19
- activerecord (= 7.1.3)
20
- activestorage (= 7.1.3)
21
- activesupport (= 7.1.3)
22
- mail (>= 2.7.1)
23
- net-imap
24
- net-pop
25
- net-smtp
26
- actionmailer (7.1.3)
27
- actionpack (= 7.1.3)
28
- actionview (= 7.1.3)
29
- activejob (= 7.1.3)
30
- activesupport (= 7.1.3)
31
- mail (~> 2.5, >= 2.5.4)
32
- net-imap
33
- net-pop
34
- net-smtp
35
- rails-dom-testing (~> 2.2)
36
- actionpack (7.1.3)
37
- actionview (= 7.1.3)
38
- activesupport (= 7.1.3)
39
- nokogiri (>= 1.8.5)
40
- racc
41
- rack (>= 2.2.4)
42
- rack-session (>= 1.0.1)
43
- rack-test (>= 0.6.3)
44
- rails-dom-testing (~> 2.2)
45
- rails-html-sanitizer (~> 1.6)
46
- actiontext (7.1.3)
47
- actionpack (= 7.1.3)
48
- activerecord (= 7.1.3)
49
- activestorage (= 7.1.3)
50
- activesupport (= 7.1.3)
51
- globalid (>= 0.6.0)
52
- nokogiri (>= 1.8.5)
53
- actionview (7.1.3)
54
- activesupport (= 7.1.3)
55
- builder (~> 3.1)
56
- erubi (~> 1.11)
57
- rails-dom-testing (~> 2.2)
58
- rails-html-sanitizer (~> 1.6)
59
- activejob (7.1.3)
60
- activesupport (= 7.1.3)
61
- globalid (>= 0.3.6)
62
- activemodel (7.1.3)
63
- activesupport (= 7.1.3)
64
- activerecord (7.1.3)
65
- activemodel (= 7.1.3)
66
- activesupport (= 7.1.3)
67
- timeout (>= 0.4.0)
68
- activestorage (7.1.3)
69
- actionpack (= 7.1.3)
70
- activejob (= 7.1.3)
71
- activerecord (= 7.1.3)
72
- activesupport (= 7.1.3)
73
- marcel (~> 1.0)
74
- activesupport (7.1.3)
75
- base64
76
- bigdecimal
77
- concurrent-ruby (~> 1.0, >= 1.0.2)
78
- connection_pool (>= 2.2.5)
79
- drb
80
- i18n (>= 1.6, < 2)
81
- minitest (>= 5.1)
82
- mutex_m
83
- tzinfo (~> 2.0)
84
- base64 (0.2.0)
85
- bigdecimal (3.1.6)
86
- builder (3.2.4)
87
- concurrent-ruby (1.2.3)
88
- connection_pool (2.4.1)
89
- crass (1.0.6)
90
- date (3.3.4)
91
- drb (2.2.0)
92
- ruby2_keywords
93
- erubi (1.12.0)
94
- globalid (1.2.1)
95
- activesupport (>= 6.1)
96
- i18n (1.14.1)
97
- concurrent-ruby (~> 1.0)
98
- io-console (0.7.2)
99
- irb (1.11.2)
100
- rdoc
101
- reline (>= 0.4.2)
102
- loofah (2.22.0)
103
- crass (~> 1.0.2)
104
- nokogiri (>= 1.12.0)
105
- mail (2.8.1)
106
- mini_mime (>= 0.1.1)
107
- net-imap
108
- net-pop
109
- net-smtp
110
- marcel (1.0.2)
111
- mini_mime (1.1.5)
112
- minitest (5.22.2)
113
- mutex_m (0.2.0)
114
- mysql2 (0.5.6)
115
- net-imap (0.4.10)
116
- date
117
- net-protocol
118
- net-pop (0.1.2)
119
- net-protocol
120
- net-protocol (0.2.2)
121
- timeout
122
- net-smtp (0.4.0.1)
123
- net-protocol
124
- nio4r (2.7.0)
125
- nokogiri (1.16.2-arm64-darwin)
126
- racc (~> 1.4)
127
- nokogiri (1.16.2-x86_64-linux)
128
- racc (~> 1.4)
129
- prettier_print (1.2.1)
130
- psych (5.1.2)
131
- stringio
132
- racc (1.7.3)
133
- rack (3.0.9)
134
- rack-session (2.0.0)
135
- rack (>= 3.0.0)
136
- rack-test (2.1.0)
137
- rack (>= 1.3)
138
- rackup (2.1.0)
139
- rack (>= 3)
140
- webrick (~> 1.8)
141
- rails (7.1.3)
142
- actioncable (= 7.1.3)
143
- actionmailbox (= 7.1.3)
144
- actionmailer (= 7.1.3)
145
- actionpack (= 7.1.3)
146
- actiontext (= 7.1.3)
147
- actionview (= 7.1.3)
148
- activejob (= 7.1.3)
149
- activemodel (= 7.1.3)
150
- activerecord (= 7.1.3)
151
- activestorage (= 7.1.3)
152
- activesupport (= 7.1.3)
153
- bundler (>= 1.15.0)
154
- railties (= 7.1.3)
155
- rails-dom-testing (2.2.0)
156
- activesupport (>= 5.0.0)
157
- minitest
158
- nokogiri (>= 1.6)
159
- rails-html-sanitizer (1.6.0)
160
- loofah (~> 2.21)
161
- nokogiri (~> 1.14)
162
- railties (7.1.3)
163
- actionpack (= 7.1.3)
164
- activesupport (= 7.1.3)
165
- irb
166
- rackup (>= 1.0.0)
167
- rake (>= 12.2)
168
- thor (~> 1.0, >= 1.2.2)
169
- zeitwerk (~> 2.6)
170
- rake (13.1.0)
171
- rdoc (6.6.2)
172
- psych (>= 4.0.0)
173
- reline (0.4.2)
174
- io-console (~> 0.5)
175
- ruby2_keywords (0.0.5)
176
- stringio (3.1.0)
177
- syntax_tree (6.2.0)
178
- prettier_print (>= 1.2.0)
179
- thor (1.3.0)
180
- timeout (0.4.1)
181
- tzinfo (2.0.6)
182
- concurrent-ruby (~> 1.0)
183
- webrick (1.8.1)
184
- websocket-driver (0.7.6)
185
- websocket-extensions (>= 0.1.0)
186
- websocket-extensions (0.1.5)
187
- zeitwerk (2.6.13)
188
-
189
- PLATFORMS
190
- arm64-darwin-22
191
- x86_64-linux
192
-
193
- DEPENDENCIES
194
- active_record-union_relation!
195
- minitest
196
- mysql2
197
- rails
198
- rake
199
- syntax_tree
200
-
201
- BUNDLED WITH
202
- 2.4.13
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec path: "../.."
6
-
7
- gem "pg"
@@ -1,202 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- active_record-union_relation (0.2.0)
5
- activerecord (>= 6)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (7.1.3)
11
- actionpack (= 7.1.3)
12
- activesupport (= 7.1.3)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- zeitwerk (~> 2.6)
16
- actionmailbox (7.1.3)
17
- actionpack (= 7.1.3)
18
- activejob (= 7.1.3)
19
- activerecord (= 7.1.3)
20
- activestorage (= 7.1.3)
21
- activesupport (= 7.1.3)
22
- mail (>= 2.7.1)
23
- net-imap
24
- net-pop
25
- net-smtp
26
- actionmailer (7.1.3)
27
- actionpack (= 7.1.3)
28
- actionview (= 7.1.3)
29
- activejob (= 7.1.3)
30
- activesupport (= 7.1.3)
31
- mail (~> 2.5, >= 2.5.4)
32
- net-imap
33
- net-pop
34
- net-smtp
35
- rails-dom-testing (~> 2.2)
36
- actionpack (7.1.3)
37
- actionview (= 7.1.3)
38
- activesupport (= 7.1.3)
39
- nokogiri (>= 1.8.5)
40
- racc
41
- rack (>= 2.2.4)
42
- rack-session (>= 1.0.1)
43
- rack-test (>= 0.6.3)
44
- rails-dom-testing (~> 2.2)
45
- rails-html-sanitizer (~> 1.6)
46
- actiontext (7.1.3)
47
- actionpack (= 7.1.3)
48
- activerecord (= 7.1.3)
49
- activestorage (= 7.1.3)
50
- activesupport (= 7.1.3)
51
- globalid (>= 0.6.0)
52
- nokogiri (>= 1.8.5)
53
- actionview (7.1.3)
54
- activesupport (= 7.1.3)
55
- builder (~> 3.1)
56
- erubi (~> 1.11)
57
- rails-dom-testing (~> 2.2)
58
- rails-html-sanitizer (~> 1.6)
59
- activejob (7.1.3)
60
- activesupport (= 7.1.3)
61
- globalid (>= 0.3.6)
62
- activemodel (7.1.3)
63
- activesupport (= 7.1.3)
64
- activerecord (7.1.3)
65
- activemodel (= 7.1.3)
66
- activesupport (= 7.1.3)
67
- timeout (>= 0.4.0)
68
- activestorage (7.1.3)
69
- actionpack (= 7.1.3)
70
- activejob (= 7.1.3)
71
- activerecord (= 7.1.3)
72
- activesupport (= 7.1.3)
73
- marcel (~> 1.0)
74
- activesupport (7.1.3)
75
- base64
76
- bigdecimal
77
- concurrent-ruby (~> 1.0, >= 1.0.2)
78
- connection_pool (>= 2.2.5)
79
- drb
80
- i18n (>= 1.6, < 2)
81
- minitest (>= 5.1)
82
- mutex_m
83
- tzinfo (~> 2.0)
84
- base64 (0.2.0)
85
- bigdecimal (3.1.6)
86
- builder (3.2.4)
87
- concurrent-ruby (1.2.3)
88
- connection_pool (2.4.1)
89
- crass (1.0.6)
90
- date (3.3.4)
91
- drb (2.2.0)
92
- ruby2_keywords
93
- erubi (1.12.0)
94
- globalid (1.2.1)
95
- activesupport (>= 6.1)
96
- i18n (1.14.1)
97
- concurrent-ruby (~> 1.0)
98
- io-console (0.7.2)
99
- irb (1.11.2)
100
- rdoc
101
- reline (>= 0.4.2)
102
- loofah (2.22.0)
103
- crass (~> 1.0.2)
104
- nokogiri (>= 1.12.0)
105
- mail (2.8.1)
106
- mini_mime (>= 0.1.1)
107
- net-imap
108
- net-pop
109
- net-smtp
110
- marcel (1.0.2)
111
- mini_mime (1.1.5)
112
- minitest (5.22.2)
113
- mutex_m (0.2.0)
114
- net-imap (0.4.10)
115
- date
116
- net-protocol
117
- net-pop (0.1.2)
118
- net-protocol
119
- net-protocol (0.2.2)
120
- timeout
121
- net-smtp (0.4.0.1)
122
- net-protocol
123
- nio4r (2.7.0)
124
- nokogiri (1.16.2-arm64-darwin)
125
- racc (~> 1.4)
126
- nokogiri (1.16.2-x86_64-linux)
127
- racc (~> 1.4)
128
- pg (1.5.4)
129
- prettier_print (1.2.1)
130
- psych (5.1.2)
131
- stringio
132
- racc (1.7.3)
133
- rack (3.0.9)
134
- rack-session (2.0.0)
135
- rack (>= 3.0.0)
136
- rack-test (2.1.0)
137
- rack (>= 1.3)
138
- rackup (2.1.0)
139
- rack (>= 3)
140
- webrick (~> 1.8)
141
- rails (7.1.3)
142
- actioncable (= 7.1.3)
143
- actionmailbox (= 7.1.3)
144
- actionmailer (= 7.1.3)
145
- actionpack (= 7.1.3)
146
- actiontext (= 7.1.3)
147
- actionview (= 7.1.3)
148
- activejob (= 7.1.3)
149
- activemodel (= 7.1.3)
150
- activerecord (= 7.1.3)
151
- activestorage (= 7.1.3)
152
- activesupport (= 7.1.3)
153
- bundler (>= 1.15.0)
154
- railties (= 7.1.3)
155
- rails-dom-testing (2.2.0)
156
- activesupport (>= 5.0.0)
157
- minitest
158
- nokogiri (>= 1.6)
159
- rails-html-sanitizer (1.6.0)
160
- loofah (~> 2.21)
161
- nokogiri (~> 1.14)
162
- railties (7.1.3)
163
- actionpack (= 7.1.3)
164
- activesupport (= 7.1.3)
165
- irb
166
- rackup (>= 1.0.0)
167
- rake (>= 12.2)
168
- thor (~> 1.0, >= 1.2.2)
169
- zeitwerk (~> 2.6)
170
- rake (13.1.0)
171
- rdoc (6.6.2)
172
- psych (>= 4.0.0)
173
- reline (0.4.2)
174
- io-console (~> 0.5)
175
- ruby2_keywords (0.0.5)
176
- stringio (3.1.0)
177
- syntax_tree (6.2.0)
178
- prettier_print (>= 1.2.0)
179
- thor (1.3.0)
180
- timeout (0.4.1)
181
- tzinfo (2.0.6)
182
- concurrent-ruby (~> 1.0)
183
- webrick (1.8.1)
184
- websocket-driver (0.7.6)
185
- websocket-extensions (>= 0.1.0)
186
- websocket-extensions (0.1.5)
187
- zeitwerk (2.6.13)
188
-
189
- PLATFORMS
190
- arm64-darwin-22
191
- x86_64-linux
192
-
193
- DEPENDENCIES
194
- active_record-union_relation!
195
- minitest
196
- pg
197
- rails
198
- rake
199
- syntax_tree
200
-
201
- BUNDLED WITH
202
- 2.4.13
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec path: "../.."
6
-
7
- gem "sqlite3"
@@ -1,203 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- active_record-union_relation (0.2.0)
5
- activerecord (>= 6)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (7.1.3)
11
- actionpack (= 7.1.3)
12
- activesupport (= 7.1.3)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- zeitwerk (~> 2.6)
16
- actionmailbox (7.1.3)
17
- actionpack (= 7.1.3)
18
- activejob (= 7.1.3)
19
- activerecord (= 7.1.3)
20
- activestorage (= 7.1.3)
21
- activesupport (= 7.1.3)
22
- mail (>= 2.7.1)
23
- net-imap
24
- net-pop
25
- net-smtp
26
- actionmailer (7.1.3)
27
- actionpack (= 7.1.3)
28
- actionview (= 7.1.3)
29
- activejob (= 7.1.3)
30
- activesupport (= 7.1.3)
31
- mail (~> 2.5, >= 2.5.4)
32
- net-imap
33
- net-pop
34
- net-smtp
35
- rails-dom-testing (~> 2.2)
36
- actionpack (7.1.3)
37
- actionview (= 7.1.3)
38
- activesupport (= 7.1.3)
39
- nokogiri (>= 1.8.5)
40
- racc
41
- rack (>= 2.2.4)
42
- rack-session (>= 1.0.1)
43
- rack-test (>= 0.6.3)
44
- rails-dom-testing (~> 2.2)
45
- rails-html-sanitizer (~> 1.6)
46
- actiontext (7.1.3)
47
- actionpack (= 7.1.3)
48
- activerecord (= 7.1.3)
49
- activestorage (= 7.1.3)
50
- activesupport (= 7.1.3)
51
- globalid (>= 0.6.0)
52
- nokogiri (>= 1.8.5)
53
- actionview (7.1.3)
54
- activesupport (= 7.1.3)
55
- builder (~> 3.1)
56
- erubi (~> 1.11)
57
- rails-dom-testing (~> 2.2)
58
- rails-html-sanitizer (~> 1.6)
59
- activejob (7.1.3)
60
- activesupport (= 7.1.3)
61
- globalid (>= 0.3.6)
62
- activemodel (7.1.3)
63
- activesupport (= 7.1.3)
64
- activerecord (7.1.3)
65
- activemodel (= 7.1.3)
66
- activesupport (= 7.1.3)
67
- timeout (>= 0.4.0)
68
- activestorage (7.1.3)
69
- actionpack (= 7.1.3)
70
- activejob (= 7.1.3)
71
- activerecord (= 7.1.3)
72
- activesupport (= 7.1.3)
73
- marcel (~> 1.0)
74
- activesupport (7.1.3)
75
- base64
76
- bigdecimal
77
- concurrent-ruby (~> 1.0, >= 1.0.2)
78
- connection_pool (>= 2.2.5)
79
- drb
80
- i18n (>= 1.6, < 2)
81
- minitest (>= 5.1)
82
- mutex_m
83
- tzinfo (~> 2.0)
84
- base64 (0.2.0)
85
- bigdecimal (3.1.6)
86
- builder (3.2.4)
87
- concurrent-ruby (1.2.3)
88
- connection_pool (2.4.1)
89
- crass (1.0.6)
90
- date (3.3.4)
91
- drb (2.2.0)
92
- ruby2_keywords
93
- erubi (1.12.0)
94
- globalid (1.2.1)
95
- activesupport (>= 6.1)
96
- i18n (1.14.1)
97
- concurrent-ruby (~> 1.0)
98
- io-console (0.7.2)
99
- irb (1.11.2)
100
- rdoc
101
- reline (>= 0.4.2)
102
- loofah (2.22.0)
103
- crass (~> 1.0.2)
104
- nokogiri (>= 1.12.0)
105
- mail (2.8.1)
106
- mini_mime (>= 0.1.1)
107
- net-imap
108
- net-pop
109
- net-smtp
110
- marcel (1.0.2)
111
- mini_mime (1.1.5)
112
- minitest (5.22.2)
113
- mutex_m (0.2.0)
114
- net-imap (0.4.10)
115
- date
116
- net-protocol
117
- net-pop (0.1.2)
118
- net-protocol
119
- net-protocol (0.2.2)
120
- timeout
121
- net-smtp (0.4.0.1)
122
- net-protocol
123
- nio4r (2.7.0)
124
- nokogiri (1.16.2-arm64-darwin)
125
- racc (~> 1.4)
126
- nokogiri (1.16.2-x86_64-linux)
127
- racc (~> 1.4)
128
- prettier_print (1.2.1)
129
- psych (5.1.2)
130
- stringio
131
- racc (1.7.3)
132
- rack (3.0.9)
133
- rack-session (2.0.0)
134
- rack (>= 3.0.0)
135
- rack-test (2.1.0)
136
- rack (>= 1.3)
137
- rackup (2.1.0)
138
- rack (>= 3)
139
- webrick (~> 1.8)
140
- rails (7.1.3)
141
- actioncable (= 7.1.3)
142
- actionmailbox (= 7.1.3)
143
- actionmailer (= 7.1.3)
144
- actionpack (= 7.1.3)
145
- actiontext (= 7.1.3)
146
- actionview (= 7.1.3)
147
- activejob (= 7.1.3)
148
- activemodel (= 7.1.3)
149
- activerecord (= 7.1.3)
150
- activestorage (= 7.1.3)
151
- activesupport (= 7.1.3)
152
- bundler (>= 1.15.0)
153
- railties (= 7.1.3)
154
- rails-dom-testing (2.2.0)
155
- activesupport (>= 5.0.0)
156
- minitest
157
- nokogiri (>= 1.6)
158
- rails-html-sanitizer (1.6.0)
159
- loofah (~> 2.21)
160
- nokogiri (~> 1.14)
161
- railties (7.1.3)
162
- actionpack (= 7.1.3)
163
- activesupport (= 7.1.3)
164
- irb
165
- rackup (>= 1.0.0)
166
- rake (>= 12.2)
167
- thor (~> 1.0, >= 1.2.2)
168
- zeitwerk (~> 2.6)
169
- rake (13.1.0)
170
- rdoc (6.6.2)
171
- psych (>= 4.0.0)
172
- reline (0.4.2)
173
- io-console (~> 0.5)
174
- ruby2_keywords (0.0.5)
175
- sqlite3 (1.7.2-arm64-darwin)
176
- sqlite3 (1.7.2-x86_64-linux)
177
- stringio (3.1.0)
178
- syntax_tree (6.2.0)
179
- prettier_print (>= 1.2.0)
180
- thor (1.3.0)
181
- timeout (0.4.1)
182
- tzinfo (2.0.6)
183
- concurrent-ruby (~> 1.0)
184
- webrick (1.8.1)
185
- websocket-driver (0.7.6)
186
- websocket-extensions (>= 0.1.0)
187
- websocket-extensions (0.1.5)
188
- zeitwerk (2.6.13)
189
-
190
- PLATFORMS
191
- arm64-darwin-22
192
- x86_64-linux
193
-
194
- DEPENDENCIES
195
- active_record-union_relation!
196
- minitest
197
- rails
198
- rake
199
- sqlite3
200
- syntax_tree
201
-
202
- BUNDLED WITH
203
- 2.4.13