quakelive_api 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +21 -0
- data/.travis.yml +9 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +76 -0
- data/Rakefile +14 -0
- data/lib/quakelive_api/base.rb +52 -0
- data/lib/quakelive_api/error/player_not_found.rb +6 -0
- data/lib/quakelive_api/error/request_error.rb +6 -0
- data/lib/quakelive_api/game_time.rb +34 -0
- data/lib/quakelive_api/items/award.rb +7 -0
- data/lib/quakelive_api/items/competitor.rb +7 -0
- data/lib/quakelive_api/items/favourite.rb +7 -0
- data/lib/quakelive_api/items/model.rb +7 -0
- data/lib/quakelive_api/items/recent_game.rb +7 -0
- data/lib/quakelive_api/items/record.rb +7 -0
- data/lib/quakelive_api/items/structurable.rb +13 -0
- data/lib/quakelive_api/items/weapon.rb +7 -0
- data/lib/quakelive_api/parser/awards.rb +50 -0
- data/lib/quakelive_api/parser/base.rb +33 -0
- data/lib/quakelive_api/parser/statistics.rb +81 -0
- data/lib/quakelive_api/parser/summary.rb +174 -0
- data/lib/quakelive_api/profile/awards/base.rb +24 -0
- data/lib/quakelive_api/profile/awards/career_milestones.rb +14 -0
- data/lib/quakelive_api/profile/awards/experience.rb +14 -0
- data/lib/quakelive_api/profile/awards/mad_skillz.rb +14 -0
- data/lib/quakelive_api/profile/awards/social_life.rb +15 -0
- data/lib/quakelive_api/profile/awards/sweet_success.rb +14 -0
- data/lib/quakelive_api/profile/statistics.rb +18 -0
- data/lib/quakelive_api/profile/summary.rb +35 -0
- data/lib/quakelive_api/profile.rb +43 -0
- data/lib/quakelive_api/version.rb +3 -0
- data/lib/quakelive_api.rb +38 -0
- data/quakelive_api.gemspec +28 -0
- data/test/fixtures/awards/career.txt +382 -0
- data/test/fixtures/awards/experience.txt +769 -0
- data/test/fixtures/awards/mad_skillz.txt +915 -0
- data/test/fixtures/awards/social_life.txt +155 -0
- data/test/fixtures/awards/sweet_success.txt +684 -0
- data/test/fixtures/profile/error.txt +24 -0
- data/test/fixtures/profile/not_found.txt +36 -0
- data/test/fixtures/profile/summary.txt +383 -0
- data/test/fixtures/statistics/emqz.txt +431 -0
- data/test/fixtures/statistics/xsi.txt +558 -0
- data/test/fixtures/summary/emqz.txt +304 -0
- data/test/fixtures/summary/mariano.txt +380 -0
- data/test/quakelive_api/game_time_test.rb +51 -0
- data/test/quakelive_api/profile/awards/career_milestones_test.rb +38 -0
- data/test/quakelive_api/profile/awards/experience_test.rb +38 -0
- data/test/quakelive_api/profile/awards/mad_skillz_test.rb +38 -0
- data/test/quakelive_api/profile/awards/social_life_test.rb +38 -0
- data/test/quakelive_api/profile/awards/sweet_success_test.rb +38 -0
- data/test/quakelive_api/profile/statistics_test.rb +75 -0
- data/test/quakelive_api/profile/summary_test.rb +97 -0
- data/test/quakelive_api/profile_test.rb +67 -0
- data/test/test_helper.rb +47 -0
- metadata +220 -0
@@ -0,0 +1,155 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx/0.7.67
|
3
|
+
Date: Fri, 16 Aug 2013 09:32:31 GMT
|
4
|
+
Content-Type: text/html
|
5
|
+
Transfer-Encoding: chunked
|
6
|
+
Connection: close
|
7
|
+
X-Powered-By: PHP/5.3.3
|
8
|
+
X-QL-IDENT: 0 standard
|
9
|
+
|
10
|
+
<div class="detailArea awardId330">
|
11
|
+
<img alt="" title="Stuff some stockings with a grenade or two." src="http://cdn.quakelive.com/web/2013071600/images/awards/md/winternights2012_v2013071600.0.png" width="61" height="61" class="fl" />
|
12
|
+
<p class="fl ml15 w247">
|
13
|
+
<span class="bigRedTxt">Winter Nights 2012</span>
|
14
|
+
<br />
|
15
|
+
<span class="blktxt_11">Complete a match on "Silent Night" or "Winter's Edge" during the 2012 holidays.</span>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
<ul class="fl">
|
19
|
+
<li class="blkbullets blktxt_11">Date awarded: 12/12/2012<!-- (999 days after joining) --></li>
|
20
|
+
<li class="blkbullets blktxt_11">
|
21
|
+
15 friends (44% of total) have earned this award
|
22
|
+
</li>
|
23
|
+
<li class="blkbullets blktxt_11">
|
24
|
+
34853 players (< 1% of total) have earned this award
|
25
|
+
</li>
|
26
|
+
</ul>
|
27
|
+
|
28
|
+
<div class="cl"></div>
|
29
|
+
</div>
|
30
|
+
<div class="detailArea awardId113">
|
31
|
+
<img alt="" title="Nice - but which one of you got the Friend Fragger." src="http://cdn.quakelive.com/web/2013071600/images/awards/md/friend_fighter_v2013071600.0.png" width="61" height="61" class="fl" />
|
32
|
+
<p class="fl ml15 w247">
|
33
|
+
<span class="bigRedTxt">Friend Fighter</span>
|
34
|
+
<br />
|
35
|
+
<span class="blktxt_11">Complete a match that at least 5 friends compete in too.</span>
|
36
|
+
</p>
|
37
|
+
|
38
|
+
<ul class="fl">
|
39
|
+
<li class="blkbullets blktxt_11">Date awarded: 08/24/2009<!-- (999 days after joining) --></li>
|
40
|
+
<li class="blkbullets blktxt_11">
|
41
|
+
22 friends (64% of total) have earned this award
|
42
|
+
</li>
|
43
|
+
<li class="blkbullets blktxt_11">
|
44
|
+
15238 players (< 1% of total) have earned this award
|
45
|
+
</li>
|
46
|
+
</ul>
|
47
|
+
|
48
|
+
<div class="cl"></div>
|
49
|
+
</div>
|
50
|
+
<div class="detailArea awardId112">
|
51
|
+
<img alt="" title="We have an opening in marketing for someone like you." src="http://cdn.quakelive.com/web/2013071600/images/awards/md/myquakebook_v2013071600.0.png" width="61" height="61" class="fl" />
|
52
|
+
<p class="fl ml15 w247">
|
53
|
+
<span class="bigRedTxt">MyQuakeBook</span>
|
54
|
+
<br />
|
55
|
+
<span class="blktxt_11">Invite 25 people who join QUAKE LIVE.</span>
|
56
|
+
</p>
|
57
|
+
|
58
|
+
<ul class="fl">
|
59
|
+
<li class="blkbullets blktxt_11">Date awarded: 07/09/2009<!-- (999 days after joining) --></li>
|
60
|
+
<li class="blkbullets blktxt_11">
|
61
|
+
16 friends (47% of total) have earned this award
|
62
|
+
</li>
|
63
|
+
<li class="blkbullets blktxt_11">
|
64
|
+
7867 players (< 1% of total) have earned this award
|
65
|
+
</li>
|
66
|
+
</ul>
|
67
|
+
|
68
|
+
<div class="cl"></div>
|
69
|
+
</div>
|
70
|
+
<div class="detailArea awardId123">
|
71
|
+
<img alt="" title="Position in Queue: 501337" src="http://cdn.quakelive.com/web/2013071600/images/awards/md/queue_live_v2013071600.0.png" width="61" height="61" class="fl" />
|
72
|
+
<p class="fl ml15 w247">
|
73
|
+
<span class="bigRedTxt">Queue LIVE</span>
|
74
|
+
<br />
|
75
|
+
<span class="blktxt_11">First to the fight! Joined when your position in queue gave you serious bragging rights.</span>
|
76
|
+
</p>
|
77
|
+
|
78
|
+
<ul class="fl">
|
79
|
+
<li class="blkbullets blktxt_11">Date awarded: 03/11/2009<!-- (999 days after joining) --></li>
|
80
|
+
<li class="blkbullets blktxt_11">
|
81
|
+
15 friends (44% of total) have earned this award
|
82
|
+
</li>
|
83
|
+
<li class="blkbullets blktxt_11">
|
84
|
+
15193 players (< 1% of total) have earned this award
|
85
|
+
</li>
|
86
|
+
</ul>
|
87
|
+
|
88
|
+
<div class="cl"></div>
|
89
|
+
</div>
|
90
|
+
<div class="detailArea awardId107">
|
91
|
+
<img alt="" title="We couldn't have done it without you." src="http://cdn.quakelive.com/web/2013071600/images/awards/md/crash_dummy_v2013071600.0.png" width="61" height="61" class="fl" />
|
92
|
+
<p class="fl ml15 w247">
|
93
|
+
<span class="bigRedTxt">Crash Dummy</span>
|
94
|
+
<br />
|
95
|
+
<span class="blktxt_11">Awarded to some portion of our beta testers.</span>
|
96
|
+
</p>
|
97
|
+
|
98
|
+
<ul class="fl">
|
99
|
+
<li class="blkbullets blktxt_11">Date awarded: 02/23/2009<!-- (999 days after joining) --></li>
|
100
|
+
<li class="blkbullets blktxt_11">
|
101
|
+
12 friends (35% of total) have earned this award
|
102
|
+
</li>
|
103
|
+
<li class="blkbullets blktxt_11">
|
104
|
+
7698 players (< 1% of total) have earned this award
|
105
|
+
</li>
|
106
|
+
</ul>
|
107
|
+
|
108
|
+
<div class="cl"></div>
|
109
|
+
</div>
|
110
|
+
<a class="unearnedAwardsLabel" href="javascript:;" onclick="$('.unearnedAwardType5').show();$(this).hide()">Show unearned awards</a>
|
111
|
+
|
112
|
+
<div class="detailArea_off unearnedAwardType5">
|
113
|
+
<img alt="" src="http://cdn.quakelive.com/web/2013071600/images/awards/md/qc2009_qc_v2013071600.0.png" width="61" height="61" class="fl" />
|
114
|
+
<p class="fl ml15 w247">
|
115
|
+
<span class="bigRedTxt">QuakeCon 2009</span>
|
116
|
+
<br />
|
117
|
+
<span class="blktxt_11">Presented to any player who completes a game of QUAKE LIVE at QuakeCon.</span>
|
118
|
+
</p>
|
119
|
+
|
120
|
+
<ul class="fl">
|
121
|
+
<li class="blkbullets blktxt_11">
|
122
|
+
No friends have earned this award
|
123
|
+
</li>
|
124
|
+
|
125
|
+
<li class="blkbullets blktxt_11">
|
126
|
+
323 players (< 1% of total) have earned this award
|
127
|
+
</li>
|
128
|
+
</ul>
|
129
|
+
|
130
|
+
<div class="cl"></div>
|
131
|
+
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div class="detailArea_off unearnedAwardType5">
|
135
|
+
<img alt="" src="http://cdn.quakelive.com/web/2013071600/images/awards/md/qc2009_vip_v2013071600.0.png" width="61" height="61" class="fl" />
|
136
|
+
<p class="fl ml15 w247">
|
137
|
+
<span class="bigRedTxt">QuakeCon 2009 VIP</span>
|
138
|
+
<br />
|
139
|
+
<span class="blktxt_11">Presented to the QuakeCon 2009 senior staff. Thank you.</span>
|
140
|
+
</p>
|
141
|
+
|
142
|
+
<ul class="fl">
|
143
|
+
<li class="blkbullets blktxt_11">
|
144
|
+
No friends have earned this award
|
145
|
+
</li>
|
146
|
+
|
147
|
+
<li class="blkbullets blktxt_11">
|
148
|
+
17 players (< 1% of total) have earned this award
|
149
|
+
</li>
|
150
|
+
</ul>
|
151
|
+
|
152
|
+
<div class="cl"></div>
|
153
|
+
|
154
|
+
</div>
|
155
|
+
|