extism 1.0.0.pre.rc.5 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -2
- data/README.md +2 -6
- data/lib/extism/plugin.rb +1 -1
- data/lib/extism/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9e40a0aec7518accd6b0df9f952c470a3d4de92edcb67015188f0f309b6d91a
|
4
|
+
data.tar.gz: ac78e9338870314f4a2c157b86d77458f33b697982d624e25e3e94a0021d56bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8874cfb2822b88ac9f6a9c072b0b56cd59466a0f161a53fab63b0f7a2a89ed14e09eb962a83607f97a159bcbad11792b36a79f5a8164561843900c57420aef9
|
7
|
+
data.tar.gz: 78210fd8c5d9f388cb9b8b55aa4991388b4daacf4e8380e7d1bb4bcf57f822c0204766897c64208f7db1868c3ae4e78ee9c9712b5dad82544dad88b6a81bcf6f
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
extism (1.0.
|
5
|
-
ffi (
|
4
|
+
extism (1.0.1)
|
5
|
+
ffi (~> 1.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -29,6 +29,7 @@ GEM
|
|
29
29
|
|
30
30
|
PLATFORMS
|
31
31
|
arm64-darwin-22
|
32
|
+
arm64-darwin-23
|
32
33
|
x86_64-linux
|
33
34
|
|
34
35
|
DEPENDENCIES
|
data/README.md
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
This repo contains the ruby gem for integrating with the [Extism](https://extism.org/) runtime. Install this library into your host ruby application to run Extism plug-ins.
|
4
4
|
|
5
|
-
> **Note**: This repo is 1.0 alpha version of the Ruby SDK and we may push breaking changes in between versions until we hit 1.0.0 in December, 2023. However, it is ready to use and you should use this if you're building a new integration. We'd love any feedback on it.
|
6
|
-
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
### Install the Extism Runtime Dependency
|
@@ -18,20 +16,18 @@ sudo extism lib install latest
|
|
18
16
|
#=> Copying extism.h to /usr/local/include/extism.h
|
19
17
|
```
|
20
18
|
|
21
|
-
> **Note**: This library has breaking changes and targets 1.0 of the runtime. For the time being, install the runtime from our nightly development builds on git: `sudo extism lib install --version git`.
|
22
|
-
|
23
19
|
### Install the Gem
|
24
20
|
|
25
21
|
Add this library to your [Gemfile](https://bundler.io/):
|
26
22
|
|
27
23
|
```ruby
|
28
|
-
gem 'extism', '1.0.0
|
24
|
+
gem 'extism', '~> 1.0.0'
|
29
25
|
```
|
30
26
|
|
31
27
|
Or if installing on the system level:
|
32
28
|
|
33
29
|
```
|
34
|
-
gem install extism
|
30
|
+
gem install extism
|
35
31
|
```
|
36
32
|
|
37
33
|
## Getting Started
|
data/lib/extism/plugin.rb
CHANGED
@@ -47,7 +47,7 @@ module Extism
|
|
47
47
|
end
|
48
48
|
$PLUGINS[object_id] = { plugin: @plugin }
|
49
49
|
ObjectSpace.define_finalizer(self, $FREE_PLUGIN)
|
50
|
-
return
|
50
|
+
return if config.nil? or @plugin.null?
|
51
51
|
|
52
52
|
s = JSON.generate(config)
|
53
53
|
ptr = FFI::MemoryPointer.from_string(s)
|
data/lib/extism/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extism
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zach
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0
|
26
|
+
version: '1.0'
|
27
27
|
description: A library for loading and executing WASM plugins
|
28
28
|
email:
|
29
29
|
- zachshipko@gmail.com
|
@@ -69,9 +69,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: 2.6.0
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: '0'
|
75
75
|
requirements: []
|
76
76
|
rubygems_version: 3.4.10
|
77
77
|
signing_key:
|