relation 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +83 -85
- data/README.md +1 -1
- data/lib/relation/version.rb +2 -1
- data/relation.gemspec +2 -4
- data/test/internal/db/schema.rb +1 -1
- metadata +3 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dafdb00f20ba4c9fbd3e810ec8fd5abbea1c8b20ce27a5f9b0d15de20a82a4a0
|
4
|
+
data.tar.gz: 961c6ca2fd28da3fc86df5232c44fbf794f715abf5fa5a10d4707c7e3ddd3263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82f66c8fa2f5fe8ce4ee7036db43be7d47838cd9861365f84cd8851a062941c6611132f4ec50c6af1286b193d3273ee5633f3d09a431e2ac62306f02ac045105
|
7
|
+
data.tar.gz: 8817aab0b713c3e83e986713a9f43f5701138ffcf478fb2dc24f9083093d3f2039ce9de423b2b9b3ac5bc66dfd75e04dd453e11cafb9e8c9cc664b34cf9a258e
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.2.
|
1
|
+
ruby-3.2.2
|
data/Gemfile.lock
CHANGED
@@ -1,72 +1,72 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relation (0.4.
|
4
|
+
relation (0.4.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actioncable (7.0.4.
|
10
|
-
actionpack (= 7.0.4.
|
11
|
-
activesupport (= 7.0.4.
|
9
|
+
actioncable (7.0.4.3)
|
10
|
+
actionpack (= 7.0.4.3)
|
11
|
+
activesupport (= 7.0.4.3)
|
12
12
|
nio4r (~> 2.0)
|
13
13
|
websocket-driver (>= 0.6.1)
|
14
|
-
actionmailbox (7.0.4.
|
15
|
-
actionpack (= 7.0.4.
|
16
|
-
activejob (= 7.0.4.
|
17
|
-
activerecord (= 7.0.4.
|
18
|
-
activestorage (= 7.0.4.
|
19
|
-
activesupport (= 7.0.4.
|
14
|
+
actionmailbox (7.0.4.3)
|
15
|
+
actionpack (= 7.0.4.3)
|
16
|
+
activejob (= 7.0.4.3)
|
17
|
+
activerecord (= 7.0.4.3)
|
18
|
+
activestorage (= 7.0.4.3)
|
19
|
+
activesupport (= 7.0.4.3)
|
20
20
|
mail (>= 2.7.1)
|
21
21
|
net-imap
|
22
22
|
net-pop
|
23
23
|
net-smtp
|
24
|
-
actionmailer (7.0.4.
|
25
|
-
actionpack (= 7.0.4.
|
26
|
-
actionview (= 7.0.4.
|
27
|
-
activejob (= 7.0.4.
|
28
|
-
activesupport (= 7.0.4.
|
24
|
+
actionmailer (7.0.4.3)
|
25
|
+
actionpack (= 7.0.4.3)
|
26
|
+
actionview (= 7.0.4.3)
|
27
|
+
activejob (= 7.0.4.3)
|
28
|
+
activesupport (= 7.0.4.3)
|
29
29
|
mail (~> 2.5, >= 2.5.4)
|
30
30
|
net-imap
|
31
31
|
net-pop
|
32
32
|
net-smtp
|
33
33
|
rails-dom-testing (~> 2.0)
|
34
|
-
actionpack (7.0.4.
|
35
|
-
actionview (= 7.0.4.
|
36
|
-
activesupport (= 7.0.4.
|
34
|
+
actionpack (7.0.4.3)
|
35
|
+
actionview (= 7.0.4.3)
|
36
|
+
activesupport (= 7.0.4.3)
|
37
37
|
rack (~> 2.0, >= 2.2.0)
|
38
38
|
rack-test (>= 0.6.3)
|
39
39
|
rails-dom-testing (~> 2.0)
|
40
40
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
41
|
-
actiontext (7.0.4.
|
42
|
-
actionpack (= 7.0.4.
|
43
|
-
activerecord (= 7.0.4.
|
44
|
-
activestorage (= 7.0.4.
|
45
|
-
activesupport (= 7.0.4.
|
41
|
+
actiontext (7.0.4.3)
|
42
|
+
actionpack (= 7.0.4.3)
|
43
|
+
activerecord (= 7.0.4.3)
|
44
|
+
activestorage (= 7.0.4.3)
|
45
|
+
activesupport (= 7.0.4.3)
|
46
46
|
globalid (>= 0.6.0)
|
47
47
|
nokogiri (>= 1.8.5)
|
48
|
-
actionview (7.0.4.
|
49
|
-
activesupport (= 7.0.4.
|
48
|
+
actionview (7.0.4.3)
|
49
|
+
activesupport (= 7.0.4.3)
|
50
50
|
builder (~> 3.1)
|
51
51
|
erubi (~> 1.4)
|
52
52
|
rails-dom-testing (~> 2.0)
|
53
53
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
54
|
-
activejob (7.0.4.
|
55
|
-
activesupport (= 7.0.4.
|
54
|
+
activejob (7.0.4.3)
|
55
|
+
activesupport (= 7.0.4.3)
|
56
56
|
globalid (>= 0.3.6)
|
57
|
-
activemodel (7.0.4.
|
58
|
-
activesupport (= 7.0.4.
|
59
|
-
activerecord (7.0.4.
|
60
|
-
activemodel (= 7.0.4.
|
61
|
-
activesupport (= 7.0.4.
|
62
|
-
activestorage (7.0.4.
|
63
|
-
actionpack (= 7.0.4.
|
64
|
-
activejob (= 7.0.4.
|
65
|
-
activerecord (= 7.0.4.
|
66
|
-
activesupport (= 7.0.4.
|
57
|
+
activemodel (7.0.4.3)
|
58
|
+
activesupport (= 7.0.4.3)
|
59
|
+
activerecord (7.0.4.3)
|
60
|
+
activemodel (= 7.0.4.3)
|
61
|
+
activesupport (= 7.0.4.3)
|
62
|
+
activestorage (7.0.4.3)
|
63
|
+
actionpack (= 7.0.4.3)
|
64
|
+
activejob (= 7.0.4.3)
|
65
|
+
activerecord (= 7.0.4.3)
|
66
|
+
activesupport (= 7.0.4.3)
|
67
67
|
marcel (~> 1.0)
|
68
68
|
mini_mime (>= 1.1.0)
|
69
|
-
activesupport (7.0.4.
|
69
|
+
activesupport (7.0.4.3)
|
70
70
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
71
71
|
i18n (>= 1.6, < 2)
|
72
72
|
minitest (>= 5.1)
|
@@ -77,21 +77,21 @@ GEM
|
|
77
77
|
activesupport (>= 3.0.0)
|
78
78
|
railties (>= 3.0.0)
|
79
79
|
thor (>= 0.14.6)
|
80
|
-
concurrent-ruby (1.
|
80
|
+
concurrent-ruby (1.2.2)
|
81
81
|
crass (1.0.6)
|
82
82
|
date (3.3.3)
|
83
83
|
docile (1.4.0)
|
84
84
|
erubi (1.12.0)
|
85
|
-
globalid (1.0
|
85
|
+
globalid (1.1.0)
|
86
86
|
activesupport (>= 5.0)
|
87
87
|
i18n (1.12.0)
|
88
88
|
concurrent-ruby (~> 1.0)
|
89
89
|
json (2.6.3)
|
90
|
-
language_server-protocol (3.17.0.
|
91
|
-
loofah (2.
|
90
|
+
language_server-protocol (3.17.0.3)
|
91
|
+
loofah (2.20.0)
|
92
92
|
crass (~> 1.0.2)
|
93
93
|
nokogiri (>= 1.5.9)
|
94
|
-
mail (2.8.
|
94
|
+
mail (2.8.1)
|
95
95
|
mini_mime (>= 0.1.1)
|
96
96
|
net-imap
|
97
97
|
net-pop
|
@@ -99,7 +99,7 @@ GEM
|
|
99
99
|
marcel (1.0.2)
|
100
100
|
method_source (1.0.0)
|
101
101
|
mini_mime (1.1.2)
|
102
|
-
minitest (5.
|
102
|
+
minitest (5.18.0)
|
103
103
|
minitest-spec-rails (6.2.0)
|
104
104
|
minitest (>= 5.0)
|
105
105
|
railties (>= 4.1)
|
@@ -112,96 +112,94 @@ GEM
|
|
112
112
|
timeout
|
113
113
|
net-smtp (0.3.3)
|
114
114
|
net-protocol
|
115
|
-
nio4r (2.5.
|
116
|
-
nokogiri (1.14.
|
115
|
+
nio4r (2.5.9)
|
116
|
+
nokogiri (1.14.3-x86_64-linux)
|
117
117
|
racc (~> 1.4)
|
118
118
|
observr (1.0.5)
|
119
119
|
parallel (1.22.1)
|
120
|
-
parser (3.2.
|
120
|
+
parser (3.2.2.0)
|
121
121
|
ast (~> 2.4.1)
|
122
122
|
racc (1.6.2)
|
123
|
-
rack (2.2.6.
|
124
|
-
rack-test (2.0
|
123
|
+
rack (2.2.6.4)
|
124
|
+
rack-test (2.1.0)
|
125
125
|
rack (>= 1.3)
|
126
|
-
rails (7.0.4.
|
127
|
-
actioncable (= 7.0.4.
|
128
|
-
actionmailbox (= 7.0.4.
|
129
|
-
actionmailer (= 7.0.4.
|
130
|
-
actionpack (= 7.0.4.
|
131
|
-
actiontext (= 7.0.4.
|
132
|
-
actionview (= 7.0.4.
|
133
|
-
activejob (= 7.0.4.
|
134
|
-
activemodel (= 7.0.4.
|
135
|
-
activerecord (= 7.0.4.
|
136
|
-
activestorage (= 7.0.4.
|
137
|
-
activesupport (= 7.0.4.
|
126
|
+
rails (7.0.4.3)
|
127
|
+
actioncable (= 7.0.4.3)
|
128
|
+
actionmailbox (= 7.0.4.3)
|
129
|
+
actionmailer (= 7.0.4.3)
|
130
|
+
actionpack (= 7.0.4.3)
|
131
|
+
actiontext (= 7.0.4.3)
|
132
|
+
actionview (= 7.0.4.3)
|
133
|
+
activejob (= 7.0.4.3)
|
134
|
+
activemodel (= 7.0.4.3)
|
135
|
+
activerecord (= 7.0.4.3)
|
136
|
+
activestorage (= 7.0.4.3)
|
137
|
+
activesupport (= 7.0.4.3)
|
138
138
|
bundler (>= 1.15.0)
|
139
|
-
railties (= 7.0.4.
|
139
|
+
railties (= 7.0.4.3)
|
140
140
|
rails-dom-testing (2.0.3)
|
141
141
|
activesupport (>= 4.2.0)
|
142
142
|
nokogiri (>= 1.6)
|
143
|
-
rails-html-sanitizer (1.
|
143
|
+
rails-html-sanitizer (1.5.0)
|
144
144
|
loofah (~> 2.19, >= 2.19.1)
|
145
|
-
railties (7.0.4.
|
146
|
-
actionpack (= 7.0.4.
|
147
|
-
activesupport (= 7.0.4.
|
145
|
+
railties (7.0.4.3)
|
146
|
+
actionpack (= 7.0.4.3)
|
147
|
+
activesupport (= 7.0.4.3)
|
148
148
|
method_source
|
149
149
|
rake (>= 12.2)
|
150
150
|
thor (~> 1.0)
|
151
151
|
zeitwerk (~> 2.5)
|
152
152
|
rainbow (3.1.1)
|
153
153
|
rake (13.0.6)
|
154
|
-
regexp_parser (2.
|
154
|
+
regexp_parser (2.7.0)
|
155
155
|
rexml (3.2.5)
|
156
156
|
ricecream (0.2.1)
|
157
|
-
rubocop (1.
|
157
|
+
rubocop (1.48.1)
|
158
158
|
json (~> 2.3)
|
159
159
|
parallel (~> 1.10)
|
160
|
-
parser (>= 3.
|
160
|
+
parser (>= 3.2.0.0)
|
161
161
|
rainbow (>= 2.2.2, < 4.0)
|
162
162
|
regexp_parser (>= 1.8, < 3.0)
|
163
163
|
rexml (>= 3.2.5, < 4.0)
|
164
|
-
rubocop-ast (>= 1.
|
164
|
+
rubocop-ast (>= 1.26.0, < 2.0)
|
165
165
|
ruby-progressbar (~> 1.7)
|
166
|
-
unicode-display_width (>=
|
167
|
-
rubocop-ast (1.
|
168
|
-
parser (>= 3.
|
169
|
-
rubocop-performance (1.
|
166
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
167
|
+
rubocop-ast (1.28.0)
|
168
|
+
parser (>= 3.2.1.0)
|
169
|
+
rubocop-performance (1.16.0)
|
170
170
|
rubocop (>= 1.7.0, < 2.0)
|
171
171
|
rubocop-ast (>= 0.4.0)
|
172
|
-
ruby-progressbar (1.
|
172
|
+
ruby-progressbar (1.13.0)
|
173
173
|
simplecov (0.22.0)
|
174
174
|
docile (~> 1.1)
|
175
175
|
simplecov-html (~> 0.11)
|
176
176
|
simplecov_json_formatter (~> 0.1)
|
177
177
|
simplecov-html (0.12.3)
|
178
178
|
simplecov_json_formatter (0.1.4)
|
179
|
-
sqlite3 (1.6.
|
180
|
-
standard (1.
|
179
|
+
sqlite3 (1.6.2-x86_64-linux)
|
180
|
+
standard (1.26.0)
|
181
181
|
language_server-protocol (~> 3.17.0.2)
|
182
|
-
rubocop (
|
183
|
-
rubocop-performance (
|
182
|
+
rubocop (~> 1.48.1)
|
183
|
+
rubocop-performance (~> 1.16.0)
|
184
184
|
thor (1.2.1)
|
185
|
-
timeout (0.3.
|
186
|
-
tzinfo (2.0.
|
185
|
+
timeout (0.3.2)
|
186
|
+
tzinfo (2.0.6)
|
187
187
|
concurrent-ruby (~> 1.0)
|
188
188
|
unicode-display_width (2.4.2)
|
189
189
|
websocket-driver (0.7.5)
|
190
190
|
websocket-extensions (>= 0.1.0)
|
191
191
|
websocket-extensions (0.1.5)
|
192
|
-
zeitwerk (2.6.
|
192
|
+
zeitwerk (2.6.7)
|
193
193
|
|
194
194
|
PLATFORMS
|
195
195
|
x86_64-linux
|
196
196
|
|
197
197
|
DEPENDENCIES
|
198
|
-
bundler
|
199
198
|
combustion
|
200
199
|
minitest
|
201
200
|
minitest-spec-rails
|
202
201
|
observr
|
203
202
|
rails
|
204
|
-
rake
|
205
203
|
relation!
|
206
204
|
ricecream
|
207
205
|
simplecov
|
@@ -209,4 +207,4 @@ DEPENDENCIES
|
|
209
207
|
standard
|
210
208
|
|
211
209
|
BUNDLED WITH
|
212
|
-
2.4.
|
210
|
+
2.4.10
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
AFAIK, Relation can replace all kind of relationships in a Rails database.
|
5
5
|
The gem stores the relationships in a additional table (named
|
6
6
|
"relations") containing
|
7
|
-
triples (name of relationship,
|
7
|
+
triples (name of relationship, from_id, to_id).
|
8
8
|
No additional column/field is required in a particular table.
|
9
9
|
Adding/removing a relationship do not required a migration.
|
10
10
|
|
data/lib/relation/version.rb
CHANGED
data/relation.gemspec
CHANGED
@@ -3,10 +3,10 @@ require_relative "lib/relation/version"
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "relation"
|
5
5
|
s.version = ModRelation::VERSION
|
6
|
-
s.summary = <<-
|
6
|
+
s.summary = <<-END
|
7
7
|
Rails gem adding relationships between ActiveRecord models.
|
8
8
|
END
|
9
|
-
s.description = <<-
|
9
|
+
s.description = <<-END
|
10
10
|
A Rails gem that adds simple support for organizing ActiveRecord models.
|
11
11
|
Relationships are stored in one additional database table.
|
12
12
|
END
|
@@ -21,9 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.files = `git ls-files`.split("\n")
|
22
22
|
s.require_paths = ["lib", "app"]
|
23
23
|
|
24
|
-
s.add_development_dependency "bundler"
|
25
24
|
s.add_development_dependency "combustion"
|
26
25
|
s.add_development_dependency "minitest"
|
27
|
-
s.add_development_dependency "rake"
|
28
26
|
s.add_development_dependency "sqlite3"
|
29
27
|
end
|
data/test/internal/db/schema.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: combustion
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,20 +38,6 @@ dependencies:
|
|
52
38
|
- - ">="
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
42
|
name: sqlite3
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
107
|
- !ruby/object:Gem::Version
|
136
108
|
version: '0'
|
137
109
|
requirements: []
|
138
|
-
rubygems_version: 3.4.
|
110
|
+
rubygems_version: 3.4.10
|
139
111
|
signing_key:
|
140
112
|
specification_version: 4
|
141
113
|
summary: Rails gem adding relationships between ActiveRecord models.
|