restate-sdk 0.4.3 → 0.4.4
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/Cargo.lock +1 -1
- data/README.md +22 -10
- data/ext/restate_internal/Cargo.toml +1 -1
- data/lib/restate/version.rb +1 -1
- data/lib/restate/vm.rb +9 -1
- metadata +1 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8e9a5eab5505c6585cad44e4d579238dfd87f637c480c8992ee182e1a5d7dc8
|
|
4
|
+
data.tar.gz: de1d60c560fcc48f55120820bdaf3de1d36c6a03664bdc0408c152ee11a160e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ffae9eb0811b513127a2369960a9aa8511cabd21c5e8b5d460e9b5e9131db8f45b3597c8f93aa1faea3d1cc3839b928ed4e216a20826de050668e09abd7617c
|
|
7
|
+
data.tar.gz: d9bfc8f6c4b86012aa00f236fe8b26abfff5966c833376259beb8b91cad1fc4a300d4ade6374e14865179f02485700428bb819c2ce455df2494f69126a1c03d3
|
data/Cargo.lock
CHANGED
data/README.md
CHANGED
|
@@ -117,17 +117,29 @@ make test-integration
|
|
|
117
117
|
|
|
118
118
|
## Releasing the package
|
|
119
119
|
|
|
120
|
-
Pull latest main:
|
|
120
|
+
1. Pull latest main:
|
|
121
121
|
|
|
122
|
-
```shell
|
|
123
|
-
git checkout main && git pull
|
|
124
|
-
```
|
|
122
|
+
```shell
|
|
123
|
+
git checkout main && git pull
|
|
124
|
+
```
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
2. Bump the version in **both** files:
|
|
127
|
+
- `lib/restate/version.rb` — e.g. `VERSION = '0.5.0'`
|
|
128
|
+
- `ext/restate_internal/Cargo.toml` — e.g. `version = "0.5.0"`
|
|
127
129
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
3. Update the lock file and verify:
|
|
131
|
+
|
|
132
|
+
```shell
|
|
133
|
+
make build
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
4. Commit, tag, and push:
|
|
137
|
+
|
|
138
|
+
```shell
|
|
139
|
+
git add -A
|
|
140
|
+
git commit -m "Release v0.5.0"
|
|
141
|
+
git tag -m "Release v0.5.0" v0.5.0
|
|
142
|
+
git push origin main v0.5.0
|
|
143
|
+
```
|
|
132
144
|
|
|
133
|
-
The [release workflow](.github/workflows/release.yml) will build pre-compiled native gems for all platforms (x86_64/aarch64 Linux, macOS, musl) and publish them to RubyGems.
|
|
145
|
+
The [release workflow](.github/workflows/release.yml) will build pre-compiled native gems for all platforms (x86_64/aarch64 Linux, macOS, musl) and publish them to [RubyGems](https://rubygems.org/gems/restate-sdk).
|
data/lib/restate/version.rb
CHANGED
data/lib/restate/vm.rb
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# typed: true
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
begin
|
|
5
|
+
# Cross-compiled native gems place the binary in a version-specific directory
|
|
6
|
+
# e.g., lib/restate/3.3/restate_internal.bundle
|
|
7
|
+
RUBY_VERSION =~ /(\d+\.\d+)/
|
|
8
|
+
require_relative "#{Regexp.last_match(1)}/restate_internal"
|
|
9
|
+
rescue LoadError
|
|
10
|
+
# Fall back to the default location (development builds, source gem installs)
|
|
11
|
+
require_relative 'restate_internal'
|
|
12
|
+
end
|
|
5
13
|
|
|
6
14
|
module Restate
|
|
7
15
|
# Ruby-side data types for VM results
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: restate-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Restate Developers
|
|
@@ -24,20 +24,6 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '2.0'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: falcon
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0.47'
|
|
34
|
-
type: :runtime
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0.47'
|
|
41
27
|
- !ruby/object:Gem::Dependency
|
|
42
28
|
name: rack
|
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|