env_parser 1.6.2 → 1.7.2

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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -4
  3. data/Gemfile.lock +104 -30
  4. data/README.md +2 -2
  5. data/env_parser.gemspec +19 -12
  6. data/lib/env_parser/types/chronology_types.rb +1 -1
  7. data/lib/env_parser/types/internet_types.rb +3 -2
  8. data/lib/env_parser/version.rb +1 -1
  9. data/lib/env_parser.rb +18 -18
  10. metadata +5 -119
  11. data/.circleci/config.yml +0 -63
  12. data/.gitignore +0 -14
  13. data/.rspec +0 -3
  14. data/.rubocop.yml +0 -64
  15. data/.ruby-version +0 -1
  16. data/.yardopts +0 -1
  17. data/bin/console +0 -14
  18. data/bin/setup +0 -8
  19. data/docs/EnvParser/AutoregisterFileNotFound.html +0 -143
  20. data/docs/EnvParser/Error.html +0 -138
  21. data/docs/EnvParser/TypeAlreadyDefined.html +0 -143
  22. data/docs/EnvParser/TypeAlreadyDefinedError.html +0 -142
  23. data/docs/EnvParser/Types/BaseTypes.html +0 -179
  24. data/docs/EnvParser/Types/ChronologyTypes.html +0 -160
  25. data/docs/EnvParser/Types/InternetTypes.html +0 -172
  26. data/docs/EnvParser/Types.html +0 -128
  27. data/docs/EnvParser/UnknownTypeError.html +0 -142
  28. data/docs/EnvParser/UnparseableAutoregisterSpec.html +0 -143
  29. data/docs/EnvParser/ValueNotAllowed.html +0 -144
  30. data/docs/EnvParser/ValueNotAllowedError.html +0 -144
  31. data/docs/EnvParser/ValueNotConvertibleError.html +0 -142
  32. data/docs/EnvParser.html +0 -1240
  33. data/docs/EnvParserTypes/BaseTypes.html +0 -178
  34. data/docs/EnvParserTypes/ChronologyTypes.html +0 -159
  35. data/docs/EnvParserTypes/InternetTypes.html +0 -159
  36. data/docs/EnvParserTypes/TimeTypes.html +0 -158
  37. data/docs/EnvParserTypes.html +0 -129
  38. data/docs/_index.html +0 -243
  39. data/docs/class_list.html +0 -54
  40. data/docs/css/common.css +0 -1
  41. data/docs/css/full_list.css +0 -58
  42. data/docs/css/style.css +0 -503
  43. data/docs/file.README.html +0 -419
  44. data/docs/file_list.html +0 -59
  45. data/docs/frames.html +0 -22
  46. data/docs/index.html +0 -419
  47. data/docs/js/app.js +0 -344
  48. data/docs/js/full_list.js +0 -242
  49. data/docs/js/jquery.js +0 -4
  50. data/docs/method_list.html +0 -94
  51. data/docs/top-level-namespace.html +0 -110
  52. data/spec/env_parser/types/base_types_spec.rb +0 -98
  53. data/spec/env_parser/types/chronology_types_spec.rb +0 -49
  54. data/spec/env_parser/types/internet_types_spec.rb +0 -95
  55. data/spec/env_parser_spec.rb +0 -214
  56. data/spec/spec_helper.rb +0 -14
@@ -1,179 +0,0 @@
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
- Module: EnvParser::Types::BaseTypes
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 = "EnvParser::Types::BaseTypes";
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 (B)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../EnvParser.html" title="EnvParser (class)">EnvParser</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Types.html" title="EnvParser::Types (module)">Types</a></span></span>
41
- &raquo;
42
- <span class="title">BaseTypes</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>Module: EnvParser::Types::BaseTypes
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/env_parser/types/base_types.rb</dd>
82
- </dl>
83
-
84
- </div>
85
-
86
- <h2>Overview</h2><div class="docstring">
87
- <div class="discussion">
88
- <p>Defines types for primitive classes, adding the following:</p>
89
-
90
- <table>
91
- <tbody>
92
- <tr>
93
- <th><code>:as</code> value</th>
94
- <th>type returned</th>
95
- <th>default</th>
96
- <th>notes</th>
97
- </tr>
98
- </tbody>
99
- <tbody>
100
- <tr>
101
- <td>:string</td>
102
- <td>String</td>
103
- <td><code>''</code></td>
104
- <td></td>
105
- </tr>
106
- <tr>
107
- <td>:symbol</td>
108
- <td>Symbol</td>
109
- <td><code>:''</code></td>
110
- <td></td>
111
- </tr>
112
- <tr>
113
- <td>:boolean</td>
114
- <td>TrueValue / FalseValue</td>
115
- <td><code>false</code></td>
116
- <td></td>
117
- </tr>
118
- <tr>
119
- <td>:int / :integer</td>
120
- <td>Integer</td>
121
- <td><code>0</code></td>
122
- <td></td>
123
- </tr>
124
- <tr>
125
- <td>:float / :decimal / :number</td>
126
- <td>Float</td>
127
- <td><code>0.0</code></td>
128
- <td></td>
129
- </tr>
130
- <tr>
131
- <td>:json</td>
132
- <td>&lt; depends on JSON given &gt;</td>
133
- <td><code>nil</code></td>
134
- <td></td>
135
- </tr>
136
- <tr>
137
- <td>:array</td>
138
- <td>Array</td>
139
- <td><code>[]</code></td>
140
- <td></td>
141
- </tr>
142
- <tr>
143
- <td>:hash</td>
144
- <td>Hash</td>
145
- <td><code>{}</code></td>
146
- <td></td>
147
- </tr>
148
- </tbody>
149
- </table>
150
-
151
- <p>Note JSON is parsed using <em>quirks-mode</em> (meaning ‘true’, ‘25’, and ‘null’ are all considered
152
- valid, parseable JSON).</p>
153
-
154
-
155
- </div>
156
- </div>
157
- <div class="tags">
158
-
159
-
160
- </div>
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
- </div>
170
-
171
- <div id="footer">
172
- Generated on Mon Jun 9 14:00:25 2025 by
173
- <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
174
- 0.9.37 (ruby-3.4.2).
175
- </div>
176
-
177
- </div>
178
- </body>
179
- </html>
@@ -1,160 +0,0 @@
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
- Module: EnvParser::Types::ChronologyTypes
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 = "EnvParser::Types::ChronologyTypes";
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 (C)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../EnvParser.html" title="EnvParser (class)">EnvParser</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Types.html" title="EnvParser::Types (module)">Types</a></span></span>
41
- &raquo;
42
- <span class="title">ChronologyTypes</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>Module: EnvParser::Types::ChronologyTypes
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/env_parser/types/chronology_types.rb</dd>
82
- </dl>
83
-
84
- </div>
85
-
86
- <h2>Overview</h2><div class="docstring">
87
- <div class="discussion">
88
- <p>Defines types for date/time-related values, adding the following:</p>
89
-
90
- <table>
91
- <tbody>
92
- <tr>
93
- <th><code>:as</code> value</th>
94
- <th>type returned</th>
95
- <th>default</th>
96
- <th>notes</th>
97
- </tr>
98
- </tbody>
99
- <tbody>
100
- <tr>
101
- <td>:date</td>
102
- <td>Date</td>
103
- <td><code>nil</code></td>
104
- <td>
105
- A natural language or ISO8601-parseable date.
106
- <br />
107
- Actual interpretation of the value is handled by the *chronic* gem.
108
- </td>
109
- </tr>
110
- <tr>
111
- <td>:time / :datetime</td>
112
- <td>Time</td>
113
- <td><code>nil</code></td>
114
- <td>
115
- A natural language or ISO8601-parseable date and time.
116
- <br />
117
- Actual interpretation of the value is handled by the *chronic* gem.
118
- </td>
119
- </tr>
120
- <tr>
121
- <td>:duration</td>
122
- <td>Numeric</td>
123
- <td><code>nil</code></td>
124
- <td>
125
- A natural language or ISO8601-parseable period.
126
- <br />
127
- Value returned is the number of seconds in the given period.
128
- <br />
129
- Actual interpretation of the value is handled by the *chronic_duration* gem.
130
- </td>
131
- </tr>
132
- </tbody>
133
- </table>
134
-
135
-
136
- </div>
137
- </div>
138
- <div class="tags">
139
-
140
-
141
- </div>
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
- </div>
151
-
152
- <div id="footer">
153
- Generated on Mon Jun 9 14:00:25 2025 by
154
- <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
155
- 0.9.37 (ruby-3.4.2).
156
- </div>
157
-
158
- </div>
159
- </body>
160
- </html>
@@ -1,172 +0,0 @@
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
- Module: EnvParser::Types::InternetTypes
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 = "EnvParser::Types::InternetTypes";
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 (I)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../EnvParser.html" title="EnvParser (class)">EnvParser</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Types.html" title="EnvParser::Types (module)">Types</a></span></span>
41
- &raquo;
42
- <span class="title">InternetTypes</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>Module: EnvParser::Types::InternetTypes
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/env_parser/types/internet_types.rb</dd>
82
- </dl>
83
-
84
- </div>
85
-
86
- <h2>Overview</h2><div class="docstring">
87
- <div class="discussion">
88
- <p>Defines types for internet-related values, adding the following:</p>
89
-
90
- <table>
91
- <tbody>
92
- <tr>
93
- <th><code>:as</code> value</th>
94
- <th>type returned</th>
95
- <th>default</th>
96
- <th>notes</th>
97
- </tr>
98
- </tbody>
99
- <tbody>
100
- <tr>
101
- <td>:ipv4_address</td>
102
- <td>String</td>
103
- <td><code>nil</code></td>
104
- <td>
105
- An IPv4 address in 4-octet dot-decimal notation,
106
- <br />
107
- with no CIDR or subnet suffix (e.g. <code>'192.168.0.1'</code>).
108
- </td>
109
- </tr>
110
- <tr>
111
- <td>:ipv6_address</td>
112
- <td>String</td>
113
- <td><code>nil</code></td>
114
- <td>An IPv6 address, in RFC5952 format.</td>
115
- </tr>
116
- <tr>
117
- <td>:network_port / :port</td>
118
- <td>Integer</td>
119
- <td><code>nil</code></td>
120
- <td></td>
121
- </tr>
122
- <tr>
123
- <td>:email_address</td>
124
- <td>String</td>
125
- <td><code>nil</code></td>
126
- <td>
127
- A "simple" email address, containing only a username and a domain.
128
- <br />
129
- Note this does not guarantee RFC5322-conformity.
130
- </td>
131
- </tr>
132
- <tr>
133
- <td>:version / :semver</td>
134
- <td>MatchData</td>
135
- <td><code>nil</code></td>
136
- <td>
137
- The resulting MatchData has named captures for "major", "minor", "patch", "prerelease", and "buildmetadata".
138
- <br />
139
- The Regex used for generating this MatchData is available at: https://regex101.com/r/Ly7O1x/3/
140
- <br />
141
- See https://semver.org for additional info.
142
- </td>
143
- </tr>
144
- </tbody>
145
- </table>
146
-
147
-
148
- </div>
149
- </div>
150
- <div class="tags">
151
-
152
-
153
- </div>
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
- </div>
163
-
164
- <div id="footer">
165
- Generated on Mon Jun 9 14:00:25 2025 by
166
- <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
167
- 0.9.37 (ruby-3.4.2).
168
- </div>
169
-
170
- </div>
171
- </body>
172
- </html>
@@ -1,128 +0,0 @@
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
- Module: EnvParser::Types
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 = "EnvParser::Types";
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 (T)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../EnvParser.html" title="EnvParser (class)">EnvParser</a></span></span>
41
- &raquo;
42
- <span class="title">Types</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>Module: EnvParser::Types
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/env_parser/types/base_types.rb<span class="defines">,<br />
82
- lib/env_parser/types/internet_types.rb,<br /> lib/env_parser/types/chronology_types.rb</span>
83
- </dd>
84
- </dl>
85
-
86
- </div>
87
-
88
- <h2>Overview</h2><div class="docstring">
89
- <div class="discussion">
90
- <p>The parent module for all EnvParser type definition modules.
91
- Exists only for documentation’s sake.</p>
92
-
93
-
94
- </div>
95
- </div>
96
- <div class="tags">
97
-
98
-
99
- </div><h2>Defined Under Namespace</h2>
100
- <p class="children">
101
-
102
-
103
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Types/BaseTypes.html" title="EnvParser::Types::BaseTypes (module)">BaseTypes</a></span>, <span class='object_link'><a href="Types/ChronologyTypes.html" title="EnvParser::Types::ChronologyTypes (module)">ChronologyTypes</a></span>, <span class='object_link'><a href="Types/InternetTypes.html" title="EnvParser::Types::InternetTypes (module)">InternetTypes</a></span>
104
-
105
-
106
-
107
-
108
- </p>
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
- </div>
119
-
120
- <div id="footer">
121
- Generated on Mon Jun 9 14:00:25 2025 by
122
- <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
123
- 0.9.37 (ruby-3.4.2).
124
- </div>
125
-
126
- </div>
127
- </body>
128
- </html>