vault_coh 6.3.0 → 7.0.0
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 +2 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +34 -24
- data/README.md +3 -3
- data/ext/vault_coh/Cargo.toml +1 -1
- data/ext/vault_coh/src/lib.rs +5 -0
- data/lib/vault_coh/player.rb +12 -0
- data/lib/vault_coh/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aece6c654345ca3ba8d7d59a989909e69304a89ba532cdfa3498ff51fc97b711
|
|
4
|
+
data.tar.gz: c58fc54d95dc5f4b82ac534c7d7ef220f4cccd493c5a832235f372b0f7845cba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7702f0046a066f5078c166be981f07e5e5b37b4e82f90be135c06ef2a3f69f1973a19b63f2161f206801584272d8263af915e7073a2e790d94e0043cc32a63c5
|
|
7
|
+
data.tar.gz: 4ae192ba7aac6e9d28d26538585007c6a7913f5223cf5dd45a87f4d6346894d02fb5eb2fc0a7625ed61e3677b0da5a0b113aced98b935d362e2151d87e944183
|
data/Cargo.lock
CHANGED
|
@@ -413,9 +413,9 @@ dependencies = [
|
|
|
413
413
|
|
|
414
414
|
[[package]]
|
|
415
415
|
name = "vault"
|
|
416
|
-
version = "
|
|
416
|
+
version = "11.0.0"
|
|
417
417
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
418
|
-
checksum = "
|
|
418
|
+
checksum = "5f84322de27712f254a5b5dce88bce556d2e40b0783da48154c25eed9458f506"
|
|
419
419
|
dependencies = [
|
|
420
420
|
"byteorder",
|
|
421
421
|
"magnus",
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,67 +1,77 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
vault_coh (
|
|
4
|
+
vault_coh (7.0.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
+
addressable (2.8.9)
|
|
10
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
9
11
|
ast (2.4.3)
|
|
12
|
+
bigdecimal (4.0.1)
|
|
10
13
|
diff-lcs (1.6.2)
|
|
11
|
-
json (2.
|
|
14
|
+
json (2.19.1)
|
|
15
|
+
json-schema (6.2.0)
|
|
16
|
+
addressable (~> 2.8)
|
|
17
|
+
bigdecimal (>= 3.1, < 5)
|
|
12
18
|
language_server-protocol (3.17.0.5)
|
|
13
19
|
lint_roller (1.1.0)
|
|
20
|
+
mcp (0.8.0)
|
|
21
|
+
json-schema (>= 4.1)
|
|
14
22
|
parallel (1.27.0)
|
|
15
|
-
parser (3.3.
|
|
23
|
+
parser (3.3.10.2)
|
|
16
24
|
ast (~> 2.4.1)
|
|
17
25
|
racc
|
|
18
|
-
prism (1.
|
|
26
|
+
prism (1.9.0)
|
|
27
|
+
public_suffix (6.0.2)
|
|
19
28
|
racc (1.8.1)
|
|
20
29
|
rainbow (3.1.1)
|
|
21
|
-
rake (13.3.
|
|
22
|
-
rake-compiler (1.3.
|
|
30
|
+
rake (13.3.1)
|
|
31
|
+
rake-compiler (1.3.1)
|
|
23
32
|
rake
|
|
24
|
-
rake-compiler-dock (1.
|
|
25
|
-
rb_sys (0.9.
|
|
26
|
-
rake-compiler-dock (= 1.
|
|
27
|
-
regexp_parser (2.11.
|
|
28
|
-
rspec (3.13.
|
|
33
|
+
rake-compiler-dock (1.11.0)
|
|
34
|
+
rb_sys (0.9.124)
|
|
35
|
+
rake-compiler-dock (= 1.11.0)
|
|
36
|
+
regexp_parser (2.11.3)
|
|
37
|
+
rspec (3.13.2)
|
|
29
38
|
rspec-core (~> 3.13.0)
|
|
30
39
|
rspec-expectations (~> 3.13.0)
|
|
31
40
|
rspec-mocks (~> 3.13.0)
|
|
32
|
-
rspec-core (3.13.
|
|
41
|
+
rspec-core (3.13.6)
|
|
33
42
|
rspec-support (~> 3.13.0)
|
|
34
43
|
rspec-expectations (3.13.5)
|
|
35
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
36
45
|
rspec-support (~> 3.13.0)
|
|
37
|
-
rspec-mocks (3.13.
|
|
46
|
+
rspec-mocks (3.13.8)
|
|
38
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
39
48
|
rspec-support (~> 3.13.0)
|
|
40
|
-
rspec-support (3.13.
|
|
41
|
-
rubocop (1.
|
|
49
|
+
rspec-support (3.13.7)
|
|
50
|
+
rubocop (1.85.1)
|
|
42
51
|
json (~> 2.3)
|
|
43
52
|
language_server-protocol (~> 3.17.0.2)
|
|
44
53
|
lint_roller (~> 1.1.0)
|
|
54
|
+
mcp (~> 0.6)
|
|
45
55
|
parallel (~> 1.10)
|
|
46
56
|
parser (>= 3.3.0.2)
|
|
47
57
|
rainbow (>= 2.2.2, < 4.0)
|
|
48
58
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
49
|
-
rubocop-ast (>= 1.
|
|
59
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
50
60
|
ruby-progressbar (~> 1.7)
|
|
51
61
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
52
|
-
rubocop-ast (1.
|
|
62
|
+
rubocop-ast (1.49.0)
|
|
53
63
|
parser (>= 3.3.7.2)
|
|
54
|
-
prism (~> 1.
|
|
64
|
+
prism (~> 1.7)
|
|
55
65
|
rubocop-rake (0.7.1)
|
|
56
66
|
lint_roller (~> 1.1)
|
|
57
67
|
rubocop (>= 1.72.1)
|
|
58
|
-
rubocop-rspec (3.
|
|
68
|
+
rubocop-rspec (3.9.0)
|
|
59
69
|
lint_roller (~> 1.1)
|
|
60
|
-
rubocop (~> 1.
|
|
70
|
+
rubocop (~> 1.81)
|
|
61
71
|
ruby-progressbar (1.13.0)
|
|
62
|
-
unicode-display_width (3.
|
|
63
|
-
unicode-emoji (~> 4.
|
|
64
|
-
unicode-emoji (4.0
|
|
72
|
+
unicode-display_width (3.2.0)
|
|
73
|
+
unicode-emoji (~> 4.1)
|
|
74
|
+
unicode-emoji (4.2.0)
|
|
65
75
|
|
|
66
76
|
PLATFORMS
|
|
67
77
|
arm64-darwin-21
|
|
@@ -73,7 +83,7 @@ DEPENDENCIES
|
|
|
73
83
|
rake-compiler
|
|
74
84
|
rb_sys
|
|
75
85
|
rspec (~> 3.13)
|
|
76
|
-
rubocop (~> 1.
|
|
86
|
+
rubocop (~> 1.85)
|
|
77
87
|
rubocop-rake
|
|
78
88
|
rubocop-rspec
|
|
79
89
|
vault_coh!
|
data/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Vault
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/rb/vault_coh) [](https://rubydoc.info/github/ryantaylor/vault-rb/
|
|
3
|
+
[](https://badge.fury.io/rb/vault_coh) [](https://rubydoc.info/github/ryantaylor/vault-rb/v7.0.0)
|
|
4
4
|
|
|
5
5
|
A native Ruby client wrapper for the [vault](https://github.com/ryantaylor/vault) Company of Heroes replay parser, integrated via a Rust native extension.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
First, make sure you have
|
|
9
|
+
First, make sure you have the latest stable release of the Rust toolchain installed (older versions might work but aren't officially supported). You can install Rust easily using [rustup](https://rustup.rs/).
|
|
10
10
|
|
|
11
11
|
Then you can add to Gemfile:
|
|
12
12
|
```
|
|
@@ -24,7 +24,7 @@ bytes = File.read('/path/to/replay.rec').unpack('C*')
|
|
|
24
24
|
replay = VaultCoh::Replay.from_bytes(bytes)
|
|
25
25
|
puts replay.version
|
|
26
26
|
```
|
|
27
|
-
All information available from parsing can be found in the [documentation](https://rubydoc.info/github/ryantaylor/vault-rb/
|
|
27
|
+
All information available from parsing can be found in the [documentation](https://rubydoc.info/github/ryantaylor/vault-rb/v7.0.0).
|
|
28
28
|
|
|
29
29
|
## Contributing
|
|
30
30
|
|
data/ext/vault_coh/Cargo.toml
CHANGED
|
@@ -12,4 +12,4 @@ crate-type = ["cdylib"]
|
|
|
12
12
|
[dependencies]
|
|
13
13
|
magnus = { version = "0.8" }
|
|
14
14
|
serde_magnus = { git = "https://github.com/ryantaylor/serde-magnus.git", branch = "magnus-8" }
|
|
15
|
-
vault = { version = "
|
|
15
|
+
vault = { version = "11", features = ["magnus", "serde"] }
|
data/ext/vault_coh/src/lib.rs
CHANGED
|
@@ -44,6 +44,11 @@ fn init(ruby: &Ruby) -> Result<(), Error> {
|
|
|
44
44
|
player.define_method("faction", method!(faction_string, 0))?;
|
|
45
45
|
player.define_method("team", method!(team_value, 0))?;
|
|
46
46
|
player.define_method("battlegroup", method!(Player::battlegroup, 0))?;
|
|
47
|
+
player.define_method(
|
|
48
|
+
"battlegroup_selected_at",
|
|
49
|
+
method!(Player::battlegroup_selected_at, 0),
|
|
50
|
+
)?;
|
|
51
|
+
player.define_method("ai_takeover_at", method!(Player::ai_takeover_at, 0))?;
|
|
47
52
|
player.define_method("steam_id", method!(Player::steam_id, 0))?;
|
|
48
53
|
player.define_method("profile_id", method!(Player::profile_id, 0))?;
|
|
49
54
|
player.define_method("messages", method!(Player::messages, 0))?;
|
data/lib/vault_coh/player.rb
CHANGED
|
@@ -36,6 +36,18 @@ module VaultCoh
|
|
|
36
36
|
# @return [Integer|NilClass]
|
|
37
37
|
def battlegroup; end
|
|
38
38
|
|
|
39
|
+
# The tick at which the player selected their battlegroup, or +nil+
|
|
40
|
+
# if no battlegroup was selected.
|
|
41
|
+
#
|
|
42
|
+
# @return [Integer|NilClass]
|
|
43
|
+
def battlegroup_selected_at; end
|
|
44
|
+
|
|
45
|
+
# The tick at which the player dropped from the game and AI took over
|
|
46
|
+
# their army, or +nil+ if the player never dropped from the game.
|
|
47
|
+
#
|
|
48
|
+
# @return [Integer|NilClass]
|
|
49
|
+
def ai_takeover_at; end
|
|
50
|
+
|
|
39
51
|
# The Steam ID of the player, or +nil+ if the player is AI. This ID
|
|
40
52
|
# can be used to uniquely identify a player between replays, and
|
|
41
53
|
# connect them to their Steam profile.
|
data/lib/vault_coh/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vault_coh
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 7.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ryantaylor
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2026-03-10 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: Company of Heroes replay parsing in Ruby using the vault parsing library
|
|
14
13
|
via a Rust native extension.
|
|
@@ -54,7 +53,6 @@ metadata:
|
|
|
54
53
|
source_code_uri: https://github.com/ryantaylor/vault-rb
|
|
55
54
|
changelog_uri: https://github.com/ryantaylor/vault-rb
|
|
56
55
|
rubygems_mfa_required: 'true'
|
|
57
|
-
post_install_message:
|
|
58
56
|
rdoc_options: []
|
|
59
57
|
require_paths:
|
|
60
58
|
- lib
|
|
@@ -69,8 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
69
67
|
- !ruby/object:Gem::Version
|
|
70
68
|
version: 3.3.11
|
|
71
69
|
requirements: []
|
|
72
|
-
rubygems_version: 3.
|
|
73
|
-
signing_key:
|
|
70
|
+
rubygems_version: 3.6.6
|
|
74
71
|
specification_version: 4
|
|
75
72
|
summary: CoH3 replay parsing in Ruby with Rust
|
|
76
73
|
test_files: []
|