steam_hlds_log_parser 0.4.9 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA512:
3
- data.tar.gz: 08cb3bad994427212c11fe525b01f3070026ee629ecf59d6d885501112868755babe41c6feb05978f7a197d12c0da6f41a7ba531f5bc676af0c49f96b0676578
4
- metadata.gz: 14e277ccb27704544482fade1bbe62309a311ce29929d48f99c2f0bbd59392752aa6d846d7ffee645379db04d5acf092fbba5d09d368e7f8b9bb99aa29ec3068
5
2
  SHA1:
6
- data.tar.gz: c5637bd10ef2466395f66221b4a0e4122a6fff56
7
- metadata.gz: 04231e210d86a8e6b14a24cd6c9b9f6151bfa0b3
3
+ metadata.gz: 0d6f4970900f52377acd0e1b941a3b9929afadec
4
+ data.tar.gz: c899a1a093ffdbd74130d2d0df208aee17427e8f
5
+ SHA512:
6
+ metadata.gz: 20193bfa2615cd4ff28c46d4ede73655dc2ba6dd2f8ad9bc8c296444efcda8e2009cb7b7c699a9157e7625965c6e1e2e1262791598065dab8f9a6911fae6d966
7
+ data.tar.gz: 6cee787d6eb11cb295d8634f53f259b586b510d3f3630b916a7e845a5930fcd9e9f8e546b1275b00b0a2490a4d9106808f3f946f63f5064c450b1220464ee90e
@@ -1,4 +1,4 @@
1
1
  module SteamHldsLogParser
2
2
  # Gem Version
3
- VERSION = "0.4.9"
3
+ VERSION = "0.5.0"
4
4
  end
data/spec/client_spec.rb CHANGED
@@ -16,88 +16,87 @@ module SteamHldsLogParser
16
16
  context "when a 'Client' is created with default options"
17
17
  it { should be_an_instance_of Client }
18
18
  it "has a 'displayer'" do
19
- default_client.displayer.should_not be_nil
20
- default_client.displayer.class.should be(Class)
21
- default_client.displayer.should be(RSpecDisplayer)
19
+ expect(default_client.displayer).not_to be_nil
20
+ expect(default_client.displayer.class).to be(Class)
21
+ expect(default_client.displayer).to be(RSpecDisplayer)
22
22
  end
23
23
  it "has a default 'options' Hash" do
24
- default_client.options.should_not be_nil
25
- default_client.options.class.should be(Hash)
24
+ expect(default_client.displayer).not_to be_nil
25
+ expect(default_client.displayer.class).to be(Class)
26
26
  end
27
27
  it "has a default 'host'" do
28
- default_client.options[:host].should_not be_nil
29
- default_client.options[:host].should eq("0.0.0.0")
28
+ expect(default_client.options[:host]).not_to be_nil
29
+ expect(default_client.options[:host]).to eq("0.0.0.0")
30
30
  end
31
31
  it "has a default 'port'" do
32
- default_client.options[:port].should_not be_nil
33
- default_client.options[:port].should eq(27115)
32
+ expect(default_client.options[:port]).not_to be_nil
33
+ expect(default_client.options[:port]).to be(27115)
34
34
  end
35
35
  it "has a default 'locale'" do
36
- default_client.options[:locale].should_not be_nil
37
- default_client.options[:locale].class.should eq(Symbol)
38
- default_client.options[:locale].should eq(:en)
36
+ expect(default_client.options[:locale]).not_to be_nil
37
+ expect(default_client.options[:locale].class).to be(Symbol)
38
+ expect(default_client.options[:locale]).to be(:en)
39
39
  end
40
40
  it "has a default 'display_kills'" do
41
- default_client.options[:display_kills].should_not be_nil
42
- default_client.options[:display_kills].should be(true)
41
+ expect(default_client.options[:display_kills]).not_to be_nil
42
+ expect(default_client.options[:display_kills]).to be_true
43
43
  end
44
44
  it "has a default 'display_actions'" do
45
- default_client.options[:display_actions].should_not be_nil
46
- default_client.options[:display_actions].should be(true)
45
+ expect(default_client.options[:display_actions]).not_to be_nil
46
+ expect(default_client.options[:display_actions]).to be_true
47
47
  end
48
48
  it "has a default 'display_changelevel'" do
49
- default_client.options[:display_changelevel].should_not be_nil
50
- default_client.options[:display_changelevel].should be(true)
49
+ expect(default_client.options[:display_changelevel]).not_to be_nil
50
+ expect(default_client.options[:display_changelevel]).to be_true
51
51
  end
52
52
  it "has a default 'display_chat'" do
53
- default_client.options[:display_chat].should_not be_nil
54
- default_client.options[:display_chat].should be(true)
53
+ expect(default_client.options[:display_chat]).not_to be_nil
54
+ expect(default_client.options[:display_chat]).to be_true
55
55
  end
56
56
  it "has a default 'display_team_chat'" do
57
- default_client.options[:display_team_chat].should_not be_nil
58
- default_client.options[:display_team_chat].should be(true)
57
+ expect(default_client.options[:display_team_chat]).not_to be_nil
58
+ expect(default_client.options[:display_team_chat]).to be_true
59
59
  end
60
60
 
61
61
  subject(:custom_client) { Client.new(RSpecDisplayer, custom_options) }
62
62
  context "when custom parameters are given"
63
63
  it { should be_an_instance_of Client }
64
64
  it "has a default 'options' Hash" do
65
- custom_client.options.should_not be_nil
66
- custom_client.options.should_not be(nil)
67
- custom_client.options.class.should be(Hash)
65
+ expect(custom_client.options).not_to be_nil
66
+ expect(custom_client.options.class).to be(Hash)
68
67
  end
69
68
  it "has a custom 'host'" do
70
- custom_client.options[:host].should_not be_nil
71
- custom_client.options[:host].should eq("127.0.0.1")
69
+ expect(custom_client.options[:host]).not_to be_nil
70
+ expect(custom_client.options[:host]).to eq("127.0.0.1")
72
71
  end
73
72
  it "has a custom 'port'" do
74
- custom_client.options[:port].should_not be_nil
75
- custom_client.options[:port].should eq(12345)
73
+ expect(custom_client.options[:port]).not_to be_nil
74
+ expect(custom_client.options[:port]).to be(12345)
76
75
  end
77
76
  it "has a custom 'locale'" do
78
- custom_client.options[:locale].should_not be_nil
79
- custom_client.options[:locale].class.should eq(Symbol)
80
- custom_client.options[:locale].should eq(:fr)
77
+ expect(custom_client.options[:locale]).not_to be_nil
78
+ expect(custom_client.options[:locale].class).to be(Symbol)
79
+ expect(custom_client.options[:locale]).to be(:fr)
81
80
  end
82
81
  it "has a custom 'display_kills'" do
83
- custom_client.options[:display_kills].should_not be_nil
84
- custom_client.options[:display_kills].should be(false)
82
+ expect(custom_client.options[:display_kills]).not_to be_nil
83
+ expect(custom_client.options[:display_kills]).to be_false
85
84
  end
86
85
  it "has a custom 'display_actions'" do
87
- custom_client.options[:display_actions].should_not be_nil
88
- custom_client.options[:display_actions].should be(false)
86
+ expect(custom_client.options[:display_actions]).not_to be_nil
87
+ expect(custom_client.options[:display_actions]).to be_false
89
88
  end
90
89
  it "has a custom 'display_changelevel'" do
91
- custom_client.options[:display_changelevel].should_not be_nil
92
- custom_client.options[:display_changelevel].should be(false)
90
+ expect(custom_client.options[:display_changelevel]).not_to be_nil
91
+ expect(custom_client.options[:display_changelevel]).to be_false
93
92
  end
94
93
  it "has a custom 'display_chat'" do
95
- custom_client.options[:display_chat].should_not be_nil
96
- custom_client.options[:display_chat].should be(false)
94
+ expect(custom_client.options[:display_chat]).not_to be_nil
95
+ expect(custom_client.options[:display_chat]).to be_false
97
96
  end
98
97
  it "has a custom 'display_team_chat'" do
99
- custom_client.options[:display_team_chat].should_not be_nil
100
- custom_client.options[:display_team_chat].should be(false)
98
+ expect(custom_client.options[:display_team_chat]).not_to be_nil
99
+ expect(custom_client.options[:display_team_chat]).to be_false
101
100
  end
102
101
 
103
102
  describe "#start and #stop" do
@@ -105,9 +104,9 @@ module SteamHldsLogParser
105
104
  context "when 'start' and 'stop' are triggered one after the other"
106
105
  it "starts then stops an eventmachine with appropriate messages" do
107
106
  EM.run {
108
- capture_stdout { default_client.start }.should eq("## 0.0.0.0:27115 => HLDS connected and sending data\n")
107
+ expect(capture_stdout { default_client.start }).to eq("## 0.0.0.0:27115 => HLDS connected and sending data\n")
109
108
  EM.add_timer(0.2) {
110
- capture_stdout { default_client.stop }.should eq("## 0.0.0.0:27115 => HLDS Log Parser stopped.\n")
109
+ expect(capture_stdout { default_client.stop }).to eq("## 0.0.0.0:27115 => HLDS Log Parser stopped.\n")
111
110
  }
112
111
  }
113
112
  end
@@ -20,33 +20,33 @@ module SteamHldsLogParser
20
20
  context "when 'data' is given" do
21
21
 
22
22
  it "creates a 'Displayer'" do
23
- @displayer.should be_an_instance_of Displayer
23
+ expect(@displayer).to be_an_instance_of Displayer
24
24
  end
25
25
 
26
26
  describe "#get_data" do
27
27
  it "returns 'data' given as argument" do
28
- @displayer.get_data.should_not be_nil
29
- @displayer.get_data.should be(@data)
28
+ expect(@displayer.get_data).not_to be_nil
29
+ expect(@displayer.get_data).to be(@data)
30
30
  end
31
31
  end
32
32
 
33
33
  describe "#display_data" do
34
34
  it "displays 'data' given as argument" do
35
- eval(capture_stdout { @displayer.display_data }).should eq(@data)
35
+ expect(eval(capture_stdout { @displayer.display_data })).to eq(@data)
36
36
  end
37
37
  end
38
38
 
39
39
  describe "#get_translation" do
40
40
  it "returns translated 'data' given as argument" do
41
- @displayer.get_translation.should_not be_nil
42
- @displayer.get_translation.class.should be(String)
43
- @displayer.get_translation.should eq("[CT] 3 - 0 [T]")
41
+ expect(@displayer.get_translation).not_to be_nil
42
+ expect(@displayer.get_translation.class).to be(String)
43
+ expect(@displayer.get_translation).to eq("[CT] 3 - 0 [T]")
44
44
  end
45
45
  end
46
46
 
47
47
  describe "#display_translation" do
48
48
  it "displays translated 'data' given as argument" do
49
- capture_stdout { @displayer.display_translation }.should eq("[CT] 3 - 0 [T]\n")
49
+ expect(capture_stdout { @displayer.display_translation }).to eq("[CT] 3 - 0 [T]\n")
50
50
  end
51
51
  end
52
52
 
data/spec/handler_spec.rb CHANGED
@@ -24,23 +24,23 @@ module SteamHldsLogParser
24
24
  context "when 'host' and 'port' are given"
25
25
  it { should be_an_instance_of Handler }
26
26
  it "has a 'host' option" do
27
- @handler.options[:host].should_not be_nil
28
- @handler.options[:host].should eq("0.0.0.0")
27
+ expect(@handler.options[:host]).not_to be_nil
28
+ expect(@handler.options[:host]).to eq("0.0.0.0")
29
29
  end
30
30
  it "has a 'port' option" do
31
- @handler.options[:port].should_not be_nil
32
- @handler.options[:port].should eq(27115)
31
+ expect(@handler.options[:port]).not_to be_nil
32
+ expect(@handler.options[:port]).to be(27115)
33
33
  end
34
34
 
35
35
  describe "#post_init" do
36
36
  it "displays a console message when hlds connects" do
37
- capture_stdout { @handler.post_init }.should eq("## 0.0.0.0:27115 => HLDS connected and sending data\n")
37
+ expect(capture_stdout { @handler.post_init }).to eq("## 0.0.0.0:27115 => HLDS connected and sending data\n")
38
38
  end
39
39
  end
40
40
 
41
41
  describe "#unbind" do
42
42
  it "displays a console message when hlds disconnects" do
43
- capture_stdout { @handler.unbind }.should eq("## 0.0.0.0:27115 => HLDS disconnected? No data is received.\n")
43
+ expect(capture_stdout { @handler.unbind }).to eq("## 0.0.0.0:27115 => HLDS disconnected? No data is received.\n")
44
44
  end
45
45
  end
46
46
 
@@ -49,7 +49,7 @@ module SteamHldsLogParser
49
49
  context "when data is not supported" do
50
50
  it "returns anything" do
51
51
  data = '# L 05/10/2000 - 12:34:56: I am a fake line of log'
52
- @handler.receive_data(data).should eq(nil)
52
+ expect(@handler.receive_data(data)).to be_nil
53
53
  end
54
54
  end
55
55
 
@@ -58,9 +58,9 @@ module SteamHldsLogParser
58
58
  data = '# L 05/10/2000 - 12:34:56: Team "CT" scored "17" with "0" players"'
59
59
  expected = {:type=>"map_ends", :params=>{:winner=>"CT", :score=>"17"}}
60
60
  puts @handler.receive_data(data)
61
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
62
- @handler.receive_data(data).data.should eq(expected)
63
- @handler.receive_data(data).data.class.should eq(Hash)
61
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
62
+ expect(@handler.receive_data(data).data).to eq(expected)
63
+ expect(@handler.receive_data(data).data.class).to be(Hash)
64
64
  end
65
65
  end
66
66
 
@@ -68,9 +68,9 @@ module SteamHldsLogParser
68
68
  it "returns Hash on victory" do
69
69
  data = '# L 05/10/2000 - 12:34:56: Team "CT" triggered "CTs_Win" (CT "3") (T "0")'
70
70
  expected = {:type=>"victory", :params=>{:score_ct=>"3", :score_t=>"0"}}
71
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
72
- @handler.receive_data(data).data.should eq(expected)
73
- @handler.receive_data(data).data.class.should eq(Hash)
71
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
72
+ expect(@handler.receive_data(data).data).to eq(expected)
73
+ expect(@handler.receive_data(data).data.class).to be(Hash)
74
74
  end
75
75
  end
76
76
 
@@ -78,9 +78,9 @@ module SteamHldsLogParser
78
78
  it "returns Hash on killed" do
79
79
  data = '# L 05/10/2000 - 12:34:56: "Killer | Player<66><STEAM_ID_LAN><TERRORIST>" killed "Killed | Player<60><STEAM_ID_LAN><CT>" with "ak47"'
80
80
  expected = {:type=>"kill", :params => {:killer_team=>"T", :killer=>"Killer | Player", :killed_team=>"CT", :killed=>"Killed | Player", :weapon=>"ak47"}}
81
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
82
- @handler.receive_data(data).data.should eq(expected)
83
- @handler.receive_data(data).data.class.should eq(Hash)
81
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
82
+ expect(@handler.receive_data(data).data).to eq(expected)
83
+ expect(@handler.receive_data(data).data.class).to be(Hash)
84
84
  end
85
85
  end
86
86
 
@@ -88,9 +88,9 @@ module SteamHldsLogParser
88
88
  it "returns Hash on killed" do
89
89
  data = '# L 05/10/2000 - 12:34:56: "Killer | Player<66><STEAM_0:0:12345><TERRORIST>" killed "Killed | Player<60><STEAM_0:0:12345><CT>" with "ak47"'
90
90
  expected = {:type=>"kill", :params => {:killer_team=>"T", :killer=>"Killer | Player", :killed_team=>"CT", :killed=>"Killed | Player", :weapon=>"ak47"}}
91
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
92
- @handler.receive_data(data).data.should eq(expected)
93
- @handler.receive_data(data).data.class.should eq(Hash)
91
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
92
+ expect(@handler.receive_data(data).data).to eq(expected)
93
+ expect(@handler.receive_data(data).data.class).to be(Hash)
94
94
  end
95
95
  end
96
96
 
@@ -98,9 +98,9 @@ module SteamHldsLogParser
98
98
  it "returns Hash on suicide" do
99
99
  data = '# L 05/10/2000 - 12:34:56: "Player<66><STEAM_ID_LAN><TERRORIST>" committed suicide with "worldspawn" (world)'
100
100
  expected = {:type=>"suicide", :params=>{:killed=>"Player"}}
101
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
102
- @handler.receive_data(data).data.should eq(expected)
103
- @handler.receive_data(data).data.class.should eq(Hash)
101
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
102
+ expect(@handler.receive_data(data).data).to eq(expected)
103
+ expect(@handler.receive_data(data).data.class).to be(Hash)
104
104
  end
105
105
  end
106
106
 
@@ -108,9 +108,9 @@ module SteamHldsLogParser
108
108
  it "returns Hash on suicide" do
109
109
  data = '# L 05/10/2000 - 12:34:56: "Player<66><STEAM_0:0:12345><TERRORIST>" committed suicide with "worldspawn" (world)'
110
110
  expected = {:type=>"suicide", :params=>{:killed=>"Player"}}
111
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
112
- @handler.receive_data(data).data.should eq(expected)
113
- @handler.receive_data(data).data.class.should eq(Hash)
111
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
112
+ expect(@handler.receive_data(data).data).to eq(expected)
113
+ expect(@handler.receive_data(data).data.class).to be(Hash)
114
114
  end
115
115
  end
116
116
 
@@ -118,9 +118,9 @@ module SteamHldsLogParser
118
118
  it "returns Hash on event" do
119
119
  data = '# L 05/10/2000 - 12:34:56: "Killer | Player<66><STEAM_ID_LAN><CT>" triggered "Defused_The_Bomb"'
120
120
  expected = {:type=>"event", :params=> {:person_team=>"CT", :person=>"Killer | Player", :event_item=>"Defused_The_Bomb", :event_i18n=>"defused the bomb"}}
121
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
122
- @handler.receive_data(data).data.should eq(expected)
123
- @handler.receive_data(data).data.class.should eq(Hash)
121
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
122
+ expect(@handler.receive_data(data).data).to eq(expected)
123
+ expect(@handler.receive_data(data).data.class).to be(Hash)
124
124
  end
125
125
  end
126
126
 
@@ -128,9 +128,9 @@ module SteamHldsLogParser
128
128
  it "returns Hash on event" do
129
129
  data = '# L 05/10/2000 - 12:34:56: "Killer | Player<66><STEAM_0:0:12345><CT>" triggered "Defused_The_Bomb"'
130
130
  expected = {:type=>"event", :params=> {:person_team=>"CT", :person=>"Killer | Player", :event_item=>"Defused_The_Bomb", :event_i18n=>"defused the bomb"}}
131
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
132
- @handler.receive_data(data).data.should eq(expected)
133
- @handler.receive_data(data).data.class.should eq(Hash)
131
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
132
+ expect(@handler.receive_data(data).data).to eq(expected)
133
+ expect(@handler.receive_data(data).data.class).to be(Hash)
134
134
  end
135
135
  end
136
136
 
@@ -138,9 +138,9 @@ module SteamHldsLogParser
138
138
  it "returns Hash on changelevel" do
139
139
  data = '# L 05/10/2000 - 12:34:56: Loading map "de_dust2"'
140
140
  expected = {:type=>"loading_map", :params=>{:map=>"de_dust2"}}
141
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
142
- @handler.receive_data(data).data.should eq(expected)
143
- @handler.receive_data(data).data.class.should eq(Hash)
141
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
142
+ expect(@handler.receive_data(data).data).to eq(expected)
143
+ expect(@handler.receive_data(data).data.class).to be(Hash)
144
144
  end
145
145
  end
146
146
 
@@ -148,9 +148,9 @@ module SteamHldsLogParser
148
148
  it "returns Hash on changelevel" do
149
149
  data = '# L 05/10/2000 - 12:34:56: "Player<15><STEAM_0:0:12345><TERRORIST>" say "gg" (dead)'
150
150
  expected = {:type=>"chat", :params=>{:player=>"Player", :player_team=>"T", :chat=>"gg"}}
151
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
152
- @handler.receive_data(data).data.should eq(expected)
153
- @handler.receive_data(data).data.class.should eq(Hash)
151
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
152
+ expect(@handler.receive_data(data).data).to eq(expected)
153
+ expect(@handler.receive_data(data).data.class).to be(Hash)
154
154
  end
155
155
  end
156
156
 
@@ -158,9 +158,9 @@ module SteamHldsLogParser
158
158
  it "returns Hash on changelevel" do
159
159
  data = '# L 05/10/2000 - 12:34:56: "Player<15><STEAM_0:0:12345><TERRORIST>" say_team "Rush B"'
160
160
  expected = {:type=>"team_chat", :params=>{:player=>"Player", :player_team=>"T", :chat=>"Rush B"}}
161
- @handler.receive_data(data).class.should eq(RSpecDisplayer)
162
- @handler.receive_data(data).data.should eq(expected)
163
- @handler.receive_data(data).data.class.should eq(Hash)
161
+ expect(@handler.receive_data(data).class).to be(RSpecDisplayer)
162
+ expect(@handler.receive_data(data).data).to eq(expected)
163
+ expect(@handler.receive_data(data).data.class).to be(Hash)
164
164
  end
165
165
  end
166
166
 
@@ -169,9 +169,9 @@ module SteamHldsLogParser
169
169
  it "returns Hash on changelevel provided by 'displayer'" do
170
170
  data = '# L 05/10/2000 - 12:34:56: Loading map "de_dust2"'
171
171
  expected = {:type=>"loading_map", :params=>{:map=>"de_dust2"}}
172
- @custom_handler.displayer.should eq(RSpecDisplayer)
173
- @custom_handler.options[:display_changelevel].should be(true)
174
- @custom_handler.receive_data(data).data.should eq(expected)
172
+ expect(@custom_handler.displayer).to be(RSpecDisplayer)
173
+ expect(@custom_handler.options[:display_changelevel]).to be_true
174
+ expect(@custom_handler.receive_data(data).data).to eq(expected)
175
175
  end
176
176
  end
177
177
 
@@ -180,16 +180,16 @@ module SteamHldsLogParser
180
180
  describe "#get_full_team_name" do
181
181
  context "when short name is given"
182
182
  it "returns full name" do
183
- @handler.get_full_team_name("T").should eq("Terrorist")
184
- @handler.get_full_team_name("CT").should eq("Counter-Terrorist")
183
+ expect(@handler.get_full_team_name("T")).to eq("Terrorist")
184
+ expect(@handler.get_full_team_name("CT")).to eq("Counter-Terrorist")
185
185
  end
186
186
  end
187
187
 
188
188
  describe "#get_short_team_name" do
189
189
  context "when full name is given"
190
190
  it "returns short name" do
191
- @handler.get_short_team_name("TERRORIST").should eq("T")
192
- @handler.get_short_team_name("CT").should eq("CT")
191
+ expect(@handler.get_short_team_name("TERRORIST")).to eq("T")
192
+ expect(@handler.get_short_team_name("CT")).to eq("CT")
193
193
  end
194
194
  end
195
195
 
@@ -17,10 +17,10 @@ module SteamHldsLogParser
17
17
  f.each_line do |line|
18
18
  obj = @handler.receive_data(line)
19
19
  unless obj.nil?
20
- obj.class.should eq(RSpecDisplayer)
20
+ expect(obj.class).to be(RSpecDisplayer)
21
21
  hash = obj.data
22
22
  string = Displayer.new(hash).get_translation
23
- string.class.should eq(String)
23
+ expect(string.class).to be(String)
24
24
  end
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steam_hlds_log_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas VIAL
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2013-08-21 00:00:00 Z
12
+ date: 2013-08-26 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler