anchormodel 0.2.5 → 0.3.0

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: 8dc8f056d1710a491d181aef71c5b576302d21baaf2f0075557f71e467e5f63a
4
- data.tar.gz: 7b9d36723f5485c18de24450021e7a0822c9a479af99a556b58643fcd4375316
3
+ metadata.gz: 9e818b4bffff3110554cf4475c36a66fdd91509ed9cd6ce7c19813802c083ca0
4
+ data.tar.gz: b45cf0020a8829b54e96074813c1913ae6d764490b690a8c2f095198916822c0
5
5
  SHA512:
6
- metadata.gz: 0d7f310e1e5ff0a4d310408a792c5794d8f6068a8a8b01f2a650270a3e46a1a3ff7c31a4ed403eb3588f4d378b959906a881f6c03105d5a1165059bfed3a0530
7
- data.tar.gz: 60f5405f9b8f24e3477e4a37396c45409321da47826f252185f9c255bbbaa18e462243dbfc650ac113a61994a683d701689f9fb81d2bed2912d88242ab6d3136
6
+ metadata.gz: de73d0788ef0d10d1295c4510361817eabac96a08f5ad5595a07e8adb103f98c5e8fd6fc691656f01cce57780c915b1b0bc4f610c6505838546a3b4bf2aa38dd
7
+ data.tar.gz: 558ffe0d4e3e5b5ae0d0a3c06011e98df5b7d39ccc90ac71095d28cc16f65635e88e6cf2ade66fd8313c4ae0a7c65169579586361fcc41f581ffab7c84548bac
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 0.3.0
2
+
3
+ - Fix typos in doc (thank you Josua!)
4
+ - Explicitely forbid defining the same anchormodel key twice
5
+ - Update Gemfile.lock
6
+
7
+ # 0.2.6
8
+
9
+ - Enhance support for custom collections in inputs
10
+
1
11
  # 0.2.5
2
12
 
3
13
  - Fix an issue in combination with the active_type gem, causing virtual models to always read nil on anchormodel attributes
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- anchormodel (0.2.3.edge)
5
- rails (~> 7.0)
4
+ anchormodel (0.2.7.edge)
5
+ rails (>= 7.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -74,45 +74,49 @@ GEM
74
74
  tzinfo (~> 2.0)
75
75
  ansi (1.5.0)
76
76
  ast (2.4.2)
77
+ base64 (0.3.0)
77
78
  builder (3.2.4)
78
79
  coderay (1.1.3)
79
80
  concurrent-ruby (1.1.10)
80
81
  crass (1.0.6)
81
- date (3.3.4)
82
- erubi (1.13.0)
83
- globalid (1.2.1)
82
+ date (3.5.1)
83
+ erubi (1.13.1)
84
+ globalid (1.3.0)
84
85
  activesupport (>= 6.1)
85
86
  i18n (1.12.0)
86
87
  concurrent-ruby (~> 1.0)
87
88
  json (2.6.3)
88
- loofah (2.22.0)
89
+ logger (1.7.0)
90
+ loofah (2.25.0)
89
91
  crass (~> 1.0.2)
90
92
  nokogiri (>= 1.12.0)
91
- mail (2.8.1)
93
+ mail (2.9.0)
94
+ logger
92
95
  mini_mime (>= 0.1.1)
93
96
  net-imap
94
97
  net-pop
95
98
  net-smtp
96
- marcel (1.0.4)
99
+ marcel (1.1.0)
97
100
  method_source (1.0.0)
98
101
  mini_mime (1.1.5)
102
+ mini_portile2 (2.8.9)
99
103
  minitest (5.17.0)
100
104
  minitest-reporters (1.5.0)
101
105
  ansi
102
106
  builder
103
107
  minitest (>= 5.0)
104
108
  ruby-progressbar
105
- net-imap (0.4.14)
109
+ net-imap (0.6.2)
106
110
  date
107
111
  net-protocol
108
112
  net-pop (0.1.2)
109
113
  net-protocol
110
114
  net-protocol (0.2.2)
111
115
  timeout
112
- net-smtp (0.5.0)
116
+ net-smtp (0.5.1)
113
117
  net-protocol
114
- nio4r (2.7.3)
115
- nokogiri (1.16.7-x86_64-linux)
118
+ nio4r (2.7.5)
119
+ nokogiri (1.19.0-x86_64-linux-gnu)
116
120
  racc (~> 1.4)
117
121
  parallel (1.22.1)
118
122
  parser (3.2.0.0)
@@ -122,7 +126,7 @@ GEM
122
126
  method_source (~> 1.0)
123
127
  racc (1.8.1)
124
128
  rack (2.2.5)
125
- rack-test (2.1.0)
129
+ rack-test (2.2.0)
126
130
  rack (>= 1.3)
127
131
  rails (7.0.4)
128
132
  actioncable (= 7.0.4)
@@ -138,13 +142,13 @@ GEM
138
142
  activesupport (= 7.0.4)
139
143
  bundler (>= 1.15.0)
140
144
  railties (= 7.0.4)
141
- rails-dom-testing (2.2.0)
145
+ rails-dom-testing (2.3.0)
142
146
  activesupport (>= 5.0.0)
143
147
  minitest
144
148
  nokogiri (>= 1.6)
145
- rails-html-sanitizer (1.6.0)
149
+ rails-html-sanitizer (1.6.2)
146
150
  loofah (~> 2.21)
147
- nokogiri (~> 1.14)
151
+ 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)
148
152
  railties (7.0.4)
149
153
  actionpack (= 7.0.4)
150
154
  activesupport (= 7.0.4)
@@ -173,21 +177,23 @@ GEM
173
177
  rack (>= 1.1)
174
178
  rubocop (>= 1.33.0, < 2.0)
175
179
  ruby-progressbar (1.11.0)
176
- sqlite3 (1.6.0-x86_64-linux)
177
- thor (1.3.1)
178
- timeout (0.4.1)
180
+ sqlite3 (1.6.0)
181
+ mini_portile2 (~> 2.8.0)
182
+ thor (1.5.0)
183
+ timeout (0.6.0)
179
184
  tzinfo (2.0.5)
180
185
  concurrent-ruby (~> 1.0)
181
186
  unicode-display_width (2.4.2)
182
187
  webrick (1.7.0)
183
- websocket-driver (0.7.6)
188
+ websocket-driver (0.8.0)
189
+ base64
184
190
  websocket-extensions (>= 0.1.0)
185
191
  websocket-extensions (0.1.5)
186
192
  yard (0.9.28)
187
193
  webrick (~> 1.7.0)
188
194
  yard-activesupport-concern (0.0.1)
189
195
  yard (>= 0.8)
190
- zeitwerk (2.6.17)
196
+ zeitwerk (2.7.4)
191
197
 
192
198
  PLATFORMS
193
199
  x86_64-linux
data/README.md CHANGED
@@ -21,7 +21,7 @@ Typically, a Rails application consists of three kinds of state:
21
21
  However, as users are assigned to roles in the database, roles also need to be
22
22
  persisted in the database. This is where Anchormodel comes into play.
23
23
 
24
- ## Alternatives coviering the same use case
24
+ ## Alternatives covering the same use case
25
25
 
26
26
  ### Enum
27
27
 
@@ -64,7 +64,7 @@ This will create `app/anchormodels/role.rb`.
64
64
 
65
65
  ```ruby
66
66
  class Role < Anchormodel
67
- # Make <, > etc. based on <=> operator whic hwe will define below
67
+ # Make <, > etc. based on <=> operator which we will define below
68
68
  include Comparable
69
69
 
70
70
  # Expose the attribute privilege_level
@@ -301,4 +301,4 @@ However, radio buttons are unsuitable for collections, so use check boxes instea
301
301
  <%= f.input :role, as: :anchormodel_check_boxes %>
302
302
  <%# ... %>
303
303
  <% end %>
304
- ```
304
+ ```
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.3.0
data/anchormodel.gemspec CHANGED
@@ -2,21 +2,21 @@
2
2
  # This file is auto-generated via: 'rake gemspec'.
3
3
 
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: anchormodel 0.2.5 ruby lib
5
+ # stub: anchormodel 0.3.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "anchormodel".freeze
9
- s.version = "0.2.5".freeze
9
+ s.version = "0.3.0".freeze
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Sandro Kalbermatter".freeze]
14
- s.date = "2025-02-14"
14
+ s.date = "1980-01-02"
15
15
  s.files = [".gitignore".freeze, ".ruby-version".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "Gemfile".freeze, "Gemfile.lock".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "anchormodel.gemspec".freeze, "bin/rails".freeze, "doc/Anchormodel.html".freeze, "doc/Anchormodel/ActiveModelTypeValue.html".freeze, "doc/Anchormodel/ActiveModelTypeValueMulti.html".freeze, "doc/Anchormodel/ActiveModelTypeValueSingle.html".freeze, "doc/Anchormodel/Attribute.html".freeze, "doc/Anchormodel/ModelMixin.html".freeze, "doc/Anchormodel/SimpleFormInputs.html".freeze, "doc/Anchormodel/SimpleFormInputs/Helpers.html".freeze, "doc/Anchormodel/SimpleFormInputs/Helpers/AnchormodelInputsCommon.html".freeze, "doc/Anchormodel/Util.html".freeze, "doc/Anchormodel/Version.html".freeze, "doc/AnchormodelCheckBoxesInput.html".freeze, "doc/AnchormodelGenerator.html".freeze, "doc/AnchormodelInput.html".freeze, "doc/AnchormodelRadioButtonsInput.html".freeze, "doc/_index.html".freeze, "doc/class_list.html".freeze, "doc/css/common.css".freeze, "doc/css/full_list.css".freeze, "doc/css/style.css".freeze, "doc/file.README.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/index.html".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/method_list.html".freeze, "doc/top-level-namespace.html".freeze, "lib/anchormodel.rb".freeze, "lib/anchormodel/active_model_type_value_multi.rb".freeze, "lib/anchormodel/active_model_type_value_single.rb".freeze, "lib/anchormodel/attribute.rb".freeze, "lib/anchormodel/model_mixin.rb".freeze, "lib/anchormodel/simple_form_inputs/anchormodel_check_boxes_input.rb".freeze, "lib/anchormodel/simple_form_inputs/anchormodel_input.rb".freeze, "lib/anchormodel/simple_form_inputs/anchormodel_radio_buttons_input.rb".freeze, "lib/anchormodel/simple_form_inputs/helpers/anchormodel_inputs_common.rb".freeze, "lib/anchormodel/util.rb".freeze, "lib/anchormodel/version.rb".freeze, "lib/generators/anchormodel/USAGE".freeze, "lib/generators/anchormodel/anchormodel_generator.rb".freeze, "lib/generators/anchormodel/templates/anchormodel.rb.erb".freeze, "logo.svg".freeze, "test/active_record_model/user_test.rb".freeze, "test/dummy/.gitignore".freeze, "test/dummy/Rakefile".freeze, "test/dummy/app/anchormodels/animal.rb".freeze, "test/dummy/app/anchormodels/locale.rb".freeze, "test/dummy/app/anchormodels/role.rb".freeze, "test/dummy/app/helpers/application_helper.rb".freeze, "test/dummy/app/models/application_record.rb".freeze, "test/dummy/app/models/concerns/.keep".freeze, "test/dummy/app/models/user.rb".freeze, "test/dummy/bin/rails".freeze, "test/dummy/bin/rake".freeze, "test/dummy/bin/setup".freeze, "test/dummy/config.ru".freeze, "test/dummy/config/application.rb".freeze, "test/dummy/config/boot.rb".freeze, "test/dummy/config/credentials.yml.enc".freeze, "test/dummy/config/database.yml".freeze, "test/dummy/config/environment.rb".freeze, "test/dummy/config/environments/test.rb".freeze, "test/dummy/config/initializers/content_security_policy.rb".freeze, "test/dummy/config/initializers/filter_parameter_logging.rb".freeze, "test/dummy/config/initializers/inflections.rb".freeze, "test/dummy/config/initializers/permissions_policy.rb".freeze, "test/dummy/config/locales/en.yml".freeze, "test/dummy/config/puma.rb".freeze, "test/dummy/config/routes.rb".freeze, "test/dummy/db/migrate/20230107173151_create_users.rb".freeze, "test/dummy/db/migrate/20240425182000_add_animals_to_users.rb".freeze, "test/dummy/db/schema.rb".freeze, "test/dummy/db/seeds.rb".freeze, "test/dummy/lib/tasks/.keep".freeze, "test/dummy/log/.keep".freeze, "test/dummy/tmp/.keep".freeze, "test/dummy/tmp/pids/.keep".freeze, "test/test_helper.rb".freeze]
16
16
  s.homepage = "https://github.com/kalsan/anchormodel".freeze
17
17
  s.licenses = ["LGPL-3.0-or-later".freeze]
18
18
  s.required_ruby_version = Gem::Requirement.new(">= 3.0.0".freeze)
19
- s.rubygems_version = "3.6.3".freeze
19
+ s.rubygems_version = "4.0.4".freeze
20
20
  s.summary = "Bringing object-oriented programming to Rails enums".freeze
21
21
 
22
22
  s.specification_version = 4
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Anchormodel::ActiveModelTypeValueMulti
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -400,9 +400,9 @@
400
400
  </div>
401
401
 
402
402
  <div id="footer">
403
- Generated on Fri Feb 14 13:25:30 2025 by
403
+ Generated on Thu Jan 22 13:11:54 2026 by
404
404
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
405
- 0.9.37 (ruby-3.3.5).
405
+ 0.9.28 (ruby-3.3.5).
406
406
  </div>
407
407
 
408
408
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Anchormodel::ActiveModelTypeValueSingle
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -687,9 +687,9 @@
687
687
  </div>
688
688
 
689
689
  <div id="footer">
690
- Generated on Fri Feb 14 13:25:30 2025 by
690
+ Generated on Thu Jan 22 13:11:54 2026 by
691
691
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
692
- 0.9.37 (ruby-3.3.5).
692
+ 0.9.28 (ruby-3.3.5).
693
693
  </div>
694
694
 
695
695
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Anchormodel::Attribute
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -596,9 +596,9 @@
596
596
  </div>
597
597
 
598
598
  <div id="footer">
599
- Generated on Fri Feb 14 13:25:30 2025 by
599
+ Generated on Thu Jan 22 13:11:54 2026 by
600
600
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
601
- 0.9.37 (ruby-3.3.5).
601
+ 0.9.28 (ruby-3.3.5).
602
602
  </div>
603
603
 
604
604
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Anchormodel::ModelMixin
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -273,9 +273,9 @@
273
273
  </div>
274
274
 
275
275
  <div id="footer">
276
- Generated on Fri Feb 14 13:25:30 2025 by
276
+ Generated on Thu Jan 22 13:11:54 2026 by
277
277
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
278
- 0.9.37 (ruby-3.3.5).
278
+ 0.9.28 (ruby-3.3.5).
279
279
  </div>
280
280
 
281
281
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Anchormodel::SimpleFormInputs::Helpers::AnchormodelInputsCommon
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -210,7 +210,18 @@
210
210
  45
211
211
  46
212
212
  47
213
- 48</pre>
213
+ 48
214
+ 49
215
+ 50
216
+ 51
217
+ 52
218
+ 53
219
+ 54
220
+ 55
221
+ 56
222
+ 57
223
+ 58
224
+ 59</pre>
214
225
  </td>
215
226
  <td>
216
227
  <pre class="code"><span class="info file"># File 'lib/anchormodel/simple_form_inputs/helpers/anchormodel_inputs_common.rb', line 5</span>
@@ -253,7 +264,18 @@ Affected object: </span><span class='embexpr_beg'>#{</span><span class='id ident
253
264
  <span class='id identifier rubyid_sf_selection_key'>sf_selection_key</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_selected_key'>selected_key</span>
254
265
  <span class='rparen'>)</span>
255
266
 
256
- <span class='ivar'>@collection</span> <span class='op'>=</span> <span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='id identifier rubyid_am_class'>am_class</span><span class='period'>.</span><span class='id identifier rubyid_all'>all</span><span class='rparen'>)</span>
267
+ <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:collection</span><span class='rbracket'>]</span>
268
+ <span class='comment'># Case where collection is given as an option consisting of an array of pairs
269
+ </span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:collection</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Enumerable</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:collection</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='op'>&amp;.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>2</span>
270
+ <span class='ivar'>@collection</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:collection</span><span class='rbracket'>]</span>
271
+ <span class='kw'>else</span>
272
+ <span class='comment'># Case where collection is given as an option consisting of an array of anchormodels
273
+ </span> <span class='ivar'>@collection</span> <span class='op'>=</span> <span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:collection</span><span class='rbracket'>]</span><span class='rparen'>)</span>
274
+ <span class='kw'>end</span>
275
+ <span class='kw'>else</span>
276
+ <span class='comment'># Case where collection is not given
277
+ </span> <span class='ivar'>@collection</span> <span class='op'>=</span> <span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='id identifier rubyid_am_class'>am_class</span><span class='period'>.</span><span class='id identifier rubyid_all'>all</span><span class='rparen'>)</span>
278
+ <span class='kw'>end</span>
257
279
 
258
280
  <span class='id identifier rubyid_before_render_input'>before_render_input</span>
259
281
 
@@ -269,9 +291,9 @@ Affected object: </span><span class='embexpr_beg'>#{</span><span class='id ident
269
291
  </div>
270
292
 
271
293
  <div id="footer">
272
- Generated on Fri Feb 14 13:25:30 2025 by
294
+ Generated on Thu Jan 22 13:11:54 2026 by
273
295
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
274
- 0.9.37 (ruby-3.3.5).
296
+ 0.9.28 (ruby-3.3.5).
275
297
  </div>
276
298
 
277
299
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Anchormodel::SimpleFormInputs::Helpers
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Fri Feb 14 13:25:30 2025 by
117
+ Generated on Thu Jan 22 13:11:54 2026 by
118
118
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.9.37 (ruby-3.3.5).
119
+ 0.9.28 (ruby-3.3.5).
120
120
  </div>
121
121
 
122
122
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Anchormodel::SimpleFormInputs
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Fri Feb 14 13:25:30 2025 by
117
+ Generated on Thu Jan 22 13:11:54 2026 by
118
118
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.9.37 (ruby-3.3.5).
119
+ 0.9.28 (ruby-3.3.5).
120
120
  </div>
121
121
 
122
122
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Anchormodel::Util
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -614,9 +614,9 @@
614
614
  </div>
615
615
 
616
616
  <div id="footer">
617
- Generated on Fri Feb 14 13:25:30 2025 by
617
+ Generated on Thu Jan 22 13:11:54 2026 by
618
618
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
619
- 0.9.37 (ruby-3.3.5).
619
+ 0.9.28 (ruby-3.3.5).
620
620
  </div>
621
621
 
622
622
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Anchormodel::Version
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -129,9 +129,9 @@
129
129
  </div>
130
130
 
131
131
  <div id="footer">
132
- Generated on Fri Feb 14 13:25:30 2025 by
132
+ Generated on Thu Jan 22 13:11:54 2026 by
133
133
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
134
- 0.9.37 (ruby-3.3.5).
134
+ 0.9.28 (ruby-3.3.5).
135
135
  </div>
136
136
 
137
137
  </div>
data/doc/Anchormodel.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Anchormodel
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -555,7 +555,8 @@
555
555
  67
556
556
  68
557
557
  69
558
- 70</pre>
558
+ 70
559
+ 71</pre>
559
560
  </td>
560
561
  <td>
561
562
  <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 48</span>
@@ -572,7 +573,8 @@
572
573
  <span class='kw'>end</span>
573
574
 
574
575
  <span class='comment'># Register self
575
- </span> <span class='id identifier rubyid_entries_list'>entries_list</span> <span class='op'>&lt;&lt;</span> <span class='kw'>self</span>
576
+ </span> <span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Duplicate anchor model key </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> for </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_entries_hash'>entries_hash</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
577
+ <span class='id identifier rubyid_entries_list'>entries_list</span> <span class='op'>&lt;&lt;</span> <span class='kw'>self</span>
576
578
  <span class='id identifier rubyid_entries_hash'>entries_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span>
577
579
 
578
580
  <span class='comment'># Register valid keys
@@ -947,12 +949,12 @@
947
949
  <pre class="lines">
948
950
 
949
951
 
950
- 72
951
952
  73
952
- 74</pre>
953
+ 74
954
+ 75</pre>
953
955
  </td>
954
956
  <td>
955
- <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 72</span>
957
+ <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 73</span>
956
958
 
957
959
  <span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
958
960
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_key'>key</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span>
@@ -986,12 +988,12 @@
986
988
  <pre class="lines">
987
989
 
988
990
 
989
- 89
990
991
  90
991
- 91</pre>
992
+ 91
993
+ 92</pre>
992
994
  </td>
993
995
  <td>
994
- <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 89</span>
996
+ <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 90</span>
995
997
 
996
998
  <span class='kw'>def</span> <span class='id identifier rubyid_as_json'>as_json</span>
997
999
  <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
@@ -1025,12 +1027,12 @@
1025
1027
  <pre class="lines">
1026
1028
 
1027
1029
 
1028
- 81
1029
1030
  82
1030
- 83</pre>
1031
+ 83
1032
+ 84</pre>
1031
1033
  </td>
1032
1034
  <td>
1033
- <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 81</span>
1035
+ <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 82</span>
1034
1036
 
1035
1037
  <span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
1036
1038
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>#&lt;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>&lt;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='embexpr_end'>}</span><span class='tstring_content'>&gt;:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_hash'>hash</span><span class='embexpr_end'>}</span><span class='tstring_content'>&gt;</span><span class='tstring_end'>&quot;</span></span>
@@ -1066,12 +1068,12 @@
1066
1068
  <pre class="lines">
1067
1069
 
1068
1070
 
1069
- 77
1070
1071
  78
1071
- 79</pre>
1072
+ 79
1073
+ 80</pre>
1072
1074
  </td>
1073
1075
  <td>
1074
- <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 77</span>
1076
+ <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 78</span>
1075
1077
 
1076
1078
  <span class='kw'>def</span> <span class='id identifier rubyid_label'>label</span>
1077
1079
  <span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_t'>t</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_demodulize'>demodulize</span><span class='embexpr_end'>}</span><span class='tstring_content'>|</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_humanize'>humanize</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -1105,12 +1107,12 @@
1105
1107
  <pre class="lines">
1106
1108
 
1107
1109
 
1108
- 85
1109
1110
  86
1110
- 87</pre>
1111
+ 87
1112
+ 88</pre>
1111
1113
  </td>
1112
1114
  <td>
1113
- <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 85</span>
1115
+ <pre class="code"><span class="info file"># File 'lib/anchormodel.rb', line 86</span>
1114
1116
 
1115
1117
  <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1116
1118
  <span class='id identifier rubyid_inspect'>inspect</span>
@@ -1125,9 +1127,9 @@
1125
1127
  </div>
1126
1128
 
1127
1129
  <div id="footer">
1128
- Generated on Fri Feb 14 13:25:30 2025 by
1130
+ Generated on Thu Jan 22 13:11:54 2026 by
1129
1131
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1130
- 0.9.37 (ruby-3.3.5).
1132
+ 0.9.28 (ruby-3.3.5).
1131
1133
  </div>
1132
1134
 
1133
1135
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: AnchormodelCheckBoxesInput
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -130,9 +130,9 @@
130
130
  </div>
131
131
 
132
132
  <div id="footer">
133
- Generated on Fri Feb 14 13:25:30 2025 by
133
+ Generated on Thu Jan 22 13:11:54 2026 by
134
134
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135
- 0.9.37 (ruby-3.3.5).
135
+ 0.9.28 (ruby-3.3.5).
136
136
  </div>
137
137
 
138
138
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: AnchormodelGenerator
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -191,9 +191,9 @@
191
191
  </div>
192
192
 
193
193
  <div id="footer">
194
- Generated on Fri Feb 14 13:25:30 2025 by
194
+ Generated on Thu Jan 22 13:11:54 2026 by
195
195
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
196
- 0.9.37 (ruby-3.3.5).
196
+ 0.9.28 (ruby-3.3.5).
197
197
  </div>
198
198
 
199
199
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: AnchormodelInput
8
8
 
9
- &mdash; Documentation by YARD 0.9.37
9
+ &mdash; Documentation by YARD 0.9.28
10
10
 
11
11
  </title>
12
12
 
@@ -130,9 +130,9 @@
130
130
  </div>
131
131
 
132
132
  <div id="footer">
133
- Generated on Fri Feb 14 13:25:30 2025 by
133
+ Generated on Thu Jan 22 13:11:54 2026 by
134
134
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135
- 0.9.37 (ruby-3.3.5).
135
+ 0.9.28 (ruby-3.3.5).
136
136
  </div>
137
137
 
138
138
  </div>