numaflow_ruby 0.1.17-x86_64-linux

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: fc4c04a2fb53b4e99af36defa6d16ce2e3c39b4f89f6c8a5248ccfdb476360a4
4
+ data.tar.gz: 39a12b5adfc3dea820662b5f60a82ccfd9a2f2a2cb4f89768b1b3653ccaddb20
5
+ SHA512:
6
+ metadata.gz: 4686a622a171242b2539a8e7643164466f14272dd54ed9dc5e7f3492fb36401a1f4024c15d82399da364b76a0b74d595674e62ffd7299fa5e8f7978e0c8b0819
7
+ data.tar.gz: f77c432092334ddb50570f2eeaa4b9fa0434d8aab36af1ebc6a5365f9cda8ddc319d3e58c49c8ae6e2f625e2ee63b40157df4b3c914a8592f460024a7efe438b
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.0
3
+
4
+ Style/StringLiterals:
5
+ EnforcedStyle: double_quotes
6
+
7
+ Style/StringLiteralsInInterpolation:
8
+ EnforcedStyle: double_quotes
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]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NumaflowRuby
4
+ VERSION = "0.1.17"
5
+ end
@@ -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
@@ -0,0 +1,4 @@
1
+ module NumaflowRuby
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: numaflow_ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.17
5
+ platform: x86_64-linux
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
+ requirements: []
83
+ rubygems_version: 3.5.23
84
+ signing_key:
85
+ specification_version: 4
86
+ summary: Ruby bindings for numaflow sdk
87
+ test_files: []