relation 0.4.2 → 0.4.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dad2321dbb5e4ef524d79ca664f20f7a1d23831de4272adaf0e0327629cada11
4
- data.tar.gz: 4e2662c4c9aaaa281d95b06e0ef8e231350c13c81cef3519b545cb8472d9bcff
3
+ metadata.gz: dafdb00f20ba4c9fbd3e810ec8fd5abbea1c8b20ce27a5f9b0d15de20a82a4a0
4
+ data.tar.gz: 961c6ca2fd28da3fc86df5232c44fbf794f715abf5fa5a10d4707c7e3ddd3263
5
5
  SHA512:
6
- metadata.gz: a1bec683b5a73845826e1c06c0449c29ad308ab8246565df5e4c22e2f8a58635cd0fcb6940d8fb4d9e17d7b271df96326cf47be1701a2a0d94ebd69c6bf7b8b9
7
- data.tar.gz: 17177607e1e03c3159de5d73eeff1ee5577ccbd93166998b667f028272a3ba0d4834e6e867c054e78fb3a6d994c172724a3acb6c3ec4ae51a8f8d4c29b0e6d11
6
+ metadata.gz: 82f66c8fa2f5fe8ce4ee7036db43be7d47838cd9861365f84cd8851a062941c6611132f4ec50c6af1286b193d3273ee5633f3d09a431e2ac62306f02ac045105
7
+ data.tar.gz: 8817aab0b713c3e83e986713a9f43f5701138ffcf478fb2dc24f9083093d3f2039ce9de423b2b9b3ac5bc66dfd75e04dd453e11cafb9e8c9cc664b34cf9a258e
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.2.0
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.2)
4
+ relation (0.4.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actioncable (7.0.4.1)
10
- actionpack (= 7.0.4.1)
11
- activesupport (= 7.0.4.1)
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.1)
15
- actionpack (= 7.0.4.1)
16
- activejob (= 7.0.4.1)
17
- activerecord (= 7.0.4.1)
18
- activestorage (= 7.0.4.1)
19
- activesupport (= 7.0.4.1)
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.1)
25
- actionpack (= 7.0.4.1)
26
- actionview (= 7.0.4.1)
27
- activejob (= 7.0.4.1)
28
- activesupport (= 7.0.4.1)
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.1)
35
- actionview (= 7.0.4.1)
36
- activesupport (= 7.0.4.1)
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.1)
42
- actionpack (= 7.0.4.1)
43
- activerecord (= 7.0.4.1)
44
- activestorage (= 7.0.4.1)
45
- activesupport (= 7.0.4.1)
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.1)
49
- activesupport (= 7.0.4.1)
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.1)
55
- activesupport (= 7.0.4.1)
54
+ activejob (7.0.4.3)
55
+ activesupport (= 7.0.4.3)
56
56
  globalid (>= 0.3.6)
57
- activemodel (7.0.4.1)
58
- activesupport (= 7.0.4.1)
59
- activerecord (7.0.4.1)
60
- activemodel (= 7.0.4.1)
61
- activesupport (= 7.0.4.1)
62
- activestorage (7.0.4.1)
63
- actionpack (= 7.0.4.1)
64
- activejob (= 7.0.4.1)
65
- activerecord (= 7.0.4.1)
66
- activesupport (= 7.0.4.1)
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.1)
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.1.10)
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.1)
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.2)
91
- loofah (2.19.1)
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.0.1)
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.17.0)
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.8)
116
- nokogiri (1.14.0-x86_64-linux)
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.0.0)
120
+ parser (3.2.2.0)
121
121
  ast (~> 2.4.1)
122
122
  racc (1.6.2)
123
- rack (2.2.6.2)
124
- rack-test (2.0.2)
123
+ rack (2.2.6.4)
124
+ rack-test (2.1.0)
125
125
  rack (>= 1.3)
126
- rails (7.0.4.1)
127
- actioncable (= 7.0.4.1)
128
- actionmailbox (= 7.0.4.1)
129
- actionmailer (= 7.0.4.1)
130
- actionpack (= 7.0.4.1)
131
- actiontext (= 7.0.4.1)
132
- actionview (= 7.0.4.1)
133
- activejob (= 7.0.4.1)
134
- activemodel (= 7.0.4.1)
135
- activerecord (= 7.0.4.1)
136
- activestorage (= 7.0.4.1)
137
- activesupport (= 7.0.4.1)
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.1)
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.4.4)
143
+ rails-html-sanitizer (1.5.0)
144
144
  loofah (~> 2.19, >= 2.19.1)
145
- railties (7.0.4.1)
146
- actionpack (= 7.0.4.1)
147
- activesupport (= 7.0.4.1)
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.6.1)
154
+ regexp_parser (2.7.0)
155
155
  rexml (3.2.5)
156
156
  ricecream (0.2.1)
157
- rubocop (1.42.0)
157
+ rubocop (1.48.1)
158
158
  json (~> 2.3)
159
159
  parallel (~> 1.10)
160
- parser (>= 3.1.2.1)
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.24.1, < 2.0)
164
+ rubocop-ast (>= 1.26.0, < 2.0)
165
165
  ruby-progressbar (~> 1.7)
166
- unicode-display_width (>= 1.4.0, < 3.0)
167
- rubocop-ast (1.24.1)
168
- parser (>= 3.1.1.0)
169
- rubocop-performance (1.15.2)
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.11.0)
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.0-x86_64-linux)
180
- standard (1.22.0)
179
+ sqlite3 (1.6.2-x86_64-linux)
180
+ standard (1.26.0)
181
181
  language_server-protocol (~> 3.17.0.2)
182
- rubocop (= 1.42.0)
183
- rubocop-performance (= 1.15.2)
182
+ rubocop (~> 1.48.1)
183
+ rubocop-performance (~> 1.16.0)
184
184
  thor (1.2.1)
185
- timeout (0.3.1)
186
- tzinfo (2.0.5)
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.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.1
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, from:id, to_id).
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
 
@@ -1,7 +1,8 @@
1
1
  # rubocop: disable all
2
2
 
3
3
  module ModRelation
4
- VERSION = "0.4.2" # 2023-01-19
4
+ VERSION = "0.4.3" # 2023-04-16
5
+ # VERSION = "0.4.2" # 2023-01-19
5
6
  # VERSION = "0.4.1" # 2023-01-18
6
7
  # VERSION = "0.4.0" # 2023-01-12
7
8
  # VERSION = "0.3.8" # 2021-06-22
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 = <<-'END'
6
+ s.summary = <<-END
7
7
  Rails gem adding relationships between ActiveRecord models.
8
8
  END
9
- s.description = <<-'END'
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  ActiveRecord::Schema.define(version: 202208) do
4
4
  create_table :relations, force: true, id: false do |t|
5
- t.string :name
5
+ t.string :name
6
6
  t.references :from, null: false
7
7
  t.references :to, null: false
8
8
  t.timestamps
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.2
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-01-19 00:00:00.000000000 Z
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.1
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.