transfermarkt 0.0.3 → 0.0.5
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.
- checksums.yaml +4 -4
- data/.byebug_history +46 -0
- data/.rspec +2 -0
- data/lib/transfermarkt/club.rb +7 -9
- data/lib/transfermarkt/league.rb +70 -21
- data/lib/transfermarkt/live_game.rb +26 -0
- data/lib/transfermarkt/player.rb +141 -62
- data/lib/transfermarkt/version.rb +1 -1
- data/lib/transfermarkt.rb +5 -2
- data/spec/spec_helper.rb +8 -0
- data/spec/static_htmls/cup.html +1572 -0
- data/spec/static_htmls/jose_antonio_reyes_player_page.html +96 -0
- data/spec/static_htmls/maccabi_haifa_page.html +124 -0
- data/spec/static_htmls/messi_player_page.html +2404 -0
- data/spec/static_htmls/premier_league_html.html +3694 -0
- data/spec/units/club_spec.rb +20 -0
- data/spec/units/league_spec.rb +54 -0
- data/spec/units/player_spec.rb +39 -0
- data/spec/units/transfermarkt_spec.rb +11 -0
- data/transfermarkt.gemspec +5 -0
- metadata +108 -15
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<div class="row">
|
|
2
|
+
<div class="twelve columns">
|
|
3
|
+
<div class="box">
|
|
4
|
+
<div class="box-header">
|
|
5
|
+
<div class="rueckennummer-profil">#19</div>
|
|
6
|
+
<div class="spielername-profil">
|
|
7
|
+
José Antonio Reyes </div>
|
|
8
|
+
<div class="icons-profil">
|
|
9
|
+
|
|
10
|
+
<div class="hide-for-small flagge">
|
|
11
|
+
<img src="/images/flagge/small/157.png" title="Spain" alt="Spain" id="" class="flaggenrahmen" /> </div>
|
|
12
|
+
<div class="hide-for-small wappen">
|
|
13
|
+
<a href="/la-liga/startseite/wettbewerb/ES1">
|
|
14
|
+
<img src="/images/logo/mediumsmall/es1.png" title="La Liga" alt="La Liga" id="" class="" /> </a>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="wappen">
|
|
17
|
+
<a title="Sevilla FC" href="/sevilla-fc/startseite/verein/368"><img src="/images/wappen/profil/368.png" title="Sevilla FC" alt="Sevilla FC" id="" class="" /></a> </div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="box-content">
|
|
21
|
+
<div class="headerfoto">
|
|
22
|
+
<img src="http://static.transfermarkt.net/bilder/spielerfotos/s_7717_368_2012_10_25_1.jpg" title="José Antonio Reyes" alt="José Antonio Reyes" id="" class="bilderrahmen-fixed" /><div class="bildquelle"><span title="Getty Images">Getty Images</span></div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="box-personeninfos">
|
|
25
|
+
<div class="list">
|
|
26
|
+
<table class="profilheader">
|
|
27
|
+
<tr>
|
|
28
|
+
<th>Date of birth:</th>
|
|
29
|
+
<td class="wsnw">Sep 1, 1983 <span class="hide-for-small">in Utrera (Sevilla) <img src="/images/flagge/verysmall/157.png" title="Spain" alt="Spain" id="" class="flaggenrahmen" /></span></td>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr>
|
|
32
|
+
<th>Age:</th>
|
|
33
|
+
<td>30</td>
|
|
34
|
+
</tr>
|
|
35
|
+
<tr>
|
|
36
|
+
<th>Nationality:</th>
|
|
37
|
+
<td>
|
|
38
|
+
<img src="/images/flagge/verysmall/157.png" title="Spain" alt="Spain" id="" class="flaggenrahmen" /> Spain</td>
|
|
39
|
+
</tr>
|
|
40
|
+
<tr>
|
|
41
|
+
<th>Height:</th>
|
|
42
|
+
<td>1,76 m</td>
|
|
43
|
+
</tr>
|
|
44
|
+
<tr>
|
|
45
|
+
<th>In the team since:</th>
|
|
46
|
+
<td>
|
|
47
|
+
Jan 1, 2012 </td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<th class="show-for-small">Market value:</th>
|
|
51
|
+
<td class="show-for-small">3,00 Mill. €</td>
|
|
52
|
+
</tr>
|
|
53
|
+
</table>
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
<div class="list">
|
|
57
|
+
<table class="profilheader">
|
|
58
|
+
<tr>
|
|
59
|
+
<th>Contract until:</th>
|
|
60
|
+
<td>
|
|
61
|
+
30.06.2015 </td>
|
|
62
|
+
</tr>
|
|
63
|
+
<tr>
|
|
64
|
+
<th>Current club:</th>
|
|
65
|
+
<td>
|
|
66
|
+
<a title="Sevilla FC" href="/sevilla-fc/startseite/verein/368">Sevilla FC</a> </td>
|
|
67
|
+
</tr>
|
|
68
|
+
<tr>
|
|
69
|
+
<th>Position:</th>
|
|
70
|
+
<td>
|
|
71
|
+
Left Wing </td>
|
|
72
|
+
</tr>
|
|
73
|
+
|
|
74
|
+
<tr>
|
|
75
|
+
<th>Players' agents:</th>
|
|
76
|
+
<td>
|
|
77
|
+
<a title="Marco Kirdemir" href="/marco-kirdemir/beraterfirma/berater/2297">Marco Kirdemir</a> </td>
|
|
78
|
+
</tr>
|
|
79
|
+
|
|
80
|
+
<tr>
|
|
81
|
+
<th>
|
|
82
|
+
Previous
|
|
83
|
+
National player:
|
|
84
|
+
</th>
|
|
85
|
+
<td>
|
|
86
|
+
<img src="/images/flagge/verysmall/157.png" title="Spain" alt="Spain" id="" class="flaggenrahmen flagge" />
|
|
87
|
+
<a title="Spain" href="/spain/startseite/verein/3375">Spain</a> </td>
|
|
88
|
+
</tr>
|
|
89
|
+
</table>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="marktwert">
|
|
93
|
+
Market value:<br /><span><a href="/jose-antonio-reyes/marktwertverlauf/spieler/7717">3,00<span class="waehrung"> Mill. €</span></a></span> </div>
|
|
94
|
+
<div class="clearer"></div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
|
|
2
|
+
<!DOCTYPE html>
|
|
3
|
+
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
|
4
|
+
<!--[if IE 7]> <html class="ie7 oldie" lang="en"> <![endif]-->
|
|
5
|
+
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
|
|
6
|
+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="utf-8" />
|
|
9
|
+
|
|
10
|
+
<!-- Set the viewport width to device width for mobile -->
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
12
|
+
<title>Transfermarkt - Error</title>
|
|
13
|
+
<!-- SZM 2.0 (IVW/AGOF) -->
|
|
14
|
+
<script type="text/javascript" src="https://script.ioam.de/iam.js"></script> <script type="text/javascript">
|
|
15
|
+
|
|
16
|
+
var _gaq = _gaq || [];
|
|
17
|
+
_gaq.push(['_setAccount', 'UA-3816204-13']);
|
|
18
|
+
_gaq.push(['_setDomainName', 'none']);
|
|
19
|
+
_gaq.push(['_setAllowLinker', true]);
|
|
20
|
+
_gaq.push(['_trackPageview']);
|
|
21
|
+
_gaq.push(['_trackPageLoadTime']);
|
|
22
|
+
|
|
23
|
+
(function() {
|
|
24
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
25
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
26
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
27
|
+
})();
|
|
28
|
+
|
|
29
|
+
</script>
|
|
30
|
+
<!--[if lte IE 8]>
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="/css/ie.css" />
|
|
32
|
+
<![endif]-->
|
|
33
|
+
</head>
|
|
34
|
+
<body>
|
|
35
|
+
<div id="werbung_superbanner" class="hide-for-small">
|
|
36
|
+
<div class="werbung werbung-superbanner">
|
|
37
|
+
<!--/* Sports 4.3 - Transfermarkt.de - Transfermarkt.de - 728x90 - 728x90 */-->
|
|
38
|
+
|
|
39
|
+
<script type='text/javascript' src='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=1ef2&_i=4064&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER'>
|
|
40
|
+
</script><noscript><iframe id='cc32f1' name='cc32f1' src='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=2efe&_i=4064&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER' frameborder='0' scrolling='no' width='728' height='90'>
|
|
41
|
+
<a href='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=3ef0&_n=cc32f1&_i=4064&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER' target='_blank'>
|
|
42
|
+
<img src='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=4efc&_n=cc32f1&_i=4064&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER' border='0' alt='' /></a>
|
|
43
|
+
</iframe></noscript>
|
|
44
|
+
|
|
45
|
+
<!--/* Sports 4.3 - Transfermarkt.de - Transfermarkt.de - 970x250 - 970x250 */-->
|
|
46
|
+
|
|
47
|
+
<script type='text/javascript' src='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=1f0e&_i=4065&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER'>
|
|
48
|
+
</script><noscript><iframe id='65c671' name='65c671' src='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=2f0b&_i=4065&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER' frameborder='0' scrolling='no' width='970' height='250'>
|
|
49
|
+
<a href='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=3f0c&_n=65c671&_i=4065&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER' target='_blank'>
|
|
50
|
+
<img src='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=4f09&_n=65c671&_i=4065&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER' border='0' alt='' /></a>
|
|
51
|
+
</iframe></noscript>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div id="main">
|
|
55
|
+
<div class="row hide-on-print">
|
|
56
|
+
<div id="header" class="twelve columns">
|
|
57
|
+
<div class="naviback hide-for-small hide-for-print"></div>
|
|
58
|
+
<div style="position: absolute; top: 0; left: 100%; z-index: 1;" class="hide-for-small">
|
|
59
|
+
<div class="werbung werbung-skyscraper">
|
|
60
|
+
<!--/* Sports 4.3 - Transfermarkt.de - Transfermarkt.de - 160x600 - 160x600 */-->
|
|
61
|
+
|
|
62
|
+
<script type='text/javascript' src='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=1f10&_i=4066&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER'>
|
|
63
|
+
</script><noscript><iframe id='6a8af8' name='6a8af8' src='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=2f1c&_i=4066&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER' frameborder='0' scrolling='no' width='160' height='600'>
|
|
64
|
+
<a href='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=3f1d&_n=6a8af8&_i=4066&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER' target='_blank'>
|
|
65
|
+
<img src='http://delivery.ads-creativesyndicator.com/adserver/tag.php?_t=4f1a&_n=6a8af8&_i=4066&_c=INSERT_CLICK_MACRO&_r=INSERT_RANDOM_NUMBER' border='0' alt='' /></a>
|
|
66
|
+
</iframe></noscript>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="row">
|
|
70
|
+
<div class="four columns hide-for-small">
|
|
71
|
+
<a href="/" id="logo-home"><img title="Transfermarkt" alt="Transfermarkt" src="/images/logo.png" /></a>
|
|
72
|
+
<span id="domain">.CO.UK</span>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="two columns header-social-icons hide-for-small">
|
|
75
|
+
<###dynamic-0###> </div>
|
|
76
|
+
<div class="six columns mobile-four">
|
|
77
|
+
<form name="schnellsuche" id="schnellsuche" class="noclose" action="/schnellsuche/ergebnis/schnellsuche">
|
|
78
|
+
<!--<input type="text" name="suchbegriff" class="header-suche" placeholder="Suche nach Namen, Vereinen oder Statistiken..." />-->
|
|
79
|
+
<input type="text" name="query" class="header-suche" placeholder="Enter search term:" />
|
|
80
|
+
<input type="image" class="header-suche-abschicken" src="/images/suchicon.png" />
|
|
81
|
+
</form>
|
|
82
|
+
</div>
|
|
83
|
+
<div id="domains" class="noclose">
|
|
84
|
+
<a href="http://www.transfermarkt.de" class=""><img src="/images/flagge/verysmall/40.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>DE</span></a>
|
|
85
|
+
<a href="http://www.transfermarkt.at" class=""><img src="/images/flagge/verysmall/127.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>AT</span></a>
|
|
86
|
+
<a href="http://www.transfermarkt.ch" class=""><img src="/images/flagge/verysmall/148.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>CH</span></a>
|
|
87
|
+
<a href="http://www.transfermarkt.com.tr" class=""><img src="/images/flagge/verysmall/174.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>COM.TR</span></a>
|
|
88
|
+
<a href="http://www.transfermarkt.it" class=""><img src="/images/flagge/verysmall/75.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>IT</span></a>
|
|
89
|
+
<a href="http://www.transfermarkt.pl" class=""><img src="/images/flagge/verysmall/135.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>PL</span></a>
|
|
90
|
+
<a href="http://www.transfermarkt.co.uk" class="aktiv"><img src="/images/flagge/verysmall/189.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>CO.UK</span></a>
|
|
91
|
+
<a href="http://www.transfermarkt.es" class=""><img src="/images/flagge/verysmall/157.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>ES</span></a>
|
|
92
|
+
<a href="http://www.transfermarkt.nl" class=""><img src="/images/flagge/verysmall/122.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>NL</span></a>
|
|
93
|
+
<a href="http://www.transfermarkt.pt" class=""><img src="/images/flagge/verysmall/136.png" title="Deutschland" alt="Deutschland" id="" class="flaggenrahmen" /><span>PT</span></a>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<div class="row hide-on-print navihalter">
|
|
100
|
+
<div class="page_wrapper">
|
|
101
|
+
<div class="twelve columns">
|
|
102
|
+
<div class="megamenu_container megamenu_dark_bar megamenu_dark">
|
|
103
|
+
<###dynamic-1###> <a href="/" id="logo_klein" class="show-for-small"><img title="Transfermarkt" alt="Transfermarkt" src="/images/logo.png" /></a>
|
|
104
|
+
<div id="userprofil-box">
|
|
105
|
+
<###dynamic-2###> <###dynamic-3###> </div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<div class="row popuphalter">
|
|
112
|
+
<###dynamic-4###> <###dynamic-5###> </div>
|
|
113
|
+
|
|
114
|
+
<div style="text-align:right"></div>
|
|
115
|
+
<div class="row">
|
|
116
|
+
<div id="breadcrumb" class="twelve columns">
|
|
117
|
+
<div class="breadcrumb-box">
|
|
118
|
+
<div class="breadcrumb">
|
|
119
|
+
<div class="breadcrumb-text home">
|
|
120
|
+
<a href="/">Home</a>
|
|
121
|
+
</div>
|
|
122
|
+
<form class="breadcrumb-form breadcrumb-land" action="/en/jumplist/breadcrumb/site" method="post"> <div class="breadcrumb-select alternative-select chzn-land">
|
|
123
|
+
<h1>CDbException</h1>
|
|
124
|
+
<p>CDbConnection failed to open the DB connection.</p>
|