starcraft2 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -2
- data/fixtures/cassettes/last_grandmaster.yml +3237 -0
- data/lib/starcraft2/client.rb +37 -33
- data/lib/starcraft2/loader.rb +11 -28
- data/lib/starcraft2/utils.rb +20 -0
- data/spec/spec_helper.rb +5 -3
- data/spec/starcraft2/client_spec.rb +56 -20
- data/spec/starcraft2/profile_spec.rb +2 -1
- data/spec/starcraft2/reward_spec.rb +28 -29
- data/spec/starcraft2/utils_spec.rb +78 -0
- data/starcraft2.gemspec +1 -1
- metadata +2 -3
- data/fixtures/vcr_cassettes/grandmaster.yml +0 -3221
- data/fixtures/vcr_cassettes/previous_grandmaster.yml +0 -39
@@ -1,39 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://us.battle.net/api/sc2/ladder/grandmaster/last
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
headers:
|
15
|
-
Date:
|
16
|
-
- Wed, 14 Aug 2013 03:31:06 GMT
|
17
|
-
Server:
|
18
|
-
- Apache
|
19
|
-
X-Frame-Options:
|
20
|
-
- SAMEORIGIN
|
21
|
-
Content-Language:
|
22
|
-
- en-US
|
23
|
-
Vary:
|
24
|
-
- Accept-Encoding
|
25
|
-
Transfer-Encoding:
|
26
|
-
- chunked
|
27
|
-
Content-Type:
|
28
|
-
- application/json;charset=UTF-8
|
29
|
-
body:
|
30
|
-
encoding: UTF-8
|
31
|
-
string: |-
|
32
|
-
{
|
33
|
-
"status" : "nok",
|
34
|
-
"code" : 500,
|
35
|
-
"message" : "Internal Server Error"
|
36
|
-
}
|
37
|
-
http_version:
|
38
|
-
recorded_at: Wed, 14 Aug 2013 03:31:05 GMT
|
39
|
-
recorded_with: VCR 2.5.0
|