outpunch-ruby 0.5.3 → 0.5.5
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 +2584 -0
- data/Cargo.toml +2 -0
- data/ext/outpunch/Cargo.toml +2 -2
- data/ext/outpunch/src/lib_tests.rs +2 -2
- data/lib/outpunch.rb +3 -1
- metadata +5 -3
data/Cargo.toml
ADDED
data/ext/outpunch/Cargo.toml
CHANGED
|
@@ -8,11 +8,11 @@ name = "outpunch"
|
|
|
8
8
|
crate-type = ["cdylib"]
|
|
9
9
|
|
|
10
10
|
[dependencies]
|
|
11
|
-
outpunch-client = { version = "0.5.
|
|
11
|
+
outpunch-client = { version = "0.5.5" }
|
|
12
12
|
magnus = { version = "0.8" }
|
|
13
13
|
rb-sys = { version = "0.9", features = ["stable-api-compiled-fallback"] }
|
|
14
14
|
tokio = { version = "1.50.0", features = ["full"] }
|
|
15
|
-
outpunch_core = { version = "0.5.
|
|
15
|
+
outpunch_core = { version = "0.5.5", package = "outpunch" }
|
|
16
16
|
|
|
17
17
|
[build-dependencies]
|
|
18
18
|
rb-sys-build = "0.9"
|
|
@@ -21,7 +21,7 @@ fn client_config_custom_values() {
|
|
|
21
21
|
let config = ClientConfig::new(
|
|
22
22
|
"wss://example.com/ws".into(),
|
|
23
23
|
"mysecret".into(),
|
|
24
|
-
"
|
|
24
|
+
"my-service".into(),
|
|
25
25
|
Some("http://localhost:8081".into()),
|
|
26
26
|
Some(10.0),
|
|
27
27
|
Some(30.0),
|
|
@@ -29,7 +29,7 @@ fn client_config_custom_values() {
|
|
|
29
29
|
let rust = config.to_rust();
|
|
30
30
|
assert_eq!(rust.server_url, "wss://example.com/ws");
|
|
31
31
|
assert_eq!(rust.secret, "mysecret");
|
|
32
|
-
assert_eq!(rust.service, "
|
|
32
|
+
assert_eq!(rust.service, "my-service");
|
|
33
33
|
assert_eq!(rust.forward_to, "http://localhost:8081");
|
|
34
34
|
assert_eq!(rust.reconnect_delay.as_secs_f64(), 10.0);
|
|
35
35
|
assert_eq!(rust.request_timeout.as_secs_f64(), 30.0);
|
data/lib/outpunch.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# A precompiled gem ships one binary per Ruby minor version; a source gem compiles a single one.
|
|
4
|
+
precompiled = File.join(__dir__, "outpunch", RUBY_VERSION[/\A\d+\.\d+/])
|
|
5
|
+
require File.join(File.directory?(precompiled) ? precompiled : File.join(__dir__, "outpunch"), "outpunch")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: outpunch-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TechyCorp
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|
|
@@ -59,6 +59,8 @@ extensions:
|
|
|
59
59
|
- ext/outpunch/extconf.rb
|
|
60
60
|
extra_rdoc_files: []
|
|
61
61
|
files:
|
|
62
|
+
- Cargo.lock
|
|
63
|
+
- Cargo.toml
|
|
62
64
|
- ext/outpunch/Cargo.toml
|
|
63
65
|
- ext/outpunch/extconf.rb
|
|
64
66
|
- ext/outpunch/src/gvl.rs
|
|
@@ -67,7 +69,7 @@ files:
|
|
|
67
69
|
- ext/outpunch/src/server.rs
|
|
68
70
|
- lib/outpunch-ruby.rb
|
|
69
71
|
- lib/outpunch.rb
|
|
70
|
-
homepage:
|
|
72
|
+
homepage: https://github.com/techycorp/outpunch
|
|
71
73
|
licenses:
|
|
72
74
|
- MIT
|
|
73
75
|
metadata: {}
|