quench-ruby 0.0.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 +7 -0
- data/AUTHORS.md +21 -0
- data/CHANGES.md +20 -0
- data/CONTRIBUTING.md +36 -0
- data/EXAMPLES.md +6 -0
- data/FAQ.md +27 -0
- data/INSTALL.md +41 -0
- data/LICENSE +30 -0
- data/NEWS.md +9 -0
- data/README.md +127 -0
- data/Rakefile +21 -0
- data/SECURITY.md +22 -0
- data/TODO.md +23 -0
- data/lib/quench/version.rb +67 -0
- data/lib/quench.rb +54 -0
- data/test/unit/tc_version.rb +37 -0
- data/test/unit/ts_all.rb +11 -0
- metadata +67 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a47a68f2482bbd2ff310e98d918b947114d4511fa81188d2bf33d70850208fb2
|
|
4
|
+
data.tar.gz: e74fb3a300f398ba436bc781093db2e92cba2ac907551d1fad1bab8bce8721d5
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 208a981ca2c3fe80a868d1b3b12287d7887f1f80df4a4edb00d661602eb552ea0f57d7f4b1a93ada185b9057109e8634f440bab7d76a7541c961666f36f81d20
|
|
7
|
+
data.tar.gz: e9cbe724f9eef9a51f63d32befa9c060605b7b3d78a731474ab10d088a05ae40b290565eb64bc474999fee41892552ce38e64f580f7865abd3aeed590bb3c4b8
|
data/AUTHORS.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Quench.Ruby - Authors <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Major Contributors
|
|
5
|
+
|
|
6
|
+
| Name | GitHub |
|
|
7
|
+
| ----------- | --------------------------------- |
|
|
8
|
+
| Matt Wilson | [mwsis](https://github.com/mwsis) |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Defect reports, fixes and suggestions (for which we are very grateful)
|
|
12
|
+
|
|
13
|
+
| Name | GitHub |
|
|
14
|
+
| ----------- | --------------------------------- |
|
|
15
|
+
| \<none> | |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Contributions are welcomed.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<!-- ########################### end of file ########################### -->
|
data/CHANGES.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Quench.Ruby - Changes <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## 0.0.1 - 19th August 2026
|
|
5
|
+
|
|
6
|
+
* initial gold-standard packaging: **Gemfile**, **quench-ruby.gemspec**, **Rakefile**, GitHub Actions **ruby.yml**, **.sis**, **.editorconfig**, **.gitattributes**, **.gitignore**, helper scripts, and the Synesis markdown set;
|
|
7
|
+
* stub library surface: `Quench` module and **VERSION** constants (`lib/quench.rb`, `lib/quench/version.rb`);
|
|
8
|
+
* **quench-ruby.gemspec**: `spec.name` is `quench-ruby` (the name `quench` is taken on RubyGems); `required_ruby_version` is the range `>= 2.0`; **Gemfile.lock** and **.ruby-version** excluded from `spec.files`; `spec.summary` matches the README tagline; packaged **AUTHORS**, **CHANGES**, **CONTRIBUTING**, **EXAMPLES**, **FAQ**, **INSTALL**, **NEWS**, **SECURITY**, **TODO**;
|
|
9
|
+
* **Gemfile** sets `lockfile false` when Bundler supports it; do not track **Gemfile.lock**;
|
|
10
|
+
* CI uses `bundler-cache: false` and explicit `bundle install`; **Warnings** job on Ruby **3.4**; `gem build quench-ruby.gemspec`;
|
|
11
|
+
* added **run_all_unit_tests.sh** (from https://github.com/synesissoftware/misc-dev-scripts) that skips **tput** when **$TERM** is unset or stdout is not a TTY;
|
|
12
|
+
* **LICENSE** copyright holder filled in (Matthew Wilson and Synesis Information Systems, 2018–2026);
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.0.0 - 3rd August 2018
|
|
16
|
+
|
|
17
|
+
* initial commit;
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
<!-- ########################### end of file ########################### -->
|
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Quench.Ruby - Contributing <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Table of Contents <!-- omit in toc -->
|
|
5
|
+
|
|
6
|
+
- [Defects and features](#defects-and-features)
|
|
7
|
+
- [Pull requests](#pull-requests)
|
|
8
|
+
- [Tests](#tests)
|
|
9
|
+
- [License](#license)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Defects and features
|
|
13
|
+
|
|
14
|
+
Open an issue on https://github.com/synesissoftware/Quench.Ruby/issues.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Pull requests
|
|
18
|
+
|
|
19
|
+
Pull requests are welcome on https://github.com/synesissoftware/Quench.Ruby. Keep diffs local to the change; match existing indentation (2 spaces in Ruby) and the Synesis markdown set (**README.md**, **CHANGES.md**, **NEWS.md**, **TODO.md**, **INSTALL.md**, **CONTRIBUTING.md**, **SECURITY.md**).
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Tests
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
bundle exec rake test
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
or `./run_all_unit_tests.sh`.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
Contributions are accepted under the 3-clause BSD license. See [LICENSE](./LICENSE).
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
<!-- ########################### end of file ########################### -->
|
data/EXAMPLES.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Quench.Ruby - Examples <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
No example programs yet: the library currently ships as a stub (`Quench` + `VERSION` only). Examples will be added under [./examples/](./examples/) when the quenching API is implemented.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!-- ########################### end of file ########################### -->
|
data/FAQ.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Quench.Ruby - FAQ <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
The FAQ list is under (constant) development. If you post a question on the
|
|
4
|
+
[Issues](https://github.com/synesissoftware/Quench.Ruby/issues) forum
|
|
5
|
+
it will be used to create one.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Table of Contents <!-- omit in toc -->
|
|
9
|
+
|
|
10
|
+
- [Q1: "How do I install this library?"](#q1-how-do-i-install-this-library)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# FAQs: <!-- omit in toc -->
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Q1: "How do I install this library?"
|
|
17
|
+
|
|
18
|
+
Install via **gem**:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
gem install quench-ruby
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
See [README.md](./README.md) for usage.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<!-- ########################### end of file ########################### -->
|
data/INSTALL.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Quench.Ruby - Installation and Use <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Table of Contents <!-- omit in toc -->
|
|
5
|
+
|
|
6
|
+
- [Install the gem](#install-the-gem)
|
|
7
|
+
- [From a source checkout](#from-a-source-checkout)
|
|
8
|
+
- [Using the library](#using-the-library)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Install the gem
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
gem install quench-ruby
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
or add to a **Gemfile**:
|
|
18
|
+
|
|
19
|
+
```Ruby
|
|
20
|
+
gem 'quench-ruby'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
then `bundle install`.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## From a source checkout
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
bundle install
|
|
30
|
+
bundle exec rake test
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## Using the library
|
|
35
|
+
|
|
36
|
+
```Ruby
|
|
37
|
+
require 'quench'
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
<!-- ########################### end of file ########################### -->
|
data/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Quench.Ruby - BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018-2026, Matthew Wilson and Synesis Information Systems
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
10
|
+
this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
23
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
24
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
25
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
26
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
27
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
28
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
29
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
30
|
+
POSSIBILITY OF SUCH DAMAGE.
|
data/NEWS.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Quench.Ruby - News <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
| Date | News Item |
|
|
4
|
+
| ---------------- | ------------------------------------------------------------------------------------------ |
|
|
5
|
+
| 19th August 2026 | [**Quench.Ruby** 0.0.1](https://github.com/synesissoftware/Quench.Ruby/releases/tag/0.0.1) |
|
|
6
|
+
| 3rd August 2018 | **Quench.Ruby** 0.0.0 released |
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<!-- ########################### end of file ########################### -->
|
data/README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Quench.Ruby <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
Customisable exception-quenching library, for Ruby
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
7
|
+
[](https://badge.fury.io/rb/quench-ruby)
|
|
8
|
+
[](https://github.com/synesissoftware/Quench.Ruby/commits/master)
|
|
9
|
+
[](https://github.com/synesissoftware/Quench.Ruby/actions/workflows/ruby.yml)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Table of Contents <!-- omit in toc -->
|
|
13
|
+
|
|
14
|
+
- [Introduction](#introduction)
|
|
15
|
+
- [Installation](#installation)
|
|
16
|
+
- [Components](#components)
|
|
17
|
+
- [Examples](#examples)
|
|
18
|
+
- [Project Information](#project-information)
|
|
19
|
+
- [Where to get help](#where-to-get-help)
|
|
20
|
+
- [Contribution guidelines](#contribution-guidelines)
|
|
21
|
+
- [Dependencies](#dependencies)
|
|
22
|
+
- [Efferent (fan-out)](#efferent-fan-out)
|
|
23
|
+
- [Runtime Dependencies (aka "Normal Dependencies")](#runtime-dependencies-aka-normal-dependencies)
|
|
24
|
+
- [Development Dependencies](#development-dependencies)
|
|
25
|
+
- [Afferent (fan-in)](#afferent-fan-in)
|
|
26
|
+
- [Runtime dependents](#runtime-dependents)
|
|
27
|
+
- [Development dependents](#development-dependents)
|
|
28
|
+
- [Related projects](#related-projects)
|
|
29
|
+
- [License](#license)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## Introduction
|
|
33
|
+
|
|
34
|
+
**Quench** provides customisable exception-quenching utilities. **Quench.Ruby** is the **Ruby** implementation.
|
|
35
|
+
|
|
36
|
+
The library currently ships as a stub: the `Quench` module and version constants only. The quenching API is not yet implemented.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## Installation
|
|
40
|
+
|
|
41
|
+
Install via **gem** as in:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
gem install quench-ruby
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
or add it to your `Gemfile`.
|
|
48
|
+
|
|
49
|
+
**Quench.Ruby** requires Ruby **2.0+**.
|
|
50
|
+
|
|
51
|
+
Use via **require**, as in:
|
|
52
|
+
|
|
53
|
+
```Ruby
|
|
54
|
+
require 'quench'
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## Components
|
|
59
|
+
|
|
60
|
+
* **`Quench`** — top-level namespace;
|
|
61
|
+
* **`Quench::VERSION`** — library version string;
|
|
62
|
+
* **`Quench::VERSION_MAJOR`**, **`Quench::VERSION_MINOR`**, **`Quench::VERSION_REVISION`** — version parts;
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## Examples
|
|
66
|
+
|
|
67
|
+
The library currently ships as a stub, so there are no worked examples yet. See [EXAMPLES.md](./EXAMPLES.md).
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## Project Information
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Where to get help
|
|
74
|
+
|
|
75
|
+
[GitHub Page](https://github.com/synesissoftware/Quench.Ruby "GitHub Page")
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Contribution guidelines
|
|
79
|
+
|
|
80
|
+
Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/Quench.Ruby.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Dependencies
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
#### Efferent (fan-out)
|
|
87
|
+
|
|
88
|
+
Libraries upon which **Quench.Ruby** depends:
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
##### Runtime Dependencies (aka "Normal Dependencies")
|
|
92
|
+
|
|
93
|
+
* \<none>;
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
##### Development Dependencies
|
|
97
|
+
|
|
98
|
+
* [**rake**](https://rubygems.org/gems/rake);
|
|
99
|
+
* [**test-unit**](https://rubygems.org/gems/test-unit);
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
#### Afferent (fan-in)
|
|
103
|
+
|
|
104
|
+
Projects that depend on **Quench.Ruby**:
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
##### Runtime dependents
|
|
108
|
+
|
|
109
|
+
* \<none>;
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
##### Development dependents
|
|
113
|
+
|
|
114
|
+
* \<none>;
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Related projects
|
|
118
|
+
|
|
119
|
+
* \<none>;
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### License
|
|
123
|
+
|
|
124
|
+
**Quench.Ruby** is released under the 3-clause BSD license. See [LICENSE](./LICENSE) for details.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
<!-- ########################### end of file ########################### -->
|
data/Rakefile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Rakefile for Quench.Ruby
|
|
4
|
+
|
|
5
|
+
require 'rake/testtask'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Rake::TestTask.new do |tt|
|
|
9
|
+
|
|
10
|
+
tt.libs << 'lib'
|
|
11
|
+
tt.libs << 'test'
|
|
12
|
+
tt.name = 'test'
|
|
13
|
+
tt.test_files = FileList['test/**/tc_*.rb']
|
|
14
|
+
tt.verbose = true
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
task :default => :test
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# ############################## end of file ############################# #
|
data/SECURITY.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Quench.Ruby - Security <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Table of Contents <!-- omit in toc -->
|
|
5
|
+
|
|
6
|
+
- [Reporting a vulnerability](#reporting-a-vulnerability)
|
|
7
|
+
- [Supported versions](#supported-versions)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Reporting a vulnerability
|
|
11
|
+
|
|
12
|
+
Please report security issues privately via GitHub Security Advisories on https://github.com/synesissoftware/Quench.Ruby/security, or by opening an issue if an advisory cannot be filed. Do not attach exploit proofs of concept against third-party systems.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Supported versions
|
|
16
|
+
|
|
17
|
+
| Version | Supported |
|
|
18
|
+
| ------- | --------- |
|
|
19
|
+
| 0.0.x | ✅ |
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<!-- ########################### end of file ########################### -->
|
data/TODO.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Quench.Ruby - TODO <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Functional improvements
|
|
5
|
+
|
|
6
|
+
* [ ] implement the exception-quenching API (currently stub: `Quench` + `VERSION` only);
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Performance improvements
|
|
10
|
+
|
|
11
|
+
* \<none
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Packaging improvements
|
|
15
|
+
|
|
16
|
+
* [x] ~~~updated **run_all_unit_tests.sh** (from **misc-dev-scripts**) to skip `tput` when `$TERM` is unset or stdout is not a TTY~~~;
|
|
17
|
+
* [x] ~~~**Gemfile** `lockfile false`; do not track **Gemfile.lock**; CI `bundler-cache: false`~~~;
|
|
18
|
+
* [x] ~~~gemspec polish: README tagline as `spec.summary`, package docs, exclude **Gemfile.lock** / **.ruby-version**; filename stem matches `spec.name` (`quench-ruby`)~~~;
|
|
19
|
+
* [x] ~~~README canonical structure (tagline before badges; **Dependencies**; CI badge → **ruby.yml**)~~~;
|
|
20
|
+
* [x] ~~~after the packaging/boilerplate/CI baseline: bump **VERSION** and align **CHANGES**/**NEWS**~~~;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<!-- ########################### end of file ########################### -->
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# ######################################################################## #
|
|
3
|
+
# File: lib/quench/version.rb
|
|
4
|
+
#
|
|
5
|
+
# Purpose: Version for Quench.Ruby library
|
|
6
|
+
#
|
|
7
|
+
# Created: 19th August 2026
|
|
8
|
+
# Updated: 19th August 2026
|
|
9
|
+
#
|
|
10
|
+
# Home: https://github.com/synesissoftware/Quench.Ruby
|
|
11
|
+
#
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
|
+
#
|
|
14
|
+
# Copyright (c) 2018-2026, Matthew Wilson and Synesis Information Systems
|
|
15
|
+
# All rights reserved.
|
|
16
|
+
#
|
|
17
|
+
# Redistribution and use in source and binary forms, with or without
|
|
18
|
+
# modification, are permitted provided that the following conditions are
|
|
19
|
+
# met:
|
|
20
|
+
#
|
|
21
|
+
# * Redistributions of source code must retain the above copyright
|
|
22
|
+
# notice, this list of conditions and the following disclaimer.
|
|
23
|
+
#
|
|
24
|
+
# * Redistributions in binary form must reproduce the above copyright
|
|
25
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
26
|
+
# documentation and/or other materials provided with the distribution.
|
|
27
|
+
#
|
|
28
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
|
+
# contributors may be used to endorse or promote products derived from
|
|
30
|
+
# this software without specific prior written permission.
|
|
31
|
+
#
|
|
32
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
33
|
+
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
34
|
+
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
35
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
36
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
37
|
+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
38
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
39
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
42
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
+
#
|
|
44
|
+
# ######################################################################## #
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
=begin
|
|
48
|
+
=end
|
|
49
|
+
|
|
50
|
+
module Quench
|
|
51
|
+
|
|
52
|
+
# Current version of the Quench.Ruby library
|
|
53
|
+
VERSION = '0.0.1'
|
|
54
|
+
|
|
55
|
+
private
|
|
56
|
+
VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
|
|
57
|
+
public
|
|
58
|
+
# Major version of the Quench.Ruby library
|
|
59
|
+
VERSION_MAJOR = VERSION_PARTS_[0] # :nodoc:
|
|
60
|
+
# Minor version of the Quench.Ruby library
|
|
61
|
+
VERSION_MINOR = VERSION_PARTS_[1] # :nodoc:
|
|
62
|
+
# Revision version of the Quench.Ruby library
|
|
63
|
+
VERSION_REVISION = VERSION_PARTS_[2] # :nodoc:
|
|
64
|
+
end # module Quench
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# ############################## end of file ############################# #
|
data/lib/quench.rb
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# ######################################################################## #
|
|
3
|
+
# File: quench.rb
|
|
4
|
+
#
|
|
5
|
+
# Purpose: Top-level include for Quench.Ruby library
|
|
6
|
+
#
|
|
7
|
+
# Created: 19th August 2026
|
|
8
|
+
# Updated: 19th August 2026
|
|
9
|
+
#
|
|
10
|
+
# Home: https://github.com/synesissoftware/Quench.Ruby
|
|
11
|
+
#
|
|
12
|
+
# Author: Matthew Wilson
|
|
13
|
+
#
|
|
14
|
+
# Copyright (c) 2018-2026, Matthew Wilson and Synesis Information Systems
|
|
15
|
+
# All rights reserved.
|
|
16
|
+
#
|
|
17
|
+
# Redistribution and use in source and binary forms, with or without
|
|
18
|
+
# modification, are permitted provided that the following conditions are
|
|
19
|
+
# met:
|
|
20
|
+
#
|
|
21
|
+
# * Redistributions of source code must retain the above copyright
|
|
22
|
+
# notice, this list of conditions and the following disclaimer.
|
|
23
|
+
#
|
|
24
|
+
# * Redistributions in binary form must reproduce the above copyright
|
|
25
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
26
|
+
# documentation and/or other materials provided with the distribution.
|
|
27
|
+
#
|
|
28
|
+
# * Neither the names of the copyright holders nor the names of its
|
|
29
|
+
# contributors may be used to endorse or promote products derived from
|
|
30
|
+
# this software without specific prior written permission.
|
|
31
|
+
#
|
|
32
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
33
|
+
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
34
|
+
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
35
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
36
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
37
|
+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
38
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
39
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
42
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
+
#
|
|
44
|
+
# ######################################################################## #
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
=begin
|
|
48
|
+
=end
|
|
49
|
+
|
|
50
|
+
module Quench
|
|
51
|
+
|
|
52
|
+
end # module Quench
|
|
53
|
+
|
|
54
|
+
require 'quench/version'
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#! /usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
$:.unshift File.join(File.dirname(__FILE__), '../../lib')
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
require 'quench/version'
|
|
7
|
+
|
|
8
|
+
require 'test/unit'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Test_version < Test::Unit::TestCase
|
|
12
|
+
|
|
13
|
+
def test_has_VERSION
|
|
14
|
+
|
|
15
|
+
assert defined? Quench::VERSION
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def test_has_VERSION_MAJOR
|
|
19
|
+
|
|
20
|
+
assert defined? Quench::VERSION_MAJOR
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def test_has_VERSION_MINOR
|
|
24
|
+
|
|
25
|
+
assert defined? Quench::VERSION_MINOR
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def test_has_VERSION_REVISION
|
|
29
|
+
|
|
30
|
+
assert defined? Quench::VERSION_REVISION
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def test_VERSION_has_consistent_format
|
|
34
|
+
|
|
35
|
+
assert_equal Quench::VERSION.split('.')[0..2].join('.'), "#{Quench::VERSION_MAJOR}.#{Quench::VERSION_MINOR}.#{Quench::VERSION_REVISION}"
|
|
36
|
+
end
|
|
37
|
+
end
|
data/test/unit/ts_all.rb
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#! /usr/bin/env ruby
|
|
2
|
+
#
|
|
3
|
+
# executes all other tests
|
|
4
|
+
|
|
5
|
+
this_dir = File.expand_path(File.dirname(__FILE__))
|
|
6
|
+
|
|
7
|
+
# all tc_*rb in current directory
|
|
8
|
+
Dir[File.join(this_dir, 'tc_*rb')].each { |file| require file }
|
|
9
|
+
|
|
10
|
+
# all ts_*rb in immediate sub-directories
|
|
11
|
+
Dir[File.join(this_dir, '*', 'ts_*rb')].each { |file| require file }
|
metadata
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: quench-ruby
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Matt Wilson
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-08-27 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: |
|
|
14
|
+
Customisable exception-quenching library, for Ruby. Quench.Ruby currently
|
|
15
|
+
ships as a stub (module and version only); the quenching API is not yet
|
|
16
|
+
implemented.
|
|
17
|
+
email:
|
|
18
|
+
- matthew@synesis.com.au
|
|
19
|
+
executables: []
|
|
20
|
+
extensions: []
|
|
21
|
+
extra_rdoc_files: []
|
|
22
|
+
files:
|
|
23
|
+
- AUTHORS.md
|
|
24
|
+
- CHANGES.md
|
|
25
|
+
- CONTRIBUTING.md
|
|
26
|
+
- EXAMPLES.md
|
|
27
|
+
- FAQ.md
|
|
28
|
+
- INSTALL.md
|
|
29
|
+
- LICENSE
|
|
30
|
+
- NEWS.md
|
|
31
|
+
- README.md
|
|
32
|
+
- Rakefile
|
|
33
|
+
- SECURITY.md
|
|
34
|
+
- TODO.md
|
|
35
|
+
- lib/quench.rb
|
|
36
|
+
- lib/quench/version.rb
|
|
37
|
+
- test/unit/tc_version.rb
|
|
38
|
+
- test/unit/ts_all.rb
|
|
39
|
+
homepage: https://github.com/synesissoftware/Quench.Ruby
|
|
40
|
+
licenses:
|
|
41
|
+
- BSD-3-Clause
|
|
42
|
+
metadata:
|
|
43
|
+
bug_tracker_uri: https://github.com/synesissoftware/Quench.Ruby/issues
|
|
44
|
+
changelog_uri: https://github.com/synesissoftware/Quench.Ruby/blob/master/CHANGES.md
|
|
45
|
+
homepage_uri: https://github.com/synesissoftware/Quench.Ruby
|
|
46
|
+
source_code_uri: https://github.com/synesissoftware/Quench.Ruby
|
|
47
|
+
post_install_message:
|
|
48
|
+
rdoc_options: []
|
|
49
|
+
require_paths:
|
|
50
|
+
- lib
|
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - ">="
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '2.0'
|
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0'
|
|
61
|
+
requirements: []
|
|
62
|
+
rubyforge_project:
|
|
63
|
+
rubygems_version: 2.7.6.3
|
|
64
|
+
signing_key:
|
|
65
|
+
specification_version: 4
|
|
66
|
+
summary: Customisable exception-quenching library, for Ruby
|
|
67
|
+
test_files: []
|