gamertag 1.0.2 → 1.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/.rspec +3 -0
- data/.rvmrc +1 -1
- data/CHANGELOG.md +15 -5
- data/README.mdown +4 -1
- data/gamertag.gemspec +6 -6
- data/lib/gamertag/played_games.rb +31 -8
- data/lib/gamertag/profile.rb +3 -0
- data/lib/gamertag/simple_profile.rb +35 -5
- data/lib/gamertag/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/PlayedGames_Belial1984.yml +1289 -2062
- data/spec/fixtures/vcr_cassettes/PlayedGames_some_user.yml +100 -0
- data/spec/fixtures/vcr_cassettes/SimpleProfile_Belial1984.yml +36 -23
- data/spec/played_games_spec.rb +19 -11
- data/spec/simple_profile_spec.rb +27 -19
- data/spec/spec_helper.rb +2 -2
- data/spec/version_spec.rb +1 -1
- metadata +73 -29
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
+
request: !ruby/struct:VCR::Request
|
|
4
|
+
method: :get
|
|
5
|
+
uri: http://www.xboxgamertag.com:80/search/some+user/
|
|
6
|
+
body: !!null
|
|
7
|
+
headers: !!null
|
|
8
|
+
response: !ruby/struct:VCR::Response
|
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
|
10
|
+
code: 500
|
|
11
|
+
message: Internal Server Error
|
|
12
|
+
headers:
|
|
13
|
+
set-cookie:
|
|
14
|
+
- PHPSESSID=q43afhmf2th49p3hluntbkp8h0; path=/
|
|
15
|
+
expires:
|
|
16
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
|
17
|
+
cache-control:
|
|
18
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
|
19
|
+
pragma:
|
|
20
|
+
- no-cache
|
|
21
|
+
vary:
|
|
22
|
+
- Accept-Encoding
|
|
23
|
+
content-type:
|
|
24
|
+
- text/html; charset=UTF-8
|
|
25
|
+
transfer-encoding:
|
|
26
|
+
- chunked
|
|
27
|
+
date:
|
|
28
|
+
- Thu, 20 Dec 2012 20:16:22 GMT
|
|
29
|
+
x-varnish:
|
|
30
|
+
- '1120123603'
|
|
31
|
+
age:
|
|
32
|
+
- '0'
|
|
33
|
+
connection:
|
|
34
|
+
- keep-alive
|
|
35
|
+
x-cache:
|
|
36
|
+
- MISS
|
|
37
|
+
server:
|
|
38
|
+
- Xbox Gamertag
|
|
39
|
+
body: ! "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html
|
|
40
|
+
xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:og=\"http://ogp.me/ns#\"\n xmlns:fb=\"https://www.facebook.com/2008/fbml\"
|
|
41
|
+
lang=\"en\">\n<head>\n<title>Xbox Gamertag data is broken </title>\n<meta http-equiv=\"Content-Type\"
|
|
42
|
+
content=\"text/html; charset=utf-8\" />\n<meta name=\"description\" content=\"Search
|
|
43
|
+
Xbox Live Gamertags, Create Xbox Gamercards using the Xbox Gamerator. Get Gamertag
|
|
44
|
+
Suggestions for a new Gamertag. Find Game information, reviews and more\" />\n<meta
|
|
45
|
+
name=\"keywords\" content=\"xbox, xbox gamertag, gamertag, gamertag search,
|
|
46
|
+
xbox gamertag search, xbox live, gamercards, gamertag generator, gamercard generator\"
|
|
47
|
+
/>\n<meta name=\"robots\" content=\"index, follow\" />\n<meta name=\"google-site-verification\"
|
|
48
|
+
content=\"DawowDmV2J68zDd4Ej0RdjF9C4mPykmq7smE1F2bgTw\" />\n<!-- Stylesheets
|
|
49
|
+
-->\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/resources/css/main.css?1340884017\"
|
|
50
|
+
/>\n\n\n<!-- Javascript -->\n<script type=\"text/javascript\" src=\"/resources/scripts/jquery-1.7.2.min.js?1340884017\"></script>\n\n<!--[if
|
|
51
|
+
lt IE 7]>\n<script type=\"text/javascript\" src=\"/resources/scripts/supersleight.plugin.js?1340884017\"></script>\n<script>\n$(document).ready(function()\n{\n\t$('img,
|
|
52
|
+
div, input').supersleight();\n});\n</script>\n<![endif]-->\n\n<div id=\"fb-root\"></div>\n<script
|
|
53
|
+
type=\"text/javascript\">(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n
|
|
54
|
+
\ if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n
|
|
55
|
+
\ js.src = \"//connect.facebook.net/en_GB/all.js#xfbml=1&appId=190837717693571\";\n
|
|
56
|
+
\ fjs.parentNode.insertBefore(js, fjs);\n}(document, 'script', 'facebook-jssdk'));\n</script>\n\n\n\n</head>\n<body>\n\n\n\n<div
|
|
57
|
+
id=\"container\"><noscript>For full functionality of this page it is necessary
|
|
58
|
+
to enable JavaScript. Here are the <a href=\"http://www.enable-javascript.com\"
|
|
59
|
+
target=\"_blank\"> instructions how to enable JavaScript in your web browser</a></noscript>\n\t\n\t<h1
|
|
60
|
+
id=\"MainTitle\"><a href=\"http://www.xboxgamertag.com/\">Xbox Gamertag</a></h1>\n\t\t\t\t\t\t\t\t\n\n<div
|
|
61
|
+
class=\"topAd\">\n\n<!-- BuySellAds.com Ad Code -->\n<script type=\"text/javascript\">\n(function(){\n
|
|
62
|
+
\ var bsa = document.createElement('script');\n bsa.type = 'text/javascript';\n
|
|
63
|
+
\ bsa.async = true;\n bsa.src = 'http://s3.buysellads.com/ac/bsa.js';\n
|
|
64
|
+
\ (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);\n})();\n</script>\n<!--
|
|
65
|
+
End BuySellAds.com Ad Code -->\n<div id=\"bsap_1263149\" class=\"bsarocks bsap_98d6915731db38cdebc72e15b7b23b2b\"></div>\n\n\n\n\n\n\n</div>\t\n\t\n\t<div
|
|
66
|
+
id=\"topLinks\">\n\t\t<ul>\n\t\t\t\t\t\t<li><a href=\"/register/\"><strong>Register</strong></a>
|
|
67
|
+
| </li>\n\t\t\t<li><a href=\"/login/\">Login</a></li>\n\t\t\t\t\t\t\n\t\t</ul>\n\t</div>\n\t<div
|
|
68
|
+
id=\"XGTHeader\">\n\t\t<ul id=\"Menu\">\n\t\t\t<li class=\"image\"><a href=\"/\"><img
|
|
69
|
+
src=\"/resources/images/homeHouse.png\" alt=\"xboxgamertag\" /></a></li>\n\t\t\t<li
|
|
70
|
+
class=\"left\"><a href=\"/gamercard/\">Gamercards</a></li>\n\t\t\t<li class=\"left\"><a
|
|
71
|
+
href=\"/gamertag-generator/\">Gamertag Generator</a></li>\n\t\t\t<li class=\"left\"><a
|
|
72
|
+
href=\"/achievements/\">Achievements</a></li>\n\t\t\t<li class=\"left\"><a href=\"/leaderboards/\">Leaderboards</a></li>\n\n\t\t\t<!---<li
|
|
73
|
+
class=\"rightOption\"><a href=\"/forum/\">Forums</a></li>-->\n\t\t\t\n\t\t\t<li
|
|
74
|
+
class=\"rightOption\"><a href=\"http://www.facebook.com/pages/Xbox-Gamertag/134742809876061\"
|
|
75
|
+
rel=\"nofollow\" target=\"_blank\">Share Your Gamertag</a></li>\n\n\n\t\t</ul>\n\t\t\t</div>\n\t<div
|
|
76
|
+
id=\"XGTMain\">\n\t<h2>An error occured...</h2>\r\n\t<div class=\"centerContent\">\r\n\t<p>It
|
|
77
|
+
seems as if the Xbox.com feeds are down.</p>\r\n\t<p>It's probably just a temporary
|
|
78
|
+
issue, try again in a while</p>\r\n\t<p>In the mean time, come have a chat with
|
|
79
|
+
us on the forums and have some tea...</p>\r\n\t\t<img src=\"/resources/images/icons/teatime.png\"
|
|
80
|
+
alt=\"Why not have some tea? (or coffee, its better)\" title=\"Why not have
|
|
81
|
+
some tea? (or coffee, its better)\" />\r\n\t\t\r\n\t\t<br /><br /> <h2>If you're
|
|
82
|
+
bored, add us on Xbox Live before our friends list gets full! <br />Gamertag:
|
|
83
|
+
XboxGamertagCom</h2>\r\n\t</div>\r\n</div>\n\t<div class=\"XGTFooter\">\n\t\t<div
|
|
84
|
+
class=\"rightCol\">\n\t\t\t<p> </p>\n\t\t</div>\n\t\t\n\t</div>\n</div>\n<div
|
|
85
|
+
class=\"XGTFooter\">\n\t<div class=\"leftCol\">\n\t\t<a href=\"/contact/\">Contact
|
|
86
|
+
Us</a> - <a href=\"/legal/terms/\">Terms of Use</a> - <a href=\"/legal/privacy/\">Privacy
|
|
87
|
+
Policy</a> - <a href=\"/sitemap/\">Sitemap</a>\n\t\t<br />\n\t\tFollow us on:
|
|
88
|
+
<a href=\"http://www.facebook.com/pages/Xbox-Gamertag/134742809876061\" target=_blank\"
|
|
89
|
+
rel=\"nofollow\">Facebook</a> - <a href=\"http://twitter.com/XboxGamerTagCom\"
|
|
90
|
+
\ target=_blank\" rel=\"nofollow\">Twitter</a> - <a href=\"http://www.youtube.com/user/XboxGamertagCom\"
|
|
91
|
+
target=_blank\" rel=\"nofollow\">Youtube</a>\n\n</div>\n\t<div class=\"rightCol\">\n\t\t<p>Xboxgamertag.com
|
|
92
|
+
© 2010 - 2012</p>\n\t\t<p>XboxGamertag.com is a member of the Xbox Community
|
|
93
|
+
Developer Program (XCDP)</p>\n\t\t<p>We are not affiliated with Microsoft or
|
|
94
|
+
Xbox</p>\n\t</div>\t\n</div>\n<script type=\"text/javascript\"> var _gaq =
|
|
95
|
+
_gaq || []; _gaq.push(['_setAccount', 'UA-16948229-1']); _gaq.push(['_trackPageview']);
|
|
96
|
+
\ (function() { var ga = document.createElement('script'); ga.type = 'text/javascript';
|
|
97
|
+
ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl'
|
|
98
|
+
: 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0];
|
|
99
|
+
s.parentNode.insertBefore(ga, s); })();</script>\n</body>\n</html>\n"
|
|
100
|
+
http_version: '1.1'
|
|
@@ -1,32 +1,45 @@
|
|
|
1
|
-
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
method:
|
|
5
|
-
uri: http://api.xboxleaders.com
|
|
6
|
-
body:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.xboxleaders.com/v2/?gamertag=Belial1984&format=json
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers: {}
|
|
10
|
+
response:
|
|
11
|
+
status:
|
|
10
12
|
code: 200
|
|
11
13
|
message: OK
|
|
12
|
-
headers:
|
|
13
|
-
|
|
14
|
+
headers:
|
|
15
|
+
Date:
|
|
14
16
|
- Wed, 24 Aug 2011 16:40:13 GMT
|
|
15
|
-
|
|
16
|
-
- Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1
|
|
17
|
-
|
|
17
|
+
Server:
|
|
18
|
+
- Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1
|
|
19
|
+
mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.13
|
|
20
|
+
X-Powered-By:
|
|
18
21
|
- PHP/5.2.13
|
|
19
|
-
|
|
22
|
+
Expires:
|
|
20
23
|
- Mon, 26 Jul 1997 05:00:00 GMT
|
|
21
|
-
|
|
24
|
+
Last-Modified:
|
|
22
25
|
- Wed, 24 Aug 2011 16:40:14GMT
|
|
23
|
-
|
|
26
|
+
Cache-Control:
|
|
24
27
|
- no-cache, must-revalidate
|
|
25
|
-
|
|
28
|
+
Pragma:
|
|
26
29
|
- no-cache
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
+
Content-Length:
|
|
31
|
+
- '3225'
|
|
32
|
+
Content-Type:
|
|
30
33
|
- application/json
|
|
31
|
-
body:
|
|
32
|
-
|
|
34
|
+
body:
|
|
35
|
+
encoding: UTF-8
|
|
36
|
+
string: ! '{"user":{"gamertag":"belial1984","is_valid":1,"profile_link":"http:\/\/live.xbox.com\/member\/belial1984","launch_team":{"xbl":0,"nxe":0,"kinect":0},"account_status":"Gold","gender":"Male","is_cheater":0,"online":0,"online_status":"Last
|
|
37
|
+
seen 8\/22\/2011 playing Modern Warfare® 2","avatars":{"gamer_tile":"http:\/\/avatar.xboxlive.com\/avatar\/belial1984\/avatarpic-l.png","small_gamerpic":"http:\/\/avatar.xboxlive.com\/avatar\/belial1984\/avatarpic-s.png","large_gamerpic":"http:\/\/avatar.xboxlive.com\/avatar\/belial1984\/avatarpic-l.png","body_gamerpic":"http:\/\/avatar.xboxlive.com\/avatar\/belial1984\/avatar-body.png"},"reputation":100,"gamerscore":11910,"location":"london","motto":"","name":"baris
|
|
38
|
+
balic","bio":"","recent_games":{"1":{"title":"Modern Warfare® 2","tid":1096157207,"marketplace_url":"http:\/\/marketplace.xbox.com\/Title\/1096157207","compare_url":"http:\/\/live.xbox.com\/en-US\/GameCenter\/Achievements?title=1096157207&compareTo=belial1984","image":"http:\/\/tiles.xbox.com\/tiles\/l6\/Vi\/0Gdsb2JhbA9ECgQJGgYfVl5UL2ljb24vMC84MDAwIAAAAAAAAP9NpYg=.jpg","last_played":"1313967600","earned_gamerscore":930,"available_gamerscore":1000,"earned_achievements":43,"available_achievements":50,"percentage_complete":86},"2":{"title":"Halo:
|
|
39
|
+
Reach","tid":1297287259,"marketplace_url":"http:\/\/marketplace.xbox.com\/Title\/1297287259","compare_url":"http:\/\/live.xbox.com\/en-US\/GameCenter\/Achievements?title=1297287259&compareTo=belial1984","image":"http:\/\/tiles.xbox.com\/tiles\/ih\/ew\/0Wdsb2JhbA9ECgR8GgMfVlohL2ljb24vMC84MDAwIAAAAAAAAP6fF5U=.jpg","last_played":"1299542400","earned_gamerscore":375,"available_gamerscore":1400,"earned_achievements":26,"available_achievements":59,"percentage_complete":44},"3":{"title":"Portal
|
|
40
|
+
2","tid":1161890066,"marketplace_url":"http:\/\/marketplace.xbox.com\/Title\/1161890066","compare_url":"http:\/\/live.xbox.com\/en-US\/GameCenter\/Achievements?title=1161890066&compareTo=belial1984","image":"http:\/\/tiles.xbox.com\/tiles\/x2\/5+\/1mdsb2JhbA9ECgQNGwEfV15RL2ljb24vMC84MDAwIAAAAAAAAPlRbtg=.jpg","last_played":"","earned_gamerscore":345,"available_gamerscore":1000,"earned_achievements":21,"available_achievements":50,"percentage_complete":42},"4":{"title":"SUPER
|
|
41
|
+
STREETFIGHTER IV","tid":1128466428,"marketplace_url":"http:\/\/marketplace.xbox.com\/Title\/1128466428","compare_url":"http:\/\/live.xbox.com\/en-US\/GameCenter\/Achievements?title=1128466428&compareTo=belial1984","image":"http:\/\/tiles.xbox.com\/tiles\/oX\/8i\/0Wdsb2JhbA9ECgQLGwMfWSkgL2ljb24vMC84MDAwIAAAAAAAAP4Nf74=.jpg","last_played":"1309906800","earned_gamerscore":470,"available_gamerscore":1160,"earned_achievements":28,"available_achievements":58,"percentage_complete":48},"5":{"title":"Child
|
|
42
|
+
of Eden","tid":1431504972,"marketplace_url":"http:\/\/marketplace.xbox.com\/Title\/1431504972","compare_url":"http:\/\/live.xbox.com\/en-US\/GameCenter\/Achievements?title=1431504972&compareTo=belial1984","image":"http:\/\/tiles.xbox.com\/tiles\/z2\/Jl\/1mdsb2JhbA9ECgUNGgMfVlsgL2ljb24vMC84MDAwIAAAAAAAAPlKYtA=.jpg","last_played":"","earned_gamerscore":0,"available_gamerscore":1000,"earned_achievements":0,"available_achievements":49,"percentage_complete":0}}}}'
|
|
43
|
+
http_version: '1.1'
|
|
44
|
+
recorded_at: Thu, 25 Aug 2011 00:52:26 GMT
|
|
45
|
+
recorded_with: VCR 2.3.0
|
data/spec/played_games_spec.rb
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
|
|
3
3
|
describe Gamertag::PlayedGames do
|
|
4
|
-
use_vcr_cassette('PlayedGames_Belial1984')
|
|
5
|
-
|
|
6
|
-
it "should return played games" do
|
|
7
|
-
played_games = Gamertag::PlayedGames.new('Belial1984')
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
context "valid user" do
|
|
6
|
+
use_vcr_cassette('PlayedGames_Belial1984')
|
|
7
|
+
it "should return played games" do
|
|
8
|
+
played_games = Gamertag::PlayedGames.new('Belial1984')
|
|
9
|
+
|
|
10
|
+
played_games.first.title.should include("Modern Warfare")
|
|
11
|
+
played_games.count.should == 88
|
|
12
|
+
played_games.each {|game| game.title.nil?.should be_false}
|
|
13
|
+
gamerscore_values = [:above_average, :below_average, :undefined]
|
|
14
|
+
played_games.each do |game|
|
|
15
|
+
gamerscore_values.should include(game.relative_gamerscore)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
context "invalid user" do
|
|
20
|
+
use_vcr_cassette('PlayedGames_some_user')
|
|
21
|
+
it "should not raise an error" do
|
|
22
|
+
expect{Gamertag::PlayedGames.new('some user')}.to_not raise_error(URI::InvalidURIError)
|
|
15
23
|
end
|
|
16
24
|
end
|
|
17
|
-
end
|
|
25
|
+
end
|
data/spec/simple_profile_spec.rb
CHANGED
|
@@ -2,27 +2,35 @@ require 'spec_helper'
|
|
|
2
2
|
|
|
3
3
|
describe Gamertag::SimpleProfile do
|
|
4
4
|
describe "#fetch" do
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
it "should return profile data" do
|
|
8
|
-
profile = Gamertag::SimpleProfile.new('Belial1984')
|
|
5
|
+
context "valid user" do
|
|
6
|
+
use_vcr_cassette('SimpleProfile_Belial1984')
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
it "should return profile data" do
|
|
9
|
+
profile = Gamertag::SimpleProfile.new('Belial1984')
|
|
10
|
+
|
|
11
|
+
profile.name.should =~ /baris balic/i
|
|
12
|
+
profile.gamertag.should =~ /Belial1984/i
|
|
13
|
+
profile.avatars.count.should eql(4)
|
|
14
|
+
profile.avatars.small_gamerpic.should == 'http://avatar.xboxlive.com/avatar/belial1984/avatarpic-s.png'
|
|
15
|
+
end
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
it "should return the recent games data" do
|
|
18
|
+
profile = Gamertag::SimpleProfile.new('Belial1984')
|
|
19
|
+
|
|
20
|
+
profile.recent_games.count.should eql(5)
|
|
21
|
+
profile.recent_games.first.title.should eql('Modern Warfare® 2')
|
|
22
|
+
profile.recent_games.first.available_gamerscore.should eql(1000)
|
|
23
|
+
profile.recent_games.first.last_played.class.should == Time
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
context "user with spaces" do
|
|
27
|
+
use_vcr_cassette('SimpleProfile_some_user')
|
|
28
|
+
it "should not raise an error" do
|
|
29
|
+
expect{Gamertag::SimpleProfile.new('some user')}.to_not raise_error(URI::InvalidURIError)
|
|
30
|
+
end
|
|
23
31
|
end
|
|
24
32
|
end
|
|
25
|
-
|
|
33
|
+
|
|
26
34
|
describe ".from_json" do
|
|
27
35
|
let(:seed_data) {
|
|
28
36
|
{
|
|
@@ -57,5 +65,5 @@ describe Gamertag::SimpleProfile do
|
|
|
57
65
|
end
|
|
58
66
|
end
|
|
59
67
|
end
|
|
60
|
-
|
|
61
|
-
end
|
|
68
|
+
|
|
69
|
+
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -4,9 +4,9 @@ require 'vcr'
|
|
|
4
4
|
|
|
5
5
|
require File.join(File.dirname(__FILE__), %w{ .. lib gamertag})
|
|
6
6
|
|
|
7
|
-
VCR.
|
|
7
|
+
VCR.configure do |c|
|
|
8
8
|
c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
|
|
9
|
-
c.
|
|
9
|
+
c.hook_into :fakeweb
|
|
10
10
|
c.default_cassette_options = { :record => :once }
|
|
11
11
|
end
|
|
12
12
|
|
data/spec/version_spec.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gamertag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,44 +10,59 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2012-12-20 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: json
|
|
17
|
-
requirement:
|
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
18
|
none: false
|
|
19
19
|
requirements:
|
|
20
|
-
- -
|
|
20
|
+
- - ! '>='
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version:
|
|
22
|
+
version: '0'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
|
-
version_requirements:
|
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
+
none: false
|
|
27
|
+
requirements:
|
|
28
|
+
- - ! '>='
|
|
29
|
+
- !ruby/object:Gem::Version
|
|
30
|
+
version: '0'
|
|
26
31
|
- !ruby/object:Gem::Dependency
|
|
27
32
|
name: hashie
|
|
28
|
-
requirement:
|
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
34
|
none: false
|
|
30
35
|
requirements:
|
|
31
|
-
- -
|
|
36
|
+
- - ! '>='
|
|
32
37
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
38
|
+
version: '0'
|
|
34
39
|
type: :runtime
|
|
35
40
|
prerelease: false
|
|
36
|
-
version_requirements:
|
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
42
|
+
none: false
|
|
43
|
+
requirements:
|
|
44
|
+
- - ! '>='
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
37
47
|
- !ruby/object:Gem::Dependency
|
|
38
48
|
name: nokogiri
|
|
39
|
-
requirement:
|
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
|
40
50
|
none: false
|
|
41
51
|
requirements:
|
|
42
|
-
- -
|
|
52
|
+
- - ! '>='
|
|
43
53
|
- !ruby/object:Gem::Version
|
|
44
|
-
version:
|
|
54
|
+
version: '0'
|
|
45
55
|
type: :runtime
|
|
46
56
|
prerelease: false
|
|
47
|
-
version_requirements:
|
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
58
|
+
none: false
|
|
59
|
+
requirements:
|
|
60
|
+
- - ! '>='
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '0'
|
|
48
63
|
- !ruby/object:Gem::Dependency
|
|
49
64
|
name: rake
|
|
50
|
-
requirement:
|
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
|
51
66
|
none: false
|
|
52
67
|
requirements:
|
|
53
68
|
- - ! '>='
|
|
@@ -55,40 +70,60 @@ dependencies:
|
|
|
55
70
|
version: '0'
|
|
56
71
|
type: :development
|
|
57
72
|
prerelease: false
|
|
58
|
-
version_requirements:
|
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
74
|
+
none: false
|
|
75
|
+
requirements:
|
|
76
|
+
- - ! '>='
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
version: '0'
|
|
59
79
|
- !ruby/object:Gem::Dependency
|
|
60
80
|
name: rspec
|
|
61
|
-
requirement:
|
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
|
62
82
|
none: false
|
|
63
83
|
requirements:
|
|
64
|
-
- -
|
|
84
|
+
- - ! '>='
|
|
65
85
|
- !ruby/object:Gem::Version
|
|
66
|
-
version:
|
|
86
|
+
version: '0'
|
|
67
87
|
type: :development
|
|
68
88
|
prerelease: false
|
|
69
|
-
version_requirements:
|
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
90
|
+
none: false
|
|
91
|
+
requirements:
|
|
92
|
+
- - ! '>='
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: '0'
|
|
70
95
|
- !ruby/object:Gem::Dependency
|
|
71
96
|
name: vcr
|
|
72
|
-
requirement:
|
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
|
73
98
|
none: false
|
|
74
99
|
requirements:
|
|
75
|
-
- -
|
|
100
|
+
- - ! '>='
|
|
76
101
|
- !ruby/object:Gem::Version
|
|
77
|
-
version:
|
|
102
|
+
version: '0'
|
|
78
103
|
type: :development
|
|
79
104
|
prerelease: false
|
|
80
|
-
version_requirements:
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
none: false
|
|
107
|
+
requirements:
|
|
108
|
+
- - ! '>='
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
81
111
|
- !ruby/object:Gem::Dependency
|
|
82
112
|
name: fakeweb
|
|
83
|
-
requirement:
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
84
114
|
none: false
|
|
85
115
|
requirements:
|
|
86
|
-
- -
|
|
116
|
+
- - ! '>='
|
|
87
117
|
- !ruby/object:Gem::Version
|
|
88
|
-
version:
|
|
118
|
+
version: '0'
|
|
89
119
|
type: :development
|
|
90
120
|
prerelease: false
|
|
91
|
-
version_requirements:
|
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
+
none: false
|
|
123
|
+
requirements:
|
|
124
|
+
- - ! '>='
|
|
125
|
+
- !ruby/object:Gem::Version
|
|
126
|
+
version: '0'
|
|
92
127
|
description: A gem for retrieving your XBOX Live gamertag information
|
|
93
128
|
email:
|
|
94
129
|
- baris@webloch.co.uk
|
|
@@ -98,6 +133,7 @@ extensions: []
|
|
|
98
133
|
extra_rdoc_files: []
|
|
99
134
|
files:
|
|
100
135
|
- .gitignore
|
|
136
|
+
- .rspec
|
|
101
137
|
- .rvmrc
|
|
102
138
|
- CHANGELOG.md
|
|
103
139
|
- Gemfile
|
|
@@ -111,6 +147,7 @@ files:
|
|
|
111
147
|
- lib/gamertag/simple_profile.rb
|
|
112
148
|
- lib/gamertag/version.rb
|
|
113
149
|
- spec/fixtures/vcr_cassettes/PlayedGames_Belial1984.yml
|
|
150
|
+
- spec/fixtures/vcr_cassettes/PlayedGames_some_user.yml
|
|
114
151
|
- spec/fixtures/vcr_cassettes/SimpleProfile_Belial1984.yml
|
|
115
152
|
- spec/played_games_spec.rb
|
|
116
153
|
- spec/profile_spec.rb
|
|
@@ -129,20 +166,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
129
166
|
- - ! '>='
|
|
130
167
|
- !ruby/object:Gem::Version
|
|
131
168
|
version: '0'
|
|
169
|
+
segments:
|
|
170
|
+
- 0
|
|
171
|
+
hash: -1636078989811712083
|
|
132
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
173
|
none: false
|
|
134
174
|
requirements:
|
|
135
175
|
- - ! '>='
|
|
136
176
|
- !ruby/object:Gem::Version
|
|
137
177
|
version: '0'
|
|
178
|
+
segments:
|
|
179
|
+
- 0
|
|
180
|
+
hash: -1636078989811712083
|
|
138
181
|
requirements: []
|
|
139
182
|
rubyforge_project: gamertag
|
|
140
|
-
rubygems_version: 1.8.
|
|
183
|
+
rubygems_version: 1.8.24
|
|
141
184
|
signing_key:
|
|
142
185
|
specification_version: 3
|
|
143
186
|
summary: A gem for retrieving your XBOX Live gamertag information
|
|
144
187
|
test_files:
|
|
145
188
|
- spec/fixtures/vcr_cassettes/PlayedGames_Belial1984.yml
|
|
189
|
+
- spec/fixtures/vcr_cassettes/PlayedGames_some_user.yml
|
|
146
190
|
- spec/fixtures/vcr_cassettes/SimpleProfile_Belial1984.yml
|
|
147
191
|
- spec/played_games_spec.rb
|
|
148
192
|
- spec/profile_spec.rb
|