Skip to content

Commit bb20d30

Browse files
committed
Merge branch 'feat/serialize-as-json' into 'main'
✨ Add serializer option See merge request oauth-xx/snaky_hash!1
2 parents 7c0f025 + d1679b6 commit bb20d30

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2155
-207
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

.rubocop_gradual.lock

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"bin/bundle:101990931": [
33
[64, 5, 20, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 2485198147]
44
],
5-
"lib/snaky_hash/snake.rb:1580566753": [
6-
[19, 7, 1909, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 2316609805]
7-
],
8-
"snaky_hash.gemspec:2542342977": [
5+
"snaky_hash.gemspec:1781125773": [
96
[4, 23, 12, "Gemspec/RubyVersionGlobalsUsage: Do not use `RUBY_VERSION` in gemspec file.", 31296028]
107
],
118
"spec/shared_contexts/base_hash.rb:829438978": [
@@ -14,7 +11,7 @@
1411
"spec/snaky_hash/bad_snake_spec.rb:3931746112": [
1512
[3, 16, 11, "RSpec/DescribeClass: The first argument to describe should be the class or module being tested.", 1577626599]
1613
],
17-
"spec/snaky_hash/snake_spec.rb:4262905777": [
14+
"spec/snaky_hash/snake_spec.rb:3264128361": [
1815
[4, 3, 92, "RSpec/LeakyConstantDeclaration: Stub class constant instead of declaring explicitly.", 3047242215]
1916
]
2017
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
1111
- Gemspec metadata updates (@pboling)
1212
- Documentation updates (@pboling)
1313
- CI covering all code, and all key versions of runtime dependencies (@pboling)
14+
- [gh2](https://github.com/oauth-xx/snaky_hash/pull/2) - Serializer option (@pboling)
1415
### Changed
1516
### Fixed
1617
### Removed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ PLATFORMS
263263

264264
DEPENDENCIES
265265
appraisal!
266+
backports (~> 3.25, >= 3.25.1)
266267
benchmark (~> 0.4)
267268
bundler-audit (~> 0.9.2)
268269
debug (>= 1.0.0)

doc/SnakyHash.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<dl>
8080
<dt>Defined in:</dt>
8181
<dd>lib/snaky_hash.rb<span class="defines">,<br />
82-
lib/snaky_hash/snake.rb,<br /> lib/snaky_hash/version.rb,<br /> lib/snaky_hash/string_keyed.rb,<br /> lib/snaky_hash/symbol_keyed.rb</span>
82+
lib/snaky_hash/snake.rb,<br /> lib/snaky_hash/version.rb,<br /> lib/snaky_hash/extensions.rb,<br /> lib/snaky_hash/serializer.rb,<br /> lib/snaky_hash/string_keyed.rb,<br /> lib/snaky_hash/symbol_keyed.rb</span>
8383
</dd>
8484
</dl>
8585

@@ -103,11 +103,11 @@ <h2>Overview</h2><div class="docstring">
103103
<p class="children">
104104

105105

106-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="SnakyHash/Version.html" title="SnakyHash::Version (module)">Version</a></span>
106+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="SnakyHash/Serializer.html" title="SnakyHash::Serializer (module)">Serializer</a></span>, <span class='object_link'><a href="SnakyHash/Version.html" title="SnakyHash::Version (module)">Version</a></span>
107107

108108

109109

110-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="SnakyHash/Snake.html" title="SnakyHash::Snake (class)">Snake</a></span>, <span class='object_link'><a href="SnakyHash/StringKeyed.html" title="SnakyHash::StringKeyed (class)">StringKeyed</a></span>, <span class='object_link'><a href="SnakyHash/SymbolKeyed.html" title="SnakyHash::SymbolKeyed (class)">SymbolKeyed</a></span>
110+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="SnakyHash/Error.html" title="SnakyHash::Error (class)">Error</a></span>, <span class='object_link'><a href="SnakyHash/Extensions.html" title="SnakyHash::Extensions (class)">Extensions</a></span>, <span class='object_link'><a href="SnakyHash/Snake.html" title="SnakyHash::Snake (class)">Snake</a></span>, <span class='object_link'><a href="SnakyHash/StringKeyed.html" title="SnakyHash::StringKeyed (class)">StringKeyed</a></span>, <span class='object_link'><a href="SnakyHash/SymbolKeyed.html" title="SnakyHash::SymbolKeyed (class)">SymbolKeyed</a></span>
111111

112112

113113
</p>
@@ -123,7 +123,7 @@ <h2>Overview</h2><div class="docstring">
123123
</div>
124124

125125
<div id="footer">
126-
Generated on Wed May 21 09:25:20 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: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>
7+
Exception: SnakyHash::Error
8+
9+
&mdash; Documentation by YARD 0.9.37
10+
11+
</title>
12+
13+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
14+
15+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
16+
17+
<script type="text/javascript">
18+
pathId = "SnakyHash::Error";
19+
relpath = '../';
20+
</script>
21+
22+
23+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24+
25+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26+
27+
28+
</head>
29+
<body>
30+
<div class="nav_wrap">
31+
<iframe id="nav" src="../class_list.html?1"></iframe>
32+
<div id="resizer"></div>
33+
</div>
34+
35+
<div id="main" tabindex="-1">
36+
<div id="header">
37+
<div id="menu">
38+
39+
<a href="../_index.html">Index (E)</a> &raquo;
40+
<span class='title'><span class='object_link'><a href="../SnakyHash.html" title="SnakyHash (module)">SnakyHash</a></span></span>
41+
&raquo;
42+
<span class="title">Error</span>
43+
44+
</div>
45+
46+
<div id="search">
47+
48+
<a class="full_list_link" id="class_list_link"
49+
href="../class_list.html">
50+
51+
<svg width="24" height="24">
52+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55+
</svg>
56+
</a>
57+
58+
</div>
59+
<div class="clear"></div>
60+
</div>
61+
62+
<div id="content"><h1>Exception: SnakyHash::Error
63+
64+
65+
66+
</h1>
67+
<div class="box_info">
68+
69+
<dl>
70+
<dt>Inherits:</dt>
71+
<dd>
72+
<span class="inheritName">StandardError</span>
73+
74+
<ul class="fullTree">
75+
<li>Object</li>
76+
77+
<li class="next">StandardError</li>
78+
79+
<li class="next">SnakyHash::Error</li>
80+
81+
</ul>
82+
<a href="#" class="inheritanceTree">show all</a>
83+
84+
</dd>
85+
</dl>
86+
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
<dl>
98+
<dt>Defined in:</dt>
99+
<dd>lib/snaky_hash.rb</dd>
100+
</dl>
101+
102+
</div>
103+
104+
105+
106+
107+
108+
109+
110+
111+
112+
113+
114+
</div>
115+
116+
<div id="footer">
117+
Generated on Wed May 21 22:09:23 2025 by
118+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119+
0.9.37 (ruby-3.4.3).
120+
</div>
121+
122+
</div>
123+
</body>
124+
</html>

0 commit comments

Comments
 (0)