anchormodel 0.2.6 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdf9540f2e782e151e9b60e99561a213da014a23a257d6bd5d04e4694a540638
4
- data.tar.gz: 7f86a064ee2d94b66c66102e81ef2a2ee3997cc46557fe806c4970a733672c7c
3
+ metadata.gz: 96363c644701666a3392626bef0c55f86ae83e7761c4b50cbf543b6dc89d036e
4
+ data.tar.gz: 1b35c56261e01962b52fdc7420f5f3c4a5a9976de48fc85021c5a107a75e5acf
5
5
  SHA512:
6
- metadata.gz: 0b1419bbd9cce3bc457517cc4a923abad741c1dfac03bec80f739889648659acaa10116c183a656a0cb4d9214ff9fce266e62575c80e44e2a52f37d0a9fa4d6d
7
- data.tar.gz: 305d35380def57b2a5c945bc72712f40291ea1a7b4f91eeb90204cf1be9bd2aa71b808bd2bdab32e61a2fd969ed3557ce2518f94ef4bc4b11f3585e96c2c345e
6
+ metadata.gz: dcb23e9e6e9faa80f1d5b9516a187ef29f0b05ffed2b39e9ecb027e69f014ddd292c6bd92ef08be6fdebfb0e5246a0e7537375969ef08d3b034bf68ce5612132
7
+ data.tar.gz: 44892a2758b72039713326978eaa96d46fc360a23b0b6f72fbabc270af889dc16cf8b44112f91d3cd527c7ab95d70d18a0ace1ad82b5ed82be8505effd68b6f7
data/.gitignore CHANGED
@@ -1,3 +1,5 @@
1
1
  .rubocop.yml
2
2
  .yardoc
3
- /pkg/*
3
+ /pkg/*
4
+ .bundle/config
5
+ /vendor/bundle
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ # 0.3.1
2
+
3
+ - Fix `Model.where(anchormodel_col: array)` collapsing to `IN (NULL)` and matching zero rows
4
+ - Fix inverted `serializable?` logic on single-value anchormodel attributes
5
+
6
+ # 0.3.0
7
+
8
+ - Fix typos in doc (thank you Josua!)
9
+ - Explicitely forbid defining the same anchormodel key twice
10
+ - Update Gemfile.lock
11
+
1
12
  # 0.2.6
2
13
 
3
14
  - Enhance support for custom collections in inputs
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.3.1.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.1)
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.4)
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.3-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)
146
- loofah (~> 2.21)
147
- nokogiri (~> 1.14)
149
+ rails-html-sanitizer (1.7.0)
150
+ loofah (~> 2.25)
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.1)
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.5)
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.6
1
+ 0.3.1
data/anchormodel.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # This file is auto-generated via: 'rake gemspec'.
3
3
 
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: anchormodel 0.2.6 ruby lib
5
+ # stub: anchormodel 0.3.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "anchormodel".freeze
9
- s.version = "0.2.6".freeze
9
+ s.version = "0.3.1".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]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
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.9".freeze
19
+ s.rubygems_version = "4.0.11".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 Thu Aug 7 15:55:29 2025 by
403
+ Generated on Wed May 13 11:46:10 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
 
@@ -493,13 +493,13 @@
493
493
  <pre class="lines">
494
494
 
495
495
 
496
- 50
497
- 51
498
- 52
499
- 53</pre>
496
+ 32
497
+ 33
498
+ 34
499
+ 35</pre>
500
500
  </td>
501
501
  <td>
502
- <pre class="code"><span class="info file"># File 'lib/anchormodel/active_model_type_value_single.rb', line 50</span>
502
+ <pre class="code"><span class="info file"># File 'lib/anchormodel/active_model_type_value_single.rb', line 32</span>
503
503
 
504
504
  <span class='kw'>def</span> <span class='id identifier rubyid_changed_in_place?'>changed_in_place?</span><span class='lparen'>(</span><span class='id identifier rubyid_raw_old_value'>raw_old_value</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
505
505
  <span class='id identifier rubyid_old_value'>old_value</span> <span class='op'>=</span> <span class='id identifier rubyid_deserialize'>deserialize</span><span class='lparen'>(</span><span class='id identifier rubyid_raw_old_value'>raw_old_value</span><span class='rparen'>)</span>
@@ -547,29 +547,17 @@
547
547
  <pre class="lines">
548
548
 
549
549
 
550
- 39
551
- 40
552
- 41
553
- 42
554
- 43
555
- 44
556
- 45
557
- 46
558
- 47
559
- 48</pre>
550
+ 27
551
+ 28
552
+ 29
553
+ 30</pre>
560
554
  </td>
561
555
  <td>
562
- <pre class="code"><span class="info file"># File 'lib/anchormodel/active_model_type_value_single.rb', line 39</span>
556
+ <pre class="code"><span class="info file"># File 'lib/anchormodel/active_model_type_value_single.rb', line 27</span>
563
557
 
564
558
  <span class='kw'>def</span> <span class='id identifier rubyid_serializable?'>serializable?</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
565
- <span class='kw'>return</span> <span class='kw'>case</span> <span class='id identifier rubyid_value'>value</span>
566
- <span class='kw'>when</span> <span class='const'>Symbol</span><span class='comma'>,</span> <span class='const'>String</span>
567
- <span class='ivar'>@attribute</span><span class='period'>.</span><span class='id identifier rubyid_anchormodel_class'>anchormodel_class</span><span class='period'>.</span><span class='id identifier rubyid_valid_keys'>valid_keys</span><span class='period'>.</span><span class='id identifier rubyid_exclude?'>exclude?</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
568
- <span class='kw'>when</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='ivar'>@attribute</span><span class='period'>.</span><span class='id identifier rubyid_anchormodel_class'>anchormodel_class</span>
569
- <span class='kw'>true</span>
570
- <span class='kw'>else</span>
571
- <span class='kw'>false</span>
572
- <span class='kw'>end</span>
559
+ <span class='kw'>return</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_scalar_serializable?'>scalar_serializable?</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
560
+ <span class='id identifier rubyid_scalar_serializable?'>scalar_serializable?</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
573
561
  <span class='kw'>end</span></pre>
574
562
  </td>
575
563
  </tr>
@@ -605,38 +593,14 @@
605
593
  22
606
594
  23
607
595
  24
608
- 25
609
- 26
610
- 27
611
- 28
612
- 29
613
- 30
614
- 31
615
- 32
616
- 33
617
- 34
618
- 35
619
- 36
620
- 37</pre>
596
+ 25</pre>
621
597
  </td>
622
598
  <td>
623
599
  <pre class="code"><span class="info file"># File 'lib/anchormodel/active_model_type_value_single.rb', line 22</span>
624
600
 
625
601
  <span class='kw'>def</span> <span class='id identifier rubyid_serialize'>serialize</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
626
- <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_presence'>presence</span>
627
- <span class='kw'>return</span> <span class='kw'>case</span> <span class='id identifier rubyid_value'>value</span>
628
- <span class='kw'>when</span> <span class='const'>Symbol</span><span class='comma'>,</span> <span class='const'>String</span>
629
- <span class='kw'>unless</span> <span class='ivar'>@attribute</span><span class='period'>.</span><span class='id identifier rubyid_anchormodel_class'>anchormodel_class</span><span class='period'>.</span><span class='id identifier rubyid_valid_keys'>valid_keys</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
630
- <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'>Attempt to set </span><span class='embexpr_beg'>#{</span><span class='ivar'>@attribute</span><span class='period'>.</span><span class='id identifier rubyid_attribute_name'>attribute_name</span><span class='embexpr_end'>}</span><span class='tstring_content'> to unsupported key </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
631
- <span class='kw'>end</span>
632
- <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
633
- <span class='kw'>when</span> <span class='ivar'>@attribute</span><span class='period'>.</span><span class='id identifier rubyid_anchormodel_class'>anchormodel_class</span>
634
- <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
635
- <span class='kw'>when</span> <span class='kw'>nil</span>
636
- <span class='kw'>nil</span>
637
- <span class='kw'>else</span>
638
- <span class='id identifier rubyid_fail'>fail</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Attempt to set </span><span class='embexpr_beg'>#{</span><span class='ivar'>@attribute</span><span class='period'>.</span><span class='id identifier rubyid_attribute_name'>attribute_name</span><span class='embexpr_end'>}</span><span class='tstring_content'> to unsupported type </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
639
- <span class='kw'>end</span>
602
+ <span class='kw'>return</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_serialize_scalar'>serialize_scalar</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
603
+ <span class='id identifier rubyid_serialize_scalar'>serialize_scalar</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
640
604
  <span class='kw'>end</span></pre>
641
605
  </td>
642
606
  </tr>
@@ -687,9 +651,9 @@
687
651
  </div>
688
652
 
689
653
  <div id="footer">
690
- Generated on Thu Aug 7 15:55:30 2025 by
654
+ Generated on Wed May 13 11:46:10 2026 by
691
655
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
692
- 0.9.37 (ruby-3.3.5).
656
+ 0.9.28 (ruby-3.3.5).
693
657
  </div>
694
658
 
695
659
  </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 Thu Aug 7 15:55:29 2025 by
599
+ Generated on Wed May 13 11:46:10 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 Thu Aug 7 15:55:29 2025 by
276
+ Generated on Wed May 13 11:46:10 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
 
@@ -291,9 +291,9 @@ Affected object: </span><span class='embexpr_beg'>#{</span><span class='id ident
291
291
  </div>
292
292
 
293
293
  <div id="footer">
294
- Generated on Thu Aug 7 15:55:29 2025 by
294
+ Generated on Wed May 13 11:46:10 2026 by
295
295
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
296
- 0.9.37 (ruby-3.3.5).
296
+ 0.9.28 (ruby-3.3.5).
297
297
  </div>
298
298
 
299
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 Thu Aug 7 15:55:29 2025 by
117
+ Generated on Wed May 13 11:46:10 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 Thu Aug 7 15:55:29 2025 by
117
+ Generated on Wed May 13 11:46:10 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 Thu Aug 7 15:55:29 2025 by
617
+ Generated on Wed May 13 11:46:10 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 Thu Aug 7 15:55:29 2025 by
132
+ Generated on Wed May 13 11:46:10 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 Thu Aug 7 15:55:29 2025 by
1130
+ Generated on Wed May 13 11:46:10 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>