nng-ruby 0.1.2 → 1.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 +4 -4
- data/CHANGELOG.md +78 -45
- data/Gemfile +10 -10
- data/LICENSE +21 -21
- data/README.md +1201 -1200
- data/Rakefile +22 -22
- data/examples/pair.rb +48 -48
- data/examples/protobuf_advanced.rb +322 -322
- data/examples/protobuf_demo.rb +340 -340
- data/examples/protobuf_example.rb +374 -374
- data/examples/protobuf_simple.rb +191 -191
- data/examples/protobuf_thread.rb +236 -236
- data/examples/pubsub.rb +51 -51
- data/examples/reqrep.rb +54 -54
- data/ext/nng/extconf.rb +80 -71
- data/ext/nng/libnng.so.1.11.0 +0 -0
- data/ext/nng/nng.dll +0 -0
- data/lib/nng/errors.rb +48 -48
- data/lib/nng/ffi.rb +508 -445
- data/lib/nng/message.rb +151 -151
- data/lib/nng/protocols.rb +96 -96
- data/lib/nng/socket.rb +196 -196
- data/lib/nng/version.rb +5 -5
- data/lib/nng.rb +52 -52
- data/nng.gemspec +67 -67
- metadata +5 -4
- data/ext/nng/libnng.so.1.8.0 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 294401d152a59713f0ffd4780363fe6ecdfd60ab124d87552a6565211cce14cb
|
4
|
+
data.tar.gz: 643fb30feced099af0683db7d2a22c73e48d7869e2b06e0d81c8fdb3ecb18be8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 168b3a96ce98f65934acb677f736f20f98ea7decbf505052067bad12201aeb5d220fdd7e80a4ed5393836068630a7a06c1678e02816e8e33b68e254bfb74ffc0
|
7
|
+
data.tar.gz: 67c470686f1c6ffad6888d1f6bb127f0ea48063b682e4ddaf625d30560de548eb8a5fa4581836f630a9532c13ce3926357cba754ae3a330b14d13256474c3614
|
data/CHANGELOG.md
CHANGED
@@ -1,45 +1,78 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
All notable changes to this project will be documented in this file.
|
4
|
-
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
-
|
8
|
-
## [0.1
|
9
|
-
|
10
|
-
###
|
11
|
-
-
|
12
|
-
-
|
13
|
-
|
14
|
-
## [
|
15
|
-
|
16
|
-
### Added
|
17
|
-
-
|
18
|
-
-
|
19
|
-
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
-
|
45
|
-
-
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [1.0.1] - 2025-10-10
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
- Include bundled library files (nng.dll, libnng.so.1.11.0) in gem package
|
12
|
+
- Gem now works out-of-the-box on Windows and Linux without manual configuration
|
13
|
+
|
14
|
+
## [1.0.0] - 2025-10-10
|
15
|
+
|
16
|
+
### Added
|
17
|
+
- Windows platform support with bundled nng.dll
|
18
|
+
- macOS platform support (ready for libnng.dylib)
|
19
|
+
- Dynamic library version detection via `nng_version()` API
|
20
|
+
- Automatic platform detection and library path resolution
|
21
|
+
- Windows test suite (test_windows.rb, test_windows_full.rb)
|
22
|
+
|
23
|
+
### Changed
|
24
|
+
- **BREAKING**: Upgraded bundled NNG library from v1.8.0 to v1.11.0
|
25
|
+
- Refactored library loading logic for cross-platform compatibility
|
26
|
+
- Updated `NNG.lib_version` to use runtime version detection
|
27
|
+
- Library search paths now platform-aware (.dll/.dylib/.so)
|
28
|
+
- Updated all documentation to reflect v1.11.0 and cross-platform support
|
29
|
+
|
30
|
+
### Infrastructure
|
31
|
+
- Cross-platform support (Windows/macOS/Linux)
|
32
|
+
- Platform-specific bundled libraries
|
33
|
+
- Enhanced error messages with platform-specific guidance
|
34
|
+
|
35
|
+
## [0.1.2] - 2025-10-10
|
36
|
+
|
37
|
+
### Added
|
38
|
+
- Protocol Buffers integration documentation
|
39
|
+
- Enhanced README with detailed usage examples
|
40
|
+
|
41
|
+
## [0.1.1] - 2025-10-03
|
42
|
+
|
43
|
+
### Changed
|
44
|
+
- Published to GitHub repository
|
45
|
+
- Updated gem packaging to include source code
|
46
|
+
|
47
|
+
## [0.1.0] - 2025-10-03
|
48
|
+
|
49
|
+
### Added
|
50
|
+
- Initial release of NNG Ruby bindings
|
51
|
+
- Complete FFI bindings for NNG 1.8.0 (libnng 1.9.0)
|
52
|
+
- Support for all scalability protocols:
|
53
|
+
- Pair (pair0, pair1)
|
54
|
+
- Push/Pull (push0, pull0)
|
55
|
+
- Pub/Sub (pub0, sub0)
|
56
|
+
- Req/Rep (req0, rep0)
|
57
|
+
- Surveyor/Respondent (surveyor0, respondent0)
|
58
|
+
- Bus (bus0)
|
59
|
+
- Support for all transports:
|
60
|
+
- TCP
|
61
|
+
- IPC
|
62
|
+
- Inproc
|
63
|
+
- WebSocket
|
64
|
+
- TLS
|
65
|
+
- High-level Ruby API with automatic resource management
|
66
|
+
- Message-based communication (NNG::Message)
|
67
|
+
- Socket options and configuration
|
68
|
+
- Comprehensive error handling
|
69
|
+
- Bundled libnng shared library (no external dependencies)
|
70
|
+
- Full async I/O support
|
71
|
+
- Complete documentation and examples
|
72
|
+
- RSpec test suite
|
73
|
+
|
74
|
+
### Infrastructure
|
75
|
+
- Gem packaging with bundled shared library
|
76
|
+
- CI/CD ready structure
|
77
|
+
- YARD documentation support
|
78
|
+
- Example programs for all protocols
|
data/Gemfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source 'https://rubygems.org'
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in nng.gemspec
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
gem 'rake', '~> 13.0'
|
9
|
-
gem 'rspec', '~> 3.0'
|
10
|
-
gem 'yard', '~> 0.9'
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in nng.gemspec
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem 'rake', '~> 13.0'
|
9
|
+
gem 'rspec', '~> 3.0'
|
10
|
+
gem 'yard', '~> 0.9'
|
data/LICENSE
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2025 Claude Code
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Claude Code
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|