tf2_line_parser 0.0.5 → 0.0.6

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.
@@ -264,6 +264,16 @@ module TF2LineParser
264
264
  parse(line)
265
265
  end
266
266
 
267
+ it 'recognizes spawns' do
268
+ line = log_lines[4541]
269
+ name = "candyyou # Infinity Gaming"
270
+ steam_id = "STEAM_0:0:50979748"
271
+ team = "Red"
272
+ klass = "Soldier"
273
+ Events::Spawn.should_receive(:new).with(anything, name, steam_id, team, klass)
274
+ parse(line)
275
+ end
276
+
267
277
  it 'deals with unknown lines' do
268
278
  line = log_lines[0]
269
279
  time = "02/07/2013 - 21:21:08"
@@ -274,10 +284,11 @@ module TF2LineParser
274
284
 
275
285
 
276
286
  it 'can parse all lines in the example log files without exploding' do
277
- broder_vs_epsilon = File.expand_path('../../../fixtures/logs/broder_vs_epsilon.log', __FILE__)
278
- special_characters = File.expand_path('../../../fixtures/logs/special_characters.log', __FILE__)
279
- ntraum_example = File.expand_path('../../../fixtures/logs/example.log', __FILE__)
280
- log_files = [broder_vs_epsilon, special_characters, ntraum_example]
287
+ broder_vs_epsilon = File.expand_path('../../../fixtures/logs/broder_vs_epsilon.log', __FILE__)
288
+ special_characters = File.expand_path('../../../fixtures/logs/special_characters.log', __FILE__)
289
+ very_special_characters = File.expand_path('../../../fixtures/logs/very_special_characters.log', __FILE__)
290
+ ntraum_example = File.expand_path('../../../fixtures/logs/example.log', __FILE__)
291
+ log_files = [broder_vs_epsilon, special_characters, very_special_characters, ntraum_example]
281
292
 
282
293
  log_files.each do |log_file|
283
294
  log = File.read(log_file)
@@ -18,5 +18,4 @@ Gem::Specification.new do |gem|
18
18
  gem.add_development_dependency 'coveralls'
19
19
  gem.add_development_dependency "pry-nav", "~> 0.2.3"
20
20
  gem.add_development_dependency "rspec", "~> 2.13.0"
21
- gem.add_development_dependency "spec_coverage", "~> 0.0.5"
22
21
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tf2_line_parser
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Arie
@@ -75,28 +75,13 @@ dependencies:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: 2.13.0
78
- - !ruby/object:Gem::Dependency
79
- prerelease: false
80
- type: :development
81
- name: spec_coverage
82
- version_requirements: !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ~>
86
- - !ruby/object:Gem::Version
87
- version: 0.0.5
88
- requirement: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 0.0.5
94
78
  description: A gem to parse log lines from TF2 servers
95
79
  email: rubygems@ariekanarie.nl
96
80
  executables: []
97
81
  extensions: []
98
82
  extra_rdoc_files: []
99
83
  files:
84
+ - .coverage
100
85
  - .gitignore
101
86
  - .rspec
102
87
  - .travis.yml
@@ -131,17 +116,20 @@ files:
131
116
  - lib/tf2_line_parser/events/round_start.rb
132
117
  - lib/tf2_line_parser/events/round_win.rb
133
118
  - lib/tf2_line_parser/events/score.rb
119
+ - lib/tf2_line_parser/events/spawn.rb
134
120
  - lib/tf2_line_parser/events/suicide.rb
135
121
  - lib/tf2_line_parser/events/unknown.rb
136
122
  - lib/tf2_line_parser/line.rb
137
123
  - lib/tf2_line_parser/parser.rb
138
124
  - lib/tf2_line_parser/player.rb
139
125
  - lib/tf2_line_parser/version.rb
126
+ - lib/tidy_bytes_monkey_patch.rb
140
127
  - script/bundler
141
128
  - script/ci
142
129
  - spec/fixtures/logs/broder_vs_epsilon.log
143
130
  - spec/fixtures/logs/example.log
144
131
  - spec/fixtures/logs/special_characters.log
132
+ - spec/fixtures/logs/very_special_characters.log
145
133
  - spec/lib/tf2_line_parser/parser_spec.rb
146
134
  - spec/lib/tf2_line_parser/player_spec.rb
147
135
  - spec/spec_helper.rb
@@ -174,6 +162,7 @@ test_files:
174
162
  - spec/fixtures/logs/broder_vs_epsilon.log
175
163
  - spec/fixtures/logs/example.log
176
164
  - spec/fixtures/logs/special_characters.log
165
+ - spec/fixtures/logs/very_special_characters.log
177
166
  - spec/lib/tf2_line_parser/parser_spec.rb
178
167
  - spec/lib/tf2_line_parser/player_spec.rb
179
168
  - spec/spec_helper.rb