p99-ruby 0.0.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 98525c2aea216fa55b3be0d0e7310ce4a075dbd7281e69fa03197b1089f833ed
4
+ data.tar.gz: e4d6eb852729b60ee302aa493bcb1b95b49dc9385e17e6d023b03b858b4db856
5
+ SHA512:
6
+ metadata.gz: 7e760fc7a8f737cd64c67bc11abe774a1b91ac99dce2d7eac3635159cdd949e329e8cbafc3a229ec079e3339c9516a9e5af4f734512749770287057824a11779
7
+ data.tar.gz: 39bb4e4b7fa3bf928ea3e807e8fa73532cf3d0ac86032160d9de239ff65b6d02443528c78f41581df7a46bcfa5b667abdf8475efc9317471fed530d48cd90ed8
data/LICENSE ADDED
@@ -0,0 +1,31 @@
1
+ p99.Ruby - BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Matthew Wilson and Synesis Information Systems
4
+
5
+ All rights reserved.
6
+
7
+ Redistribution and use in source and binary forms, with or without
8
+ modification, are permitted provided that the following conditions are met:
9
+
10
+ 1. Redistributions of source code must retain the above copyright notice,
11
+ this list of conditions and the following disclaimer.
12
+
13
+ 2. Redistributions in binary form must reproduce the above copyright notice,
14
+ this list of conditions and the following disclaimer in the documentation
15
+ and/or other materials provided with the distribution.
16
+
17
+ 3. Neither the name of the copyright holder nor the names of its
18
+ contributors may be used to endorse or promote products derived from
19
+ this software without specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
25
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
+ POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # p99.Ruby <!-- omit in toc -->
2
+
3
+ Low-cost generation of performance percentiles (p50, p90, p99, p99.9, etc.), for Ruby
4
+
5
+
6
+ ![Language](https://img.shields.io/badge/Ruby-CC342D?style=flat&logo=ruby&logoColor=white)
7
+ [![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
8
+ [![GitHub release](https://img.shields.io/github/v/release/synesissoftware/p99.Ruby.svg)](https://github.com/synesissoftware/p99.Ruby/releases/latest)
9
+ [![Last Commit](https://img.shields.io/github/last-commit/synesissoftware/p99.Ruby)](https://github.com/synesissoftware/p99.Ruby/commits/master)
10
+ [![Gem Version](https://badge.fury.io/rb/p99-ruby.svg)](https://badge.fury.io/rb/p99-ruby)
11
+ [![Ruby](https://github.com/synesissoftware/p99.Ruby/actions/workflows/ruby.yml/badge.svg)](https://github.com/synesissoftware/p99.Ruby/actions/workflows/ruby.yml)
12
+
13
+
14
+ ## Table of Contents <!-- omit in toc -->
15
+
16
+ - [Introduction](#introduction)
17
+ - [Installation](#installation)
18
+ - [Components](#components)
19
+ - [Project Information](#project-information)
20
+ - [Where to get help](#where-to-get-help)
21
+ - [Contribution guidelines](#contribution-guidelines)
22
+ - [Dependencies](#dependencies)
23
+ - [Development Dependencies](#development-dependencies)
24
+ - [Related projects](#related-projects)
25
+ - [License](#license)
26
+
27
+
28
+ ## Introduction
29
+
30
+ **p99** is a lightweight, low-overhead library designed for generating real-time performance percentiles in high-frequency or latency-sensitive environments.
31
+
32
+ **p99.Ruby** is the **Ruby** implementation.
33
+
34
+
35
+ ## Installation
36
+
37
+ Install via **gem** as in:
38
+
39
+ ```
40
+ gem install p99-ruby
41
+ ```
42
+
43
+ or add it to your `Gemfile`.
44
+
45
+ Use via **require**, as in:
46
+
47
+ ```Ruby
48
+ require 'p99'
49
+ ```
50
+
51
+
52
+ ## Components
53
+
54
+ T.B.C.
55
+
56
+
57
+ ## Project Information
58
+
59
+
60
+ ### Where to get help
61
+
62
+ [GitHub Page](https://github.com/synesissoftware/p99.Ruby "GitHub Page")
63
+
64
+
65
+ ### Contribution guidelines
66
+
67
+ Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/p99.Ruby.
68
+
69
+
70
+ ### Dependencies
71
+
72
+ * \<none>
73
+
74
+
75
+ #### Development Dependencies
76
+
77
+ * [**xqsr3**](https://github.com/synesissoftware/xqsr3/)
78
+
79
+
80
+ ### Related projects
81
+
82
+ * [**p99**](https://github.com/synesissoftware/p99/)
83
+ * [**p99.Go**](https://github.com/synesissoftware/p99.Go/)
84
+ * [**p99.NET**](https://github.com/synesissoftware/p99.NET/)
85
+ * [**p99.Python**](https://github.com/synesissoftware/p99.Python/)
86
+ * [**p99.Rust**](https://github.com/synesissoftware/p99.Rust/)
87
+ * [**p99.Zig**](https://github.com/synesissoftware/p99.Zig/)
88
+
89
+
90
+ ### License
91
+
92
+ **p99.Ruby** is released under the 3-clause BSD license. See [LICENSE](./LICENSE) for details.
93
+
94
+
95
+ <!-- ########################### end of file ########################### -->
data/Rakefile ADDED
@@ -0,0 +1,18 @@
1
+ # Rakefile for p99.Ruby
2
+
3
+ require 'rake/testtask'
4
+
5
+
6
+ Rake::TestTask.new do |tt|
7
+
8
+ tt.libs << "lib"
9
+ tt.name = "test"
10
+ tt.test_files = FileList['test/**/tc_*.rb']
11
+ tt.verbose = true
12
+ end
13
+
14
+
15
+ task :default => :test
16
+
17
+
18
+ # ############################## end of file ############################# #
@@ -0,0 +1,68 @@
1
+
2
+ # ######################################################################## #
3
+ # File: p99/version.rb
4
+ #
5
+ # Purpose: Version for p99.Ruby library
6
+ #
7
+ # Created: 4th August 2026
8
+ # Updated: 4th August 2026
9
+ #
10
+ # Home: http://github.com/synesissoftware/p99.Ruby
11
+ #
12
+ # Author: Matthew Wilson
13
+ #
14
+ # Copyright (c) 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 holder 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 P99
51
+
52
+ # Current version of the p99.Ruby library
53
+ VERSION = '0.0.0'
54
+
55
+ private
56
+ # @!visibility private
57
+ VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
58
+ public
59
+ # Major version of the p99.Ruby library
60
+ VERSION_MAJOR = VERSION_PARTS_[0] # :nodoc:
61
+ # Minor version of the p99.Ruby library
62
+ VERSION_MINOR = VERSION_PARTS_[1] # :nodoc:
63
+ # Revision version of the p99.Ruby library
64
+ VERSION_REVISION = VERSION_PARTS_[2] # :nodoc:
65
+ end # module P99
66
+
67
+
68
+ # ############################## end of file ############################# #
data/lib/p99.rb ADDED
@@ -0,0 +1,59 @@
1
+
2
+ # ######################################################################## #
3
+ # File: p99.rb
4
+ #
5
+ # Purpose: Primary require for p99.Ruby library
6
+ #
7
+ # Created: 4th August 2026
8
+ # Updated: 4th August 2026
9
+ #
10
+ # Home: http://github.com/synesissoftware/p99.Ruby
11
+ #
12
+ # Author: Matthew Wilson
13
+ #
14
+ # Copyright (c) 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 holder 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
+ ## Root module for *p99*
51
+ module P99
52
+
53
+ end # module P99
54
+
55
+
56
+ require 'p99/version'
57
+
58
+
59
+ # ############################## end of file ############################# #
@@ -0,0 +1,37 @@
1
+ #! /usr/bin/env ruby
2
+
3
+ $:.unshift File.join(File.dirname(__FILE__), '../../lib')
4
+
5
+
6
+ require 'p99/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? P99::VERSION
16
+ end
17
+
18
+ def test_has_VERSION_MAJOR
19
+
20
+ assert defined? P99::VERSION_MAJOR
21
+ end
22
+
23
+ def test_has_VERSION_MINOR
24
+
25
+ assert defined? P99::VERSION_MINOR
26
+ end
27
+
28
+ def test_has_VERSION_REVISION
29
+
30
+ assert defined? P99::VERSION_REVISION
31
+ end
32
+
33
+ def test_VERSION_has_consistent_format
34
+
35
+ assert_equal P99::VERSION.split('.')[0..2].join('.'), "#{P99::VERSION_MAJOR}.#{P99::VERSION_MINOR}.#{P99::VERSION_REVISION}"
36
+ end
37
+ end
@@ -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,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: p99-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Matt Wilson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-08-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: xqsr3
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.39'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.39.4
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.39'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.39.4
33
+ description: |
34
+ Low-cost generation of performance percentiles (p50, p90, p99, p99.9, etc.), for Ruby.
35
+
36
+ p99.Ruby is the Ruby implementation of the p99 family of libraries.
37
+ email: matthew@synesis.com.au
38
+ executables: []
39
+ extensions: []
40
+ extra_rdoc_files: []
41
+ files:
42
+ - LICENSE
43
+ - README.md
44
+ - Rakefile
45
+ - lib/p99.rb
46
+ - lib/p99/version.rb
47
+ - test/unit/tc_version.rb
48
+ - test/unit/ts_all.rb
49
+ homepage: http://github.com/synesissoftware/p99.Ruby
50
+ licenses:
51
+ - BSD-3-Clause
52
+ metadata: {}
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '4'
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubyforge_project:
72
+ rubygems_version: 2.7.6.3
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: p99.Ruby
76
+ test_files: []