steam-condenser 1.3.4.1 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA512:
3
+ metadata.gz: 6e724ccb42cf8919d3c93f337b3aa9d318731c632c7d4f3a847c563e05d7a307c374df5e430bcedc0905f33addd5ad8d8b45fc3732fe281aebc622816d03c575
4
+ data.tar.gz: f0a334cb4fb78275d8b9bd54e1e57647fe6d32be8f43d29eac6636f339947c3eb095e9df1f5336f885b83cbf29a423f82328623c7e43d9457af5a8adf6c933af
5
+ SHA1:
6
+ metadata.gz: 4df93af96fcac8cf99dfcfe7898c39db94619635
7
+ data.tar.gz: 39366be0313e83bedb40fa1e1e735ca714e93763
data/Gemfile CHANGED
@@ -1,3 +1,7 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ group :test do
6
+ gem 'coveralls', :require => false
7
+ end
data/Gemfile.lock CHANGED
@@ -1,34 +1,46 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- steam-condenser (1.3.4)
4
+ steam-condenser (1.3.5)
5
5
  bzip2-ruby (~> 0.2.7)
6
6
  multi_json (~> 1.6.0)
7
7
  multi_xml (~> 0.5.2)
8
8
 
9
9
  GEM
10
- remote: http://rubygems.org/
10
+ remote: https://rubygems.org/
11
11
  specs:
12
12
  bzip2-ruby (0.2.7)
13
- diff-lcs (1.1.3)
13
+ colorize (0.5.8)
14
+ coveralls (0.6.2)
15
+ colorize
16
+ multi_json (~> 1.3)
17
+ rest-client
18
+ simplecov (>= 0.7)
19
+ thor
14
20
  metaclass (0.0.1)
21
+ mime-types (1.21)
15
22
  mocha (0.13.1)
16
23
  metaclass (~> 0.0.1)
17
24
  multi_json (1.6.0)
18
25
  multi_xml (0.5.3)
19
26
  rake (10.0.3)
20
- rspec-core (2.12.2)
21
- rspec-expectations (2.12.1)
22
- diff-lcs (~> 1.1.3)
27
+ rest-client (1.6.7)
28
+ mime-types (>= 1.16)
29
+ shoulda-context (1.0.2)
30
+ simplecov (0.7.1)
31
+ multi_json (~> 1.0)
32
+ simplecov-html (~> 0.7.1)
33
+ simplecov-html (0.7.1)
34
+ thor (0.17.0)
23
35
  yard (0.8.3)
24
36
 
25
37
  PLATFORMS
26
38
  ruby
27
39
 
28
40
  DEPENDENCIES
41
+ coveralls
29
42
  mocha (~> 0.13.0)
30
43
  rake (~> 10.0.1)
31
- rspec-core (~> 2.12.2)
32
- rspec-expectations (~> 2.12.1)
44
+ shoulda-context (~> 1.0.0)
33
45
  steam-condenser!
34
46
  yard (~> 0.8.0)
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008-2012, Sebastian Staudt
1
+ Copyright (c) 2008-2013, Sebastian Staudt
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification,
data/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  Steam Condenser
2
2
  ===============
3
3
 
4
- [![Build Status](https://secure.travis-ci.org/koraktor/steam-condenser-ruby.png)](http://travis-ci.org/koraktor/steam-condenser-ruby)
5
-
6
- [![Code Climate](https://codeclimate.com/github/koraktor/steam-condenser-ruby.png)](https://codeclimate.com/github/koraktor/steam-condenser-ruby)
4
+ [![Build Status](https://secure.travis-ci.org/koraktor/steam-condenser-ruby.png)](http://travis-ci.org/koraktor/steam-condenser-ruby) [![Dependency Status](https://gemnasium.com/koraktor/steam-condenser-ruby.png)](https://gemnasium.com/koraktor/steam-condenser-ruby) [![Code Climate](https://codeclimate.com/github/koraktor/steam-condenser-ruby.png)](https://codeclimate.com/github/koraktor/steam-condenser-ruby) [![Coverage Status](https://coveralls.io/repos/koraktor/steam-condenser-ruby/badge.png?branch=master)](https://coveralls.io/r/koraktor/steam-condenser-ruby)
7
5
 
8
6
  The Steam Condenser is a multi-language library for querying the Steam
9
7
  Community, Source and GoldSrc game servers as well as the Steam master servers.
@@ -57,6 +55,7 @@ included LICENSE file.
57
55
  * Sam Kinard – snkinard(at)gmail.com
58
56
  * "withgod" – noname(at)withgod.jp
59
57
  * John Amicangelo - amicangelo.j(at)husky.neu.edu
58
+ * Eric Litak – elitak(at)gmail.com
60
59
 
61
60
  ## See Also
62
61
 
@@ -97,13 +97,16 @@ module GameItem
97
97
  @item_set = inventory.item_schema.item_sets[schema_data[:item_set]]
98
98
  @level = item_data[:level]
99
99
  @name = schema_data[:item_name]
100
- @origin = inventory.item_schema.origins[item_data[:origin]]
101
100
  @original_id = item_data[:original_id]
102
101
  @preliminary = item_data[:inventory] & 0x40000000 != 0
103
102
  @quality = inventory.item_schema.qualities[item_data[:quality]]
104
103
  @tradeable = !!item_data[:flag_cannot_trade]
105
104
  @type = schema_data[:item_type_name]
106
105
 
106
+ if item_data.key? :origin
107
+ @origin = inventory.item_schema.origins[item_data[:origin]]
108
+ end
109
+
107
110
  attributes_data = schema_data[:attributes] || []
108
111
  attributes_data += item_data[:attributes] if item_data.key? :attributes
109
112
 
@@ -209,7 +209,7 @@ class SteamId
209
209
  @steam_id64 = id
210
210
  else
211
211
  if id =~ /^STEAM_[0-1]:[0-1]:[0-9]+$/ || id =~ /\[U:[0-1]:[0-9]+\]/
212
- @steam_id64 = self.steam_id_to_community_id id
212
+ @steam_id64 = SteamId.steam_id_to_community_id id
213
213
  else
214
214
  @custom_url = id.downcase
215
215
  end
@@ -117,7 +117,7 @@ module WebApi
117
117
  end
118
118
 
119
119
  begin
120
- puts "Querying Steam Web API: #{url}" if $DEBUG
120
+ puts "Querying Steam Web API: #{url.gsub(@@api_key, 'SECRET')}" if $DEBUG
121
121
  open(url, { :proxy => true }).read
122
122
  rescue OpenURI::HTTPError
123
123
  status = $!.io.status[0]
@@ -6,6 +6,6 @@
6
6
  module SteamCondenser
7
7
 
8
8
  # The current version of Steam Condenser
9
- VERSION = '1.3.4.1'
9
+ VERSION = '1.3.5'
10
10
 
11
11
  end
@@ -7,6 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.authors = [ 'Sebastian Staudt' ]
8
8
  s.email = [ 'koraktor@gmail.com' ]
9
9
  s.homepage = 'http://koraktor.de/steam-condenser'
10
+ s.license = 'BSD'
10
11
  s.summary = 'Steam Condenser - A Steam query library'
11
12
  s.description = 'A multi-language library for querying the Steam Community, Source, GoldSrc servers and Steam master servers'
12
13
 
data/test/helper.rb CHANGED
@@ -1,12 +1,15 @@
1
1
  # This code is free software; you can redistribute it and/or modify it under
2
2
  # the terms of the new BSD License.
3
3
  #
4
- # Copyright (c) 2011-2012, Sebastian Staudt
5
-
6
- require 'test/unit'
4
+ # Copyright (c) 2011-2013, Sebastian Staudt
7
5
 
8
6
  require 'rubygems'
9
7
 
8
+ require 'coveralls'
9
+ Coveralls.wear!
10
+
11
+ require 'test/unit'
12
+
10
13
  require 'mocha/setup'
11
14
  require 'shoulda-context'
12
15
 
metadata CHANGED
@@ -1,14 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steam-condenser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 85
5
- prerelease:
6
- segments:
7
- - 1
8
- - 3
9
- - 4
10
- - 1
11
- version: 1.3.4.1
4
+ version: 1.3.5
12
5
  platform: ruby
13
6
  authors:
14
7
  - Sebastian Staudt
@@ -16,21 +9,15 @@ autorequire:
16
9
  bindir: bin
17
10
  cert_chain: []
18
11
 
19
- date: 2013-02-13 00:00:00 Z
12
+ date: 2013-03-29 00:00:00 Z
20
13
  dependencies:
21
14
  - !ruby/object:Gem::Dependency
22
15
  name: bzip2-ruby
23
16
  prerelease: false
24
17
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
18
  requirements:
27
19
  - - ~>
28
20
  - !ruby/object:Gem::Version
29
- hash: 25
30
- segments:
31
- - 0
32
- - 2
33
- - 7
34
21
  version: 0.2.7
35
22
  type: :runtime
36
23
  version_requirements: *id001
@@ -38,15 +25,9 @@ dependencies:
38
25
  name: multi_json
39
26
  prerelease: false
40
27
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
28
  requirements:
43
29
  - - ~>
44
30
  - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 1
48
- - 6
49
- - 0
50
31
  version: 1.6.0
51
32
  type: :runtime
52
33
  version_requirements: *id002
@@ -54,15 +35,9 @@ dependencies:
54
35
  name: multi_xml
55
36
  prerelease: false
56
37
  requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
38
  requirements:
59
39
  - - ~>
60
40
  - !ruby/object:Gem::Version
61
- hash: 15
62
- segments:
63
- - 0
64
- - 5
65
- - 2
66
41
  version: 0.5.2
67
42
  type: :runtime
68
43
  version_requirements: *id003
@@ -70,15 +45,9 @@ dependencies:
70
45
  name: mocha
71
46
  prerelease: false
72
47
  requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
48
  requirements:
75
49
  - - ~>
76
50
  - !ruby/object:Gem::Version
77
- hash: 43
78
- segments:
79
- - 0
80
- - 13
81
- - 0
82
51
  version: 0.13.0
83
52
  type: :development
84
53
  version_requirements: *id004
@@ -86,15 +55,9 @@ dependencies:
86
55
  name: rake
87
56
  prerelease: false
88
57
  requirement: &id005 !ruby/object:Gem::Requirement
89
- none: false
90
58
  requirements:
91
59
  - - ~>
92
60
  - !ruby/object:Gem::Version
93
- hash: 77
94
- segments:
95
- - 10
96
- - 0
97
- - 1
98
61
  version: 10.0.1
99
62
  type: :development
100
63
  version_requirements: *id005
@@ -102,15 +65,9 @@ dependencies:
102
65
  name: shoulda-context
103
66
  prerelease: false
104
67
  requirement: &id006 !ruby/object:Gem::Requirement
105
- none: false
106
68
  requirements:
107
69
  - - ~>
108
70
  - !ruby/object:Gem::Version
109
- hash: 23
110
- segments:
111
- - 1
112
- - 0
113
- - 0
114
71
  version: 1.0.0
115
72
  type: :development
116
73
  version_requirements: *id006
@@ -118,15 +75,9 @@ dependencies:
118
75
  name: yard
119
76
  prerelease: false
120
77
  requirement: &id007 !ruby/object:Gem::Requirement
121
- none: false
122
78
  requirements:
123
79
  - - ~>
124
80
  - !ruby/object:Gem::Version
125
- hash: 63
126
- segments:
127
- - 0
128
- - 8
129
- - 0
130
81
  version: 0.8.0
131
82
  type: :development
132
83
  version_requirements: *id007
@@ -272,7 +223,9 @@ files:
272
223
  - test/steam/sockets/test_source_socket.rb
273
224
  - test/steam/sockets/test_steam_socket.rb
274
225
  homepage: http://koraktor.de/steam-condenser
275
- licenses: []
226
+ licenses:
227
+ - BSD
228
+ metadata: {}
276
229
 
277
230
  post_install_message:
278
231
  rdoc_options: []
@@ -280,29 +233,20 @@ rdoc_options: []
280
233
  require_paths:
281
234
  - lib
282
235
  required_ruby_version: !ruby/object:Gem::Requirement
283
- none: false
284
236
  requirements:
285
- - - ">="
237
+ - &id008
238
+ - ">="
286
239
  - !ruby/object:Gem::Version
287
- hash: 3
288
- segments:
289
- - 0
290
240
  version: "0"
291
241
  required_rubygems_version: !ruby/object:Gem::Requirement
292
- none: false
293
242
  requirements:
294
- - - ">="
295
- - !ruby/object:Gem::Version
296
- hash: 3
297
- segments:
298
- - 0
299
- version: "0"
243
+ - *id008
300
244
  requirements: []
301
245
 
302
246
  rubyforge_project:
303
- rubygems_version: 1.8.24
247
+ rubygems_version: 2.0.3
304
248
  signing_key:
305
- specification_version: 3
249
+ specification_version: 4
306
250
  summary: Steam Condenser - A Steam query library
307
251
  test_files:
308
252
  - test/core_ext/test_stringio.rb