relation 0.5.0 → 0.5.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/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Appraisals +2 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +65 -136
- data/app/models/relation.rb +2 -1
- data/app/models/relation_ext.rb +2 -1
- data/gemfiles/rails_7.2.gemfile +1 -1
- data/gemfiles/rails_8.0.gemfile +1 -1
- data/lib/relation/version.rb +2 -1
- metadata +2 -2
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a75f137bcb290c805c1c881d7e5f40814afb0230498ca3872bd62a6e7b062408
|
|
4
|
+
data.tar.gz: 4d84ff636a489c20e7131931241dd4482d49e09f307995c47606a7697af80385
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9353cfa6ca88640740c5cbcaf90f09d8a232303947146b93b07ed8f69ed6ba83dc1d0ea690389303d8e99b0b95b5dd807b767da87e2c256a1766e5f061bd907c
|
|
7
|
+
data.tar.gz: 1a6a70bce387b2ebd866d6db7d53f106bf638340040247631d228350269535916b13d01cefae687c20df2bdb9964a8f6671ed6819dddc2708f48f1506bbc1e65
|
data/.ruby-gemset
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../.ruby-gemset
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../.ruby-version
|
data/Appraisals
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,34 +1,14 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
relation (0.5.
|
|
4
|
+
relation (0.5.1)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
activesupport (= 8.
|
|
12
|
-
nio4r (~> 2.0)
|
|
13
|
-
websocket-driver (>= 0.6.1)
|
|
14
|
-
zeitwerk (~> 2.6)
|
|
15
|
-
actionmailbox (8.0.2)
|
|
16
|
-
actionpack (= 8.0.2)
|
|
17
|
-
activejob (= 8.0.2)
|
|
18
|
-
activerecord (= 8.0.2)
|
|
19
|
-
activestorage (= 8.0.2)
|
|
20
|
-
activesupport (= 8.0.2)
|
|
21
|
-
mail (>= 2.8.0)
|
|
22
|
-
actionmailer (8.0.2)
|
|
23
|
-
actionpack (= 8.0.2)
|
|
24
|
-
actionview (= 8.0.2)
|
|
25
|
-
activejob (= 8.0.2)
|
|
26
|
-
activesupport (= 8.0.2)
|
|
27
|
-
mail (>= 2.8.0)
|
|
28
|
-
rails-dom-testing (~> 2.2)
|
|
29
|
-
actionpack (8.0.2)
|
|
30
|
-
actionview (= 8.0.2)
|
|
31
|
-
activesupport (= 8.0.2)
|
|
9
|
+
actionpack (8.1.1)
|
|
10
|
+
actionview (= 8.1.1)
|
|
11
|
+
activesupport (= 8.1.1)
|
|
32
12
|
nokogiri (>= 1.8.5)
|
|
33
13
|
rack (>= 2.2.4)
|
|
34
14
|
rack-session (>= 1.0.1)
|
|
@@ -36,42 +16,26 @@ GEM
|
|
|
36
16
|
rails-dom-testing (~> 2.2)
|
|
37
17
|
rails-html-sanitizer (~> 1.6)
|
|
38
18
|
useragent (~> 0.16)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
activerecord (= 8.0.2)
|
|
42
|
-
activestorage (= 8.0.2)
|
|
43
|
-
activesupport (= 8.0.2)
|
|
44
|
-
globalid (>= 0.6.0)
|
|
45
|
-
nokogiri (>= 1.8.5)
|
|
46
|
-
actionview (8.0.2)
|
|
47
|
-
activesupport (= 8.0.2)
|
|
19
|
+
actionview (8.1.1)
|
|
20
|
+
activesupport (= 8.1.1)
|
|
48
21
|
builder (~> 3.1)
|
|
49
22
|
erubi (~> 1.11)
|
|
50
23
|
rails-dom-testing (~> 2.2)
|
|
51
24
|
rails-html-sanitizer (~> 1.6)
|
|
52
|
-
|
|
53
|
-
activesupport (= 8.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
activesupport (= 8.
|
|
57
|
-
activerecord (8.0.2)
|
|
58
|
-
activemodel (= 8.0.2)
|
|
59
|
-
activesupport (= 8.0.2)
|
|
25
|
+
activemodel (8.1.1)
|
|
26
|
+
activesupport (= 8.1.1)
|
|
27
|
+
activerecord (8.1.1)
|
|
28
|
+
activemodel (= 8.1.1)
|
|
29
|
+
activesupport (= 8.1.1)
|
|
60
30
|
timeout (>= 0.4.0)
|
|
61
|
-
|
|
62
|
-
actionpack (= 8.0.2)
|
|
63
|
-
activejob (= 8.0.2)
|
|
64
|
-
activerecord (= 8.0.2)
|
|
65
|
-
activesupport (= 8.0.2)
|
|
66
|
-
marcel (~> 1.0)
|
|
67
|
-
activesupport (8.0.2)
|
|
31
|
+
activesupport (8.1.1)
|
|
68
32
|
base64
|
|
69
|
-
benchmark (>= 0.3)
|
|
70
33
|
bigdecimal
|
|
71
34
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
72
35
|
connection_pool (>= 2.2.5)
|
|
73
36
|
drb
|
|
74
37
|
i18n (>= 1.6, < 2)
|
|
38
|
+
json
|
|
75
39
|
logger (>= 1.4.2)
|
|
76
40
|
minitest (>= 5.1)
|
|
77
41
|
securerandom (>= 0.3)
|
|
@@ -83,23 +47,22 @@ GEM
|
|
|
83
47
|
thor (>= 0.14.0)
|
|
84
48
|
ast (2.4.3)
|
|
85
49
|
base64 (0.3.0)
|
|
86
|
-
|
|
87
|
-
bigdecimal (3.2.2)
|
|
50
|
+
bigdecimal (3.3.1)
|
|
88
51
|
builder (3.3.0)
|
|
89
52
|
combustion (1.5.0)
|
|
90
53
|
activesupport (>= 3.0.0)
|
|
91
54
|
railties (>= 3.0.0)
|
|
92
55
|
thor (>= 0.14.6)
|
|
93
56
|
concurrent-ruby (1.3.5)
|
|
94
|
-
connection_pool (2.5.
|
|
57
|
+
connection_pool (2.5.4)
|
|
95
58
|
crass (1.0.6)
|
|
96
|
-
cuco (0.1.
|
|
59
|
+
cuco (0.1.4)
|
|
97
60
|
listen
|
|
98
61
|
micro-optparse
|
|
99
|
-
date (3.
|
|
62
|
+
date (3.5.0)
|
|
100
63
|
docile (1.4.1)
|
|
101
64
|
drb (2.2.3)
|
|
102
|
-
erb (5.
|
|
65
|
+
erb (5.1.3)
|
|
103
66
|
erubi (1.13.1)
|
|
104
67
|
ffi (1.17.2-aarch64-linux-gnu)
|
|
105
68
|
ffi (1.17.2-aarch64-linux-musl)
|
|
@@ -109,16 +72,14 @@ GEM
|
|
|
109
72
|
ffi (1.17.2-x86_64-darwin)
|
|
110
73
|
ffi (1.17.2-x86_64-linux-gnu)
|
|
111
74
|
ffi (1.17.2-x86_64-linux-musl)
|
|
112
|
-
globalid (1.2.1)
|
|
113
|
-
activesupport (>= 6.1)
|
|
114
75
|
i18n (1.14.7)
|
|
115
76
|
concurrent-ruby (~> 1.0)
|
|
116
|
-
io-console (0.8.
|
|
77
|
+
io-console (0.8.1)
|
|
117
78
|
irb (1.15.2)
|
|
118
79
|
pp (>= 0.6.0)
|
|
119
80
|
rdoc (>= 4.0.0)
|
|
120
81
|
reline (>= 0.4.2)
|
|
121
|
-
json (2.
|
|
82
|
+
json (2.15.2)
|
|
122
83
|
language_server-protocol (3.17.0.5)
|
|
123
84
|
lint_roller (1.1.0)
|
|
124
85
|
listen (3.9.0)
|
|
@@ -128,57 +89,40 @@ GEM
|
|
|
128
89
|
loofah (2.24.1)
|
|
129
90
|
crass (~> 1.0.2)
|
|
130
91
|
nokogiri (>= 1.12.0)
|
|
131
|
-
mail (2.8.1)
|
|
132
|
-
mini_mime (>= 0.1.1)
|
|
133
|
-
net-imap
|
|
134
|
-
net-pop
|
|
135
|
-
net-smtp
|
|
136
|
-
marcel (1.0.4)
|
|
137
92
|
micro-optparse (1.2.1)
|
|
138
|
-
|
|
139
|
-
minitest (5.25.5)
|
|
93
|
+
minitest (5.26.0)
|
|
140
94
|
minitest-spec-rails (7.4.1)
|
|
141
95
|
minitest (>= 5.0)
|
|
142
96
|
railties (>= 4.1)
|
|
143
|
-
|
|
144
|
-
date
|
|
145
|
-
net-protocol
|
|
146
|
-
net-pop (0.1.2)
|
|
147
|
-
net-protocol
|
|
148
|
-
net-protocol (0.2.2)
|
|
149
|
-
timeout
|
|
150
|
-
net-smtp (0.5.1)
|
|
151
|
-
net-protocol
|
|
152
|
-
nio4r (2.7.4)
|
|
153
|
-
nokogiri (1.18.8-aarch64-linux-gnu)
|
|
97
|
+
nokogiri (1.18.10-aarch64-linux-gnu)
|
|
154
98
|
racc (~> 1.4)
|
|
155
|
-
nokogiri (1.18.
|
|
99
|
+
nokogiri (1.18.10-aarch64-linux-musl)
|
|
156
100
|
racc (~> 1.4)
|
|
157
|
-
nokogiri (1.18.
|
|
101
|
+
nokogiri (1.18.10-arm-linux-gnu)
|
|
158
102
|
racc (~> 1.4)
|
|
159
|
-
nokogiri (1.18.
|
|
103
|
+
nokogiri (1.18.10-arm-linux-musl)
|
|
160
104
|
racc (~> 1.4)
|
|
161
|
-
nokogiri (1.18.
|
|
105
|
+
nokogiri (1.18.10-arm64-darwin)
|
|
162
106
|
racc (~> 1.4)
|
|
163
|
-
nokogiri (1.18.
|
|
107
|
+
nokogiri (1.18.10-x86_64-darwin)
|
|
164
108
|
racc (~> 1.4)
|
|
165
|
-
nokogiri (1.18.
|
|
109
|
+
nokogiri (1.18.10-x86_64-linux-gnu)
|
|
166
110
|
racc (~> 1.4)
|
|
167
|
-
nokogiri (1.18.
|
|
111
|
+
nokogiri (1.18.10-x86_64-linux-musl)
|
|
168
112
|
racc (~> 1.4)
|
|
169
113
|
parallel (1.27.0)
|
|
170
|
-
parser (3.3.
|
|
114
|
+
parser (3.3.10.0)
|
|
171
115
|
ast (~> 2.4.1)
|
|
172
116
|
racc
|
|
173
|
-
pp (0.6.
|
|
117
|
+
pp (0.6.3)
|
|
174
118
|
prettyprint
|
|
175
119
|
prettyprint (0.2.0)
|
|
176
|
-
prism (1.
|
|
120
|
+
prism (1.6.0)
|
|
177
121
|
psych (5.2.6)
|
|
178
122
|
date
|
|
179
123
|
stringio
|
|
180
124
|
racc (1.8.1)
|
|
181
|
-
rack (3.
|
|
125
|
+
rack (3.2.3)
|
|
182
126
|
rack-session (2.1.1)
|
|
183
127
|
base64 (>= 0.1.0)
|
|
184
128
|
rack (>= 3.0.0)
|
|
@@ -186,20 +130,6 @@ GEM
|
|
|
186
130
|
rack (>= 1.3)
|
|
187
131
|
rackup (2.2.1)
|
|
188
132
|
rack (>= 3)
|
|
189
|
-
rails (8.0.2)
|
|
190
|
-
actioncable (= 8.0.2)
|
|
191
|
-
actionmailbox (= 8.0.2)
|
|
192
|
-
actionmailer (= 8.0.2)
|
|
193
|
-
actionpack (= 8.0.2)
|
|
194
|
-
actiontext (= 8.0.2)
|
|
195
|
-
actionview (= 8.0.2)
|
|
196
|
-
activejob (= 8.0.2)
|
|
197
|
-
activemodel (= 8.0.2)
|
|
198
|
-
activerecord (= 8.0.2)
|
|
199
|
-
activestorage (= 8.0.2)
|
|
200
|
-
activesupport (= 8.0.2)
|
|
201
|
-
bundler (>= 1.15.0)
|
|
202
|
-
railties (= 8.0.2)
|
|
203
133
|
rails-dom-testing (2.3.0)
|
|
204
134
|
activesupport (>= 5.0.0)
|
|
205
135
|
minitest
|
|
@@ -207,27 +137,29 @@ GEM
|
|
|
207
137
|
rails-html-sanitizer (1.6.2)
|
|
208
138
|
loofah (~> 2.21)
|
|
209
139
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
210
|
-
railties (8.
|
|
211
|
-
actionpack (= 8.
|
|
212
|
-
activesupport (= 8.
|
|
140
|
+
railties (8.1.1)
|
|
141
|
+
actionpack (= 8.1.1)
|
|
142
|
+
activesupport (= 8.1.1)
|
|
213
143
|
irb (~> 1.13)
|
|
214
144
|
rackup (>= 1.0.0)
|
|
215
145
|
rake (>= 12.2)
|
|
216
146
|
thor (~> 1.0, >= 1.2.2)
|
|
147
|
+
tsort (>= 0.2)
|
|
217
148
|
zeitwerk (~> 2.6)
|
|
218
149
|
rainbow (3.1.1)
|
|
219
|
-
rake (13.3.
|
|
150
|
+
rake (13.3.1)
|
|
220
151
|
rb-fsevent (0.11.2)
|
|
221
152
|
rb-inotify (0.11.1)
|
|
222
153
|
ffi (~> 1.0)
|
|
223
|
-
rdoc (6.
|
|
154
|
+
rdoc (6.15.0)
|
|
224
155
|
erb
|
|
225
156
|
psych (>= 4.0.0)
|
|
226
|
-
|
|
227
|
-
|
|
157
|
+
tsort
|
|
158
|
+
regexp_parser (2.11.3)
|
|
159
|
+
reline (0.6.2)
|
|
228
160
|
io-console (~> 0.5)
|
|
229
161
|
ricecream (0.2.1)
|
|
230
|
-
rubocop (1.
|
|
162
|
+
rubocop (1.80.2)
|
|
231
163
|
json (~> 2.3)
|
|
232
164
|
language_server-protocol (~> 3.17.0.2)
|
|
233
165
|
lint_roller (~> 1.1.0)
|
|
@@ -235,10 +167,10 @@ GEM
|
|
|
235
167
|
parser (>= 3.3.0.2)
|
|
236
168
|
rainbow (>= 2.2.2, < 4.0)
|
|
237
169
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
238
|
-
rubocop-ast (>= 1.
|
|
170
|
+
rubocop-ast (>= 1.46.0, < 2.0)
|
|
239
171
|
ruby-progressbar (~> 1.7)
|
|
240
172
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
241
|
-
rubocop-ast (1.
|
|
173
|
+
rubocop-ast (1.47.1)
|
|
242
174
|
parser (>= 3.3.7.2)
|
|
243
175
|
prism (~> 1.4)
|
|
244
176
|
rubocop-performance (1.25.0)
|
|
@@ -251,20 +183,20 @@ GEM
|
|
|
251
183
|
docile (~> 1.1)
|
|
252
184
|
simplecov-html (~> 0.11)
|
|
253
185
|
simplecov_json_formatter (~> 0.1)
|
|
254
|
-
simplecov-html (0.13.
|
|
186
|
+
simplecov-html (0.13.2)
|
|
255
187
|
simplecov_json_formatter (0.1.4)
|
|
256
|
-
sqlite3 (2.7.
|
|
257
|
-
sqlite3 (2.7.
|
|
258
|
-
sqlite3 (2.7.
|
|
259
|
-
sqlite3 (2.7.
|
|
260
|
-
sqlite3 (2.7.
|
|
261
|
-
sqlite3 (2.7.
|
|
262
|
-
sqlite3 (2.7.
|
|
263
|
-
sqlite3 (2.7.
|
|
264
|
-
standard (1.
|
|
188
|
+
sqlite3 (2.7.4-aarch64-linux-gnu)
|
|
189
|
+
sqlite3 (2.7.4-aarch64-linux-musl)
|
|
190
|
+
sqlite3 (2.7.4-arm-linux-gnu)
|
|
191
|
+
sqlite3 (2.7.4-arm-linux-musl)
|
|
192
|
+
sqlite3 (2.7.4-arm64-darwin)
|
|
193
|
+
sqlite3 (2.7.4-x86_64-darwin)
|
|
194
|
+
sqlite3 (2.7.4-x86_64-linux-gnu)
|
|
195
|
+
sqlite3 (2.7.4-x86_64-linux-musl)
|
|
196
|
+
standard (1.51.1)
|
|
265
197
|
language_server-protocol (~> 3.17.0.2)
|
|
266
198
|
lint_roller (~> 1.0)
|
|
267
|
-
rubocop (~> 1.
|
|
199
|
+
rubocop (~> 1.80.2)
|
|
268
200
|
standard-custom (~> 1.0.0)
|
|
269
201
|
standard-performance (~> 1.8)
|
|
270
202
|
standard-custom (1.0.2)
|
|
@@ -274,19 +206,16 @@ GEM
|
|
|
274
206
|
lint_roller (~> 1.1)
|
|
275
207
|
rubocop-performance (~> 1.25.0)
|
|
276
208
|
stringio (3.1.7)
|
|
277
|
-
thor (1.
|
|
278
|
-
timeout (0.4.
|
|
209
|
+
thor (1.4.0)
|
|
210
|
+
timeout (0.4.4)
|
|
211
|
+
tsort (0.2.0)
|
|
279
212
|
tzinfo (2.0.6)
|
|
280
213
|
concurrent-ruby (~> 1.0)
|
|
281
|
-
unicode-display_width (3.
|
|
282
|
-
unicode-emoji (~> 4.
|
|
283
|
-
unicode-emoji (4.0
|
|
284
|
-
uri (1.0.
|
|
214
|
+
unicode-display_width (3.2.0)
|
|
215
|
+
unicode-emoji (~> 4.1)
|
|
216
|
+
unicode-emoji (4.1.0)
|
|
217
|
+
uri (1.0.4)
|
|
285
218
|
useragent (0.16.11)
|
|
286
|
-
websocket-driver (0.8.0)
|
|
287
|
-
base64
|
|
288
|
-
websocket-extensions (>= 0.1.0)
|
|
289
|
-
websocket-extensions (0.1.5)
|
|
290
219
|
zeitwerk (2.7.3)
|
|
291
220
|
|
|
292
221
|
PLATFORMS
|
|
@@ -300,12 +229,12 @@ PLATFORMS
|
|
|
300
229
|
x86_64-linux-musl
|
|
301
230
|
|
|
302
231
|
DEPENDENCIES
|
|
232
|
+
activerecord
|
|
303
233
|
appraisal
|
|
304
234
|
combustion
|
|
305
235
|
cuco
|
|
306
236
|
minitest
|
|
307
237
|
minitest-spec-rails
|
|
308
|
-
rails
|
|
309
238
|
relation!
|
|
310
239
|
ricecream
|
|
311
240
|
simplecov
|
|
@@ -313,4 +242,4 @@ DEPENDENCIES
|
|
|
313
242
|
standard
|
|
314
243
|
|
|
315
244
|
BUNDLED WITH
|
|
316
|
-
2.
|
|
245
|
+
2.7.2
|
data/app/models/relation.rb
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
class Relation < ActiveRecord::Base
|
|
4
4
|
def self.add_raw(name, from_id, to_id)
|
|
5
5
|
hsh = {name: name, from_id: from_id, to_id: to_id}
|
|
6
|
-
Relation.create!(hsh) if Relation.where(hsh).first.nil?
|
|
6
|
+
# Relation.create!(hsh) if Relation.where(hsh).first.nil?
|
|
7
|
+
Relation.create!(hsh) if Relation.where(hsh).count == 0
|
|
7
8
|
end
|
|
8
9
|
|
|
9
10
|
def self.delete_raw(name, from_id, to_id)
|
data/app/models/relation_ext.rb
CHANGED
|
@@ -4,7 +4,8 @@ class Relation < ActiveRecord::Base
|
|
|
4
4
|
# extended Relation
|
|
5
5
|
def self.add(row_from, row_to)
|
|
6
6
|
hsh = normalize(row_from, row_to)
|
|
7
|
-
Relation.create!(hsh) if Relation.where(hsh).first.nil?
|
|
7
|
+
# Relation.create!(hsh) if Relation.where(hsh).first.nil?
|
|
8
|
+
Relation.create!(hsh) if Relation.where(hsh).count == 0
|
|
8
9
|
end
|
|
9
10
|
|
|
10
11
|
def self.delete(row_from, row_to)
|
data/gemfiles/rails_7.2.gemfile
CHANGED
data/gemfiles/rails_8.0.gemfile
CHANGED
data/lib/relation/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dittmar Krall
|
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
109
|
version: '0'
|
|
110
110
|
requirements: []
|
|
111
|
-
rubygems_version: 3.6.
|
|
111
|
+
rubygems_version: 3.6.9
|
|
112
112
|
specification_version: 4
|
|
113
113
|
summary: Rails gem adding relationships between ActiveRecord models.
|
|
114
114
|
test_files: []
|
data/.ruby-gemset
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
rails-8.0
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ruby-3.4.4
|