vapor 0.0.3 → 0.0.4

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/README.md CHANGED
@@ -27,7 +27,7 @@ Vapor::User.new('pedronascimento').games
27
27
 
28
28
  * It doesn't get lots of info, just the ones I need for now.
29
29
  * It relies on the XML output on Steam, which is not reliable at all.
30
- * It is way simples than steam-condenser.
30
+ * It is way simpler than steam-condenser.
31
31
 
32
32
  ## Contributing
33
33
 
@@ -6,6 +6,10 @@ module Vapor
6
6
  def key
7
7
  @key ||= ENV['STEAM_API_KEY']
8
8
  end
9
+
10
+ def key=(key)
11
+ @key = key
12
+ end
9
13
  end
10
14
  BASE_URL="http://api.steampowered.com"
11
15
  attr_reader :client
@@ -1,3 +1,3 @@
1
1
  module Vapor
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -9,5 +9,9 @@ module Vapor
9
9
  it 'fetches player summaries for an user', :vcr do
10
10
  api.player_summaries_for(user).should == {:steamid=>"76561198021477729", :communityvisibilitystate=>3, :profilestate=>1, :personaname=>"Lunks", :lastlogoff=>1353928831, :profileurl=>"http://steamcommunity.com/id/pedronascimento/", :avatar=>"http://media.steampowered.com/steamcommunity/public/images/avatars/4c/4c76064be169987500e4c7e228aabe3e33e1df47.jpg", :avatarmedium=>"http://media.steampowered.com/steamcommunity/public/images/avatars/4c/4c76064be169987500e4c7e228aabe3e33e1df47_medium.jpg", :avatarfull=>"http://media.steampowered.com/steamcommunity/public/images/avatars/4c/4c76064be169987500e4c7e228aabe3e33e1df47_full.jpg", :personastate=>1, :primaryclanid=>"103582791429521408", :timecreated=>1266769126, :loccountrycode=>"BR"}
11
11
  end
12
+ it "stores the API key provided by user" do
13
+ Vapor::API.key = "123456"
14
+ Vapor::API.key.should == "123456"
15
+ end
12
16
  end
13
17
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vapor
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Pedro Nascimento
@@ -201,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  segments:
203
203
  - 0
204
- hash: -681727609897504390
204
+ hash: 2118780334653856203
205
205
  none: false
206
206
  required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  requirements:
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  segments:
212
212
  - 0
213
- hash: -681727609897504390
213
+ hash: 2118780334653856203
214
214
  none: false
215
215
  requirements: []
216
216
  rubyforge_project: