tf2_line_parser 0.5.1 → 0.5.2
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/Gemfile.lock +6 -6
- data/lib/tf2_line_parser/events/event.rb +1 -1
- data/lib/tf2_line_parser/version.rb +1 -1
- data/spec/lib/tf2_line_parser/parser_spec.rb +8 -0
- 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: 4b29330a6fc24eb0ae42d3e5de61300fc75c892fccf9c2f9a04b8b361175c905
|
|
4
|
+
data.tar.gz: 1f8a4bcd5452ed7ba5ae257036f9e831ee3570844a48cacd3043d00424db9023
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf33e8f104485bbafc7cab96beabc7ddfa14979718317416563726587238e38f41bcde9cb80bc6933339e1a04065338b5796f42c0cfa92763aae9d9bce54e4d6
|
|
7
|
+
data.tar.gz: 85cac455f1a1a66cb9c2622daaebea9bf4fcbdc35e84b3e6337f745b987bd4287e87f16afd6905eff5a9760b36012b8b08792131365a02792d55832ccee4e16d
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
tf2_line_parser (0.5.
|
|
4
|
+
tf2_line_parser (0.5.2)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
@@ -15,7 +15,7 @@ GEM
|
|
|
15
15
|
diff-lcs (1.6.2)
|
|
16
16
|
docile (1.4.1)
|
|
17
17
|
io-console (0.8.2)
|
|
18
|
-
json (2.18.
|
|
18
|
+
json (2.18.1)
|
|
19
19
|
mize (0.6.1)
|
|
20
20
|
readline (0.0.4)
|
|
21
21
|
reline
|
|
@@ -33,7 +33,7 @@ GEM
|
|
|
33
33
|
rspec-mocks (3.13.7)
|
|
34
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
35
35
|
rspec-support (~> 3.13.0)
|
|
36
|
-
rspec-support (3.13.
|
|
36
|
+
rspec-support (3.13.7)
|
|
37
37
|
simplecov (0.22.0)
|
|
38
38
|
docile (~> 1.1)
|
|
39
39
|
simplecov-html (~> 0.11)
|
|
@@ -43,8 +43,8 @@ GEM
|
|
|
43
43
|
sync (0.5.0)
|
|
44
44
|
term-ansicolor (1.11.3)
|
|
45
45
|
tins (~> 1)
|
|
46
|
-
thor (1.
|
|
47
|
-
tins (1.51.
|
|
46
|
+
thor (1.5.0)
|
|
47
|
+
tins (1.51.1)
|
|
48
48
|
bigdecimal
|
|
49
49
|
mize (~> 0.6)
|
|
50
50
|
readline
|
|
@@ -61,4 +61,4 @@ DEPENDENCIES
|
|
|
61
61
|
tf2_line_parser!
|
|
62
62
|
|
|
63
63
|
BUNDLED WITH
|
|
64
|
-
2.
|
|
64
|
+
2.5.11
|
|
@@ -651,6 +651,14 @@ module TF2LineParser
|
|
|
651
651
|
parse(line)
|
|
652
652
|
end
|
|
653
653
|
|
|
654
|
+
it 'recognizes capture block with spaces in cpname' do
|
|
655
|
+
line = 'L 02/18/2026 - 23:41:55: "mein<26><[U:1:197355296]><Blue>" triggered "captureblocked" (cp "0") (cpname "the Tower") (position "611 -341 318")'
|
|
656
|
+
result = parse(line)
|
|
657
|
+
expect(result).to be_a(Events::CaptureBlock)
|
|
658
|
+
expect(result.player.name).to eq('mein')
|
|
659
|
+
expect(result.cap_name).to eq('the Tower')
|
|
660
|
+
end
|
|
661
|
+
|
|
654
662
|
it 'recognizes shot_fired' do
|
|
655
663
|
line = 'L 12/30/2025 - 18:34:19: "Jib<34><[U:1:367944796]><Blue>" triggered "shot_fired" (weapon "tf_projectile_rocket")'
|
|
656
664
|
result = parse(line)
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tf2_line_parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arie
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-02-19 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: coveralls_reborn
|