numaflow_ruby 0.1.0-x86_64-linux-musl
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/.rspec +3 -0
- data/.rubocop.yml +8 -0
- data/README.md +58 -0
- data/Rakefile +22 -0
- data/lib/numaflow_ruby/3.3/numaflow_ruby.so +0 -0
- data/lib/numaflow_ruby/3.4/numaflow_ruby.so +0 -0
- data/lib/numaflow_ruby/version.rb +5 -0
- data/lib/numaflow_ruby.rb +24 -0
- data/sig/numaflow_ruby.rbs +4 -0
- metadata +90 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 214b23179906e977abedf24cb0dc3c064bbada8305fa9a2d6092d5a4bc35ca4a
|
4
|
+
data.tar.gz: f106f79e56d339da8e947594e2db8a8df025950da562ee6135dff523a6b82977
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ab1cf39ea4c97fa92674a0bdbf7eb1e1dc3b1167a8ef5ef875b5754ca09c2b6df43fb689f3485a0aff3344255beea688ad31ed0497aa7ec805abeb7170f3cbc3
|
7
|
+
data.tar.gz: 6bc2aff0f7712814d973612a796c185d9db50200c0d1b61c6c632106af75b91268d6e8f0efa8acbf1aa06dd20d787fa71e802176f16691c98618e79df671392e
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/README.md
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# NumaflowRuby
|
2
|
+
|
3
|
+
TODO: Delete this and the text below, and describe your gem
|
4
|
+
|
5
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/numaflow_ruby`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
+
|
11
|
+
Install the gem and add to the application's Gemfile by executing:
|
12
|
+
|
13
|
+
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
14
|
+
|
15
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
+
|
17
|
+
$ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Development
|
24
|
+
|
25
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
+
|
27
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
28
|
+
|
29
|
+
## Versioning
|
30
|
+
|
31
|
+
This project uses semantic versioning and automatic version bumping based on commit messages. When code is pushed to the main branch, the CI workflow analyzes commit messages and automatically bumps the version according to semantic versioning rules.
|
32
|
+
|
33
|
+
### Commit Message Format
|
34
|
+
|
35
|
+
Follow these conventions in your commit messages to trigger the appropriate version bump:
|
36
|
+
|
37
|
+
- `feat: ...` or `feature: ...` - Adds a new feature (minor version bump)
|
38
|
+
- `fix: ...` - Fixes a bug (patch version bump)
|
39
|
+
- `perf: ...` - Performance improvement (patch version bump)
|
40
|
+
- `docs: ...` - Documentation only changes (no version bump)
|
41
|
+
- `style: ...` - Code style changes (no version bump)
|
42
|
+
- `refactor: ...` - Code refactoring (no version bump)
|
43
|
+
- `test: ...` - Adding or updating tests (no version bump)
|
44
|
+
- `chore: ...` - Maintenance tasks (no version bump)
|
45
|
+
|
46
|
+
To trigger a major version bump (breaking change), include `BREAKING CHANGE:` in the commit body or append `!` to the type:
|
47
|
+
|
48
|
+
```
|
49
|
+
feat!: add new API that breaks backward compatibility
|
50
|
+
|
51
|
+
BREAKING CHANGE: detailed explanation of the breaking change
|
52
|
+
```
|
53
|
+
|
54
|
+
The version will be automatically updated in `version.rb`, and a new git tag will be created and pushed to the repository. The gem will then be published to [rubygems.org](https://rubygems.org).
|
55
|
+
|
56
|
+
## Contributing
|
57
|
+
|
58
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/numaflow_ruby.
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rspec/core/rake_task"
|
5
|
+
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
7
|
+
|
8
|
+
require "rubocop/rake_task"
|
9
|
+
|
10
|
+
RuboCop::RakeTask.new
|
11
|
+
|
12
|
+
require "rb_sys/extensiontask"
|
13
|
+
|
14
|
+
task build: :compile
|
15
|
+
|
16
|
+
GEMSPEC = Gem::Specification.load("numaflow_ruby.gemspec")
|
17
|
+
|
18
|
+
RbSys::ExtensionTask.new("numaflow_ruby", GEMSPEC) do |ext|
|
19
|
+
ext.lib_dir = "lib/numaflow_ruby"
|
20
|
+
end
|
21
|
+
|
22
|
+
task default: %i[compile spec rubocop]
|
Binary file
|
Binary file
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "numaflow_ruby/version"
|
4
|
+
require_relative "numaflow_ruby/numaflow_ruby"
|
5
|
+
|
6
|
+
# NumaflowRuby is a Ruby wrapper for Numaflow rust library, allowing you to create map servers in Ruby.
|
7
|
+
module NumaflowRuby
|
8
|
+
class Error < StandardError; end
|
9
|
+
|
10
|
+
def self.start_map_server(map_handler) # rubocop:disable Metrics/MethodLength
|
11
|
+
Thread.new do
|
12
|
+
msg_source = NumaflowRuby.rust_start_map_server
|
13
|
+
loop do
|
14
|
+
val, responder = NumaflowRuby.rust_get_next_message(msg_source)
|
15
|
+
begin
|
16
|
+
result = map_handler.call(val)
|
17
|
+
NumaflowRuby.rust_respond_to_message(result, responder)
|
18
|
+
rescue StandardError
|
19
|
+
Kernel.exit 1
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: numaflow_ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: x86_64-linux-musl
|
6
|
+
authors:
|
7
|
+
- Kyle Cooke
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-08-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake-compiler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake-compiler-dock
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Ruby bindings for numaflow sdk
|
42
|
+
email:
|
43
|
+
- kyle@playerdata.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".rspec"
|
49
|
+
- ".rubocop.yml"
|
50
|
+
- README.md
|
51
|
+
- Rakefile
|
52
|
+
- lib/numaflow_ruby.rb
|
53
|
+
- lib/numaflow_ruby/3.3/numaflow_ruby.so
|
54
|
+
- lib/numaflow_ruby/3.4/numaflow_ruby.so
|
55
|
+
- lib/numaflow_ruby/version.rb
|
56
|
+
- sig/numaflow_ruby.rbs
|
57
|
+
homepage: https://github.com/PlayerData/numaflow_ruby
|
58
|
+
licenses:
|
59
|
+
- MIT
|
60
|
+
metadata:
|
61
|
+
allowed_push_host: https://rubygems.org
|
62
|
+
homepage_uri: https://github.com/PlayerData/numaflow_ruby
|
63
|
+
source_code_uri: https://github.com/PlayerData/numaflow_ruby
|
64
|
+
changelog_uri: https://github.com/PlayerData/numaflow_ruby/tree/CHANGELOG.md
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '3.3'
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 3.5.dev
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 3.3.11
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 3.3.22
|
85
|
+
requirements: []
|
86
|
+
rubygems_version: 3.5.23
|
87
|
+
signing_key:
|
88
|
+
specification_version: 4
|
89
|
+
summary: Ruby bindings for numaflow sdk
|
90
|
+
test_files: []
|