vault_coh 6.1.0 → 6.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6d08a9b4c0f1c856decec2b338a3a0c9005a9506d409d0c9d0a17b1212cc765
4
- data.tar.gz: b689b813dff0074520ad2a8b993b01374c369e0e07aed4ba3373d64631a962b1
3
+ metadata.gz: 44c6a84b707d7776593802a20d2f8544d05792b5d64bc0d21dde79c0a8ae8375
4
+ data.tar.gz: 4ad2e8a4e6ef5f51de5edebcf4fdd0a03685b994586172d8e39ee4f13afc3329
5
5
  SHA512:
6
- metadata.gz: 6de6915d99020add56d5e1212af98bf060a06a22f26e919bae1d43024466f31e745fc4953c34d18044f31abaa8e393353d51a5786d6572d2d2af01504855ad6e
7
- data.tar.gz: ed0bda5b6c5f1298db6c49bd5b7903294ef7598c4fb6968ddbac0c9df8936815a974037c766815899082f160547868ba870087a250c6982b236c454b7e1a20b4
6
+ metadata.gz: 4287800ef946caf2aab3a73a403a4629d7c6e28f75e5aa28e456e849a0190dc84b6243e9bab18a4f080c71dd230d65efeac37ee1d3a3b6d42112d927ca8899fb
7
+ data.tar.gz: 592b0a11bc30fdcbd6be7316193ebfccba8a34ea5e12d1b1ba510471becf2e3226330454e72e410570a68b3253b1f05d5a2f9c69e6f68ece5e8b1d26c5f49210
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.0.0"
380
+ version = "10.1.0"
381
381
  source = "registry+https://github.com/rust-lang/crates.io-index"
382
- checksum = "1fb1df47725f2569f794e8998c080cc4cbb803059050dbe464c25c815e704eb1"
382
+ checksum = "d74ed53a53f51c4e4efb47d9cf128738b8775a28ab06ff7dc272f93d9a421e84"
383
383
  dependencies = [
384
384
  "byteorder",
385
385
  "magnus",
data/Gemfile CHANGED
@@ -12,4 +12,6 @@ gem 'rb_sys'
12
12
 
13
13
  gem 'rspec', '~> 3.13'
14
14
 
15
- gem 'rubocop', '~> 1.65'
15
+ gem 'rubocop', '~> 1.66'
16
+ gem 'rubocop-rake'
17
+ gem 'rubocop-rspec'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vault_coh (6.1.0)
4
+ vault_coh (6.2.0)
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.2)
14
- parser (3.3.4.2)
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.100)
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.0)
28
+ rspec-core (3.13.1)
31
29
  rspec-support (~> 3.13.0)
32
- rspec-expectations (3.13.1)
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.65.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
- rexml (>= 3.2.5, < 4.0)
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.0)
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.65)
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.0)
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.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
 
@@ -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.0).
27
+ All information available from parsing can be found in the [documentation](https://rubydoc.info/github/ryantaylor/vault-rb/v6.2.0).
28
28
 
29
29
  ## Contributing
30
30
 
@@ -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"))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VaultCoh
4
- VERSION = '6.1.0'
4
+ VERSION = '6.2.0'
5
5
  end
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.0
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryantaylor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-16 00:00:00.000000000 Z
11
+ date: 2024-09-11 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.