steam-client 0.0.2 → 0.0.3
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.
- data/lib/steam-client/profile.rb +2 -1
- data/lib/steam-client/version.rb +1 -1
- data/spec/profile_spec.rb +1 -0
- metadata +2 -2
data/lib/steam-client/profile.rb
CHANGED
@@ -18,7 +18,7 @@ module SteamClient
|
|
18
18
|
|
19
19
|
class Profile
|
20
20
|
|
21
|
-
attr_accessor :steamID64, :onlineState, :avatarIcon, :avatarMedium, :avatarFull, :customURL, :hoursPlayed2Wk, :location, :realname, :friends, :games
|
21
|
+
attr_accessor :steamID, :steamID64, :onlineState, :avatarIcon, :avatarMedium, :avatarFull, :customURL, :hoursPlayed2Wk, :location, :realname, :friends, :games
|
22
22
|
|
23
23
|
def initialize(steamID64 = nil)
|
24
24
|
self.steamID64 = steamID64
|
@@ -35,6 +35,7 @@ module SteamClient
|
|
35
35
|
|
36
36
|
profile = Profile.new
|
37
37
|
|
38
|
+
profile.steamID = p['profile']['steamID']
|
38
39
|
profile.steamID64 = p['profile']['steamID64']
|
39
40
|
profile.avatarIcon = p['profile']['avatarIcon']
|
40
41
|
profile.avatarMedium = p['profile']['avatarMedium']
|
data/lib/steam-client/version.rb
CHANGED
data/spec/profile_spec.rb
CHANGED
@@ -7,6 +7,7 @@ describe SteamClient::Profile do
|
|
7
7
|
profile = @client.find_profile_by_name("robinwalker")
|
8
8
|
|
9
9
|
profile.class.should be SteamClient::Profile
|
10
|
+
profile.steamID.should match "Robin"
|
10
11
|
profile.steamID64.should match "76561197960435530"
|
11
12
|
profile.avatarIcon.should match "http://media.steampowered.com/steamcommunity/public/images/avatars/f1/f1dd60a188883caf82d0cbfccfe6aba0af1732d4.jpg"
|
12
13
|
profile.avatarMedium.should match "http://media.steampowered.com/steamcommunity/public/images/avatars/f1/f1dd60a188883caf82d0cbfccfe6aba0af1732d4_medium.jpg"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steam-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -52,7 +52,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
52
|
version: '0'
|
53
53
|
segments:
|
54
54
|
- 0
|
55
|
-
hash:
|
55
|
+
hash: -4445028520732576851
|
56
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|