Skip to content

Commit d1679b6

Browse files
committed
♻️ Rafactor for improved thread-safety (iv)
- extensions are per-class
1 parent 770d202 commit d1679b6

23 files changed

+42
-40
lines changed

.github/workflows/ancient.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,26 @@ jobs:
3737
# Ruby 2.3
3838
- ruby: "ruby-2.3"
3939
appraisal: "ruby-2-3"
40-
exec_cmd: "rake test"
40+
exec_cmd: "rspec spec/snaky_hash/serializer_spec.rb:13"
4141
gemfile: "Appraisal.root"
4242
rubygems: "3.3.27"
4343
bundler: "2.3.27"
4444

45-
# Ruby 2.4
46-
- ruby: "ruby-2.4"
47-
appraisal: "ruby-2-4"
48-
exec_cmd: "rake test"
49-
gemfile: "Appraisal.root"
50-
rubygems: "3.3.27"
51-
bundler: "2.3.27"
52-
53-
# Ruby 2.5
54-
- ruby: "ruby-2.5"
55-
appraisal: "ruby-2-5"
56-
exec_cmd: "rake test"
57-
gemfile: "Appraisal.root"
58-
rubygems: "3.3.27"
59-
bundler: "2.3.27"
45+
# # Ruby 2.4
46+
# - ruby: "ruby-2.4"
47+
# appraisal: "ruby-2-4"
48+
# exec_cmd: "rake test"
49+
# gemfile: "Appraisal.root"
50+
# rubygems: "3.3.27"
51+
# bundler: "2.3.27"
52+
#
53+
# # Ruby 2.5
54+
# - ruby: "ruby-2.5"
55+
# appraisal: "ruby-2-5"
56+
# exec_cmd: "rake test"
57+
# gemfile: "Appraisal.root"
58+
# rubygems: "3.3.27"
59+
# bundler: "2.3.27"
6060

6161
steps:
6262
- name: Checkout

doc/SnakyHash.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h2>Overview</h2><div class="docstring">
123123
</div>
124124

125125
<div id="footer">
126-
Generated on Wed May 21 21:33:37 2025 by
126+
Generated on Wed May 21 22:09:23 2025 by
127127
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128128
0.9.37 (ruby-3.4.3).
129129
</div>

doc/SnakyHash/Error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
</div>
115115

116116
<div id="footer">
117-
Generated on Wed May 21 21:33:37 2025 by
117+
Generated on Wed May 21 22:09:23 2025 by
118118
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119119
0.9.37 (ruby-3.4.3).
120120
</div>

doc/SnakyHash/Extensions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ <h3 class="signature " id="run-instance_method">
446446
</div>
447447

448448
<div id="footer">
449-
Generated on Wed May 21 21:33:37 2025 by
449+
Generated on Wed May 21 22:09:23 2025 by
450450
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
451451
0.9.37 (ruby-3.4.3).
452452
</div>

doc/SnakyHash/Serializer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ <h3 class="signature first" id="extended-class_method">
229229
<span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_extend'>extend</span><span class='lparen'>(</span><span class='id identifier rubyid_extended_module'>extended_module</span><span class='rparen'>)</span>
230230
<span class='comment'># :nocov:
231231
</span> <span class='comment'># This will be run in CI on Ruby 2.3, but we only collect coverage from current Ruby
232-
</span> <span class='kw'>unless</span> <span class='const'>VersionGem</span><span class='op'>::</span><span class='const'>Ruby</span><span class='period'>.</span><span class='id identifier rubyid_gte_minimum_version?'>gte_minimum_version?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2.4</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
232+
</span> <span class='kw'>unless</span> <span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_instance_methods'>instance_methods</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='symbol'>:transform_values</span><span class='rparen'>)</span>
233233
<span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_include'>include</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Serializer/BackportedInstanceMethods.html" title="SnakyHash::Serializer::BackportedInstanceMethods (module)">BackportedInstanceMethods</a></span></span><span class='rparen'>)</span>
234234
<span class='kw'>end</span>
235235
<span class='comment'># :nocov:
@@ -316,7 +316,7 @@ <h3 class="signature " id="load-instance_method">
316316
</div>
317317

318318
<div id="footer">
319-
Generated on Wed May 21 21:33:37 2025 by
319+
Generated on Wed May 21 22:09:23 2025 by
320320
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
321321
0.9.37 (ruby-3.4.3).
322322
</div>

doc/SnakyHash/Serializer/BackportedInstanceMethods.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ <h3 class="signature first" id="transform_values-instance_method">
190190
</div>
191191

192192
<div id="footer">
193-
Generated on Wed May 21 21:33:37 2025 by
193+
Generated on Wed May 21 22:09:23 2025 by
194194
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
195195
0.9.37 (ruby-3.4.3).
196196
</div>

doc/SnakyHash/Serializer/Modulizer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ <h3 class="signature first" id="to_extended_mod-class_method">
189189
</div>
190190

191191
<div id="footer">
192-
Generated on Wed May 21 21:33:37 2025 by
192+
Generated on Wed May 21 22:09:23 2025 by
193193
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
194194
0.9.37 (ruby-3.4.3).
195195
</div>

doc/SnakyHash/Snake.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ <h3 class="signature first" id="included-instance_method">
275275
</div>
276276

277277
<div id="footer">
278-
Generated on Wed May 21 21:33:37 2025 by
278+
Generated on Wed May 21 22:09:23 2025 by
279279
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
280280
0.9.37 (ruby-3.4.3).
281281
</div>

doc/SnakyHash/Snake/SnakyModulizer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ <h3 class="signature first" id="to_mod-class_method">
261261
</div>
262262

263263
<div id="footer">
264-
Generated on Wed May 21 21:33:37 2025 by
264+
Generated on Wed May 21 22:09:23 2025 by
265265
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
266266
0.9.37 (ruby-3.4.3).
267267
</div>

doc/SnakyHash/StringKeyed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h2>Overview</h2><div class="docstring">
130130
</div>
131131

132132
<div id="footer">
133-
Generated on Wed May 21 21:33:37 2025 by
133+
Generated on Wed May 21 22:09:23 2025 by
134134
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135135
0.9.37 (ruby-3.4.3).
136136
</div>

0 commit comments

Comments
 (0)