gamespy_query 0.2.0pre7 → 0.2.0pre8

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,8 +87,8 @@ module GamespyQuery
87
87
  dat = master.process list
88
88
 
89
89
  ded = "1"
90
- gm_dat = dedicated_only || sm_dedicated_only ? dat.keys.select{|k| dat[k][:gamedata] && dat[k][:gamedata][:dedicated] == ded } : dat.keys
91
- sm = GamespyQuery::SocketMaster.new(gm_dat)
90
+ gm_dat = dedicated_only || sm_dedicated_only ? dat.select{|item| item[:gamedata] && item[:gamedata][:dedicated] == ded } : dat
91
+ sm = GamespyQuery::SocketMaster.new(gm_dat.keys)
92
92
  sockets = sm.process!
93
93
  sockets.select{|s| s.valid? }.each do |s|
94
94
  begin
@@ -1,4 +1,4 @@
1
1
  module GamespyQuery
2
2
  # Version of the library
3
- VERSION = "0.2.0pre7"
3
+ VERSION = "0.2.0pre8"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamespy_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0pre7
4
+ version: 0.2.0pre8
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors: