vault_coh 6.1.0 → 6.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +34 -0
- data/Cargo.lock +2 -2
- data/Gemfile +3 -1
- data/Gemfile.lock +16 -14
- data/README.md +2 -2
- data/ext/vault_coh/src/hash.rs +8 -0
- data/lib/vault_coh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6fdafb97ce14ad5784cba7bcf31f0a2eda10f8fe33a7d67f260e9990156ea97
|
4
|
+
data.tar.gz: c79912735108ff117c98130c73fb11c19c22202a719de731c621a5ca3c794863
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e69d09b06427a6f2852454c1f616e76320096586be33d7db3f46e2144c3e0e977b9cd311e9e6894c27826d5b06e52abcbbcc5352f1c2bfa9622c9b6c1bd37b8a
|
7
|
+
data.tar.gz: 3db62d6bc2aa2ea05636f0beb10a21c3303104ff8114cda783272699d1a6ec8ad032117b1da56cbeabba1d78d6d19b527ec4535ca355f08d36e452e97ae0dbbb
|
data/.rubocop.yml
CHANGED
@@ -1,3 +1,37 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rake
|
3
|
+
- rubocop-rspec
|
4
|
+
|
1
5
|
AllCops:
|
2
6
|
TargetRubyVersion: 3.1
|
3
7
|
NewCops: enable
|
8
|
+
|
9
|
+
Rake/Desc:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
RSpec/AnyInstance:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
RSpec/ContextWording:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
RSpec/ExampleLength:
|
19
|
+
Max: 10
|
20
|
+
|
21
|
+
RSpec/HookArgument:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
RSpec/MessageChain:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
RSpec/MessageSpies:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
RSpec/MultipleExpectations:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
RSpec/MultipleMemoizedHelpers:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
RSpec/NestedGroups:
|
37
|
+
Enabled: false
|
data/Cargo.lock
CHANGED
@@ -377,9 +377,9 @@ dependencies = [
|
|
377
377
|
|
378
378
|
[[package]]
|
379
379
|
name = "vault"
|
380
|
-
version = "10.
|
380
|
+
version = "10.1.1"
|
381
381
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
382
|
-
checksum = "
|
382
|
+
checksum = "6ad48bb7bee9601897f94499666045299831f5143f43144d972d1859f5e1929c"
|
383
383
|
dependencies = [
|
384
384
|
"byteorder",
|
385
385
|
"magnus",
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vault_coh (6.1
|
4
|
+
vault_coh (6.2.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -10,8 +10,8 @@ GEM
|
|
10
10
|
diff-lcs (1.5.1)
|
11
11
|
json (2.7.2)
|
12
12
|
language_server-protocol (3.17.0.3)
|
13
|
-
parallel (1.26.
|
14
|
-
parser (3.3.
|
13
|
+
parallel (1.26.3)
|
14
|
+
parser (3.3.5.0)
|
15
15
|
ast (~> 2.4.1)
|
16
16
|
racc
|
17
17
|
racc (1.8.1)
|
@@ -19,38 +19,38 @@ GEM
|
|
19
19
|
rake (13.2.1)
|
20
20
|
rake-compiler (1.2.7)
|
21
21
|
rake
|
22
|
-
rb_sys (0.9.
|
22
|
+
rb_sys (0.9.102)
|
23
23
|
regexp_parser (2.9.2)
|
24
|
-
rexml (3.3.5)
|
25
|
-
strscan
|
26
24
|
rspec (3.13.0)
|
27
25
|
rspec-core (~> 3.13.0)
|
28
26
|
rspec-expectations (~> 3.13.0)
|
29
27
|
rspec-mocks (~> 3.13.0)
|
30
|
-
rspec-core (3.13.
|
28
|
+
rspec-core (3.13.1)
|
31
29
|
rspec-support (~> 3.13.0)
|
32
|
-
rspec-expectations (3.13.
|
30
|
+
rspec-expectations (3.13.3)
|
33
31
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
32
|
rspec-support (~> 3.13.0)
|
35
33
|
rspec-mocks (3.13.1)
|
36
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
37
35
|
rspec-support (~> 3.13.0)
|
38
36
|
rspec-support (3.13.1)
|
39
|
-
rubocop (1.
|
37
|
+
rubocop (1.66.1)
|
40
38
|
json (~> 2.3)
|
41
39
|
language_server-protocol (>= 3.17.0)
|
42
40
|
parallel (~> 1.10)
|
43
41
|
parser (>= 3.3.0.2)
|
44
42
|
rainbow (>= 2.2.2, < 4.0)
|
45
43
|
regexp_parser (>= 2.4, < 3.0)
|
46
|
-
|
47
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
44
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
48
45
|
ruby-progressbar (~> 1.7)
|
49
46
|
unicode-display_width (>= 2.4.0, < 3.0)
|
50
|
-
rubocop-ast (1.32.
|
47
|
+
rubocop-ast (1.32.3)
|
51
48
|
parser (>= 3.3.1.0)
|
49
|
+
rubocop-rake (0.6.0)
|
50
|
+
rubocop (~> 1.0)
|
51
|
+
rubocop-rspec (3.0.5)
|
52
|
+
rubocop (~> 1.61)
|
52
53
|
ruby-progressbar (1.13.0)
|
53
|
-
strscan (3.1.0)
|
54
54
|
unicode-display_width (2.5.0)
|
55
55
|
|
56
56
|
PLATFORMS
|
@@ -63,7 +63,9 @@ DEPENDENCIES
|
|
63
63
|
rake-compiler
|
64
64
|
rb_sys
|
65
65
|
rspec (~> 3.13)
|
66
|
-
rubocop (~> 1.
|
66
|
+
rubocop (~> 1.66)
|
67
|
+
rubocop-rake
|
68
|
+
rubocop-rspec
|
67
69
|
vault_coh!
|
68
70
|
|
69
71
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Vault
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/vault_coh.svg)](https://badge.fury.io/rb/vault_coh) [![Documentation](https://img.shields.io/badge/View-Documentation-blue.svg)](https://rubydoc.info/github/ryantaylor/vault-rb/v6.1
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/vault_coh.svg)](https://badge.fury.io/rb/vault_coh) [![Documentation](https://img.shields.io/badge/View-Documentation-blue.svg)](https://rubydoc.info/github/ryantaylor/vault-rb/v6.2.1)
|
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
|
|
@@ -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/v6.1
|
27
|
+
All information available from parsing can be found in the [documentation](https://rubydoc.info/github/ryantaylor/vault-rb/v6.2.1).
|
28
28
|
|
29
29
|
## Contributing
|
30
30
|
|
data/ext/vault_coh/src/hash.rs
CHANGED
@@ -32,6 +32,14 @@ impl HashExt for Message {
|
|
32
32
|
impl HashExt for Command {
|
33
33
|
fn to_h(&self) -> Value {
|
34
34
|
match self {
|
35
|
+
Command::AITakeover(data) => {
|
36
|
+
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
37
|
+
hash.aset(Symbol::new("type"), RString::new("AITakeover"))
|
38
|
+
.unwrap();
|
39
|
+
hash.aset(Symbol::new("action_type"), RString::new("PCMD_AIPlayer"))
|
40
|
+
.unwrap();
|
41
|
+
hash.as_value()
|
42
|
+
}
|
35
43
|
Command::BuildGlobalUpgrade(data) => {
|
36
44
|
let hash: RHash = serde_magnus::serialize(data).unwrap();
|
37
45
|
hash.aset(Symbol::new("type"), RString::new("BuildGlobalUpgrade"))
|
data/lib/vault_coh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vault_coh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1
|
4
|
+
version: 6.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryantaylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Company of Heroes replay parsing in Ruby using the vault parsing library
|
14
14
|
via a Rust native extension.
|