em-sofa 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/.document +5 -0
  2. data/.gitignore +22 -0
  3. data/.yardopts +6 -0
  4. data/LICENSE +20 -0
  5. data/README.md +110 -0
  6. data/Rakefile +75 -0
  7. data/doc/Em-sofa/Mapping.html +168 -0
  8. data/doc/Em-sofa/Mapping/ClassMethods.html +314 -0
  9. data/doc/Em-sofa/Mapping/InstanceMethods.html +358 -0
  10. data/doc/Em-sofa/TVRage.html +85 -0
  11. data/doc/Em-sofa/TVRage/Episode.html +358 -0
  12. data/doc/Em-sofa/TVRage/Schedule.html +207 -0
  13. data/doc/Em-sofa/TVRage/Season.html +236 -0
  14. data/doc/Em-sofa/TVRage/Show.html +904 -0
  15. data/doc/Em-sofa/TVRage/Show/ShowNotFound.html +92 -0
  16. data/doc/Em-sofa/Version.html +100 -0
  17. data/doc/Sofa.html +85 -0
  18. data/doc/_index.html +233 -0
  19. data/doc/class_list.html +36 -0
  20. data/doc/css/common.css +1 -0
  21. data/doc/css/full_list.css +50 -0
  22. data/doc/css/style.css +277 -0
  23. data/doc/file.README.html +150 -0
  24. data/doc/file_list.html +38 -0
  25. data/doc/index.html +150 -0
  26. data/doc/js/app.js +138 -0
  27. data/doc/js/full_list.js +117 -0
  28. data/doc/js/jquery.js +19 -0
  29. data/doc/method_list.html +195 -0
  30. data/doc/top-level-namespace.html +88 -0
  31. data/lib/em-sofa.rb +8 -0
  32. data/lib/em-sofa/mapping.rb +108 -0
  33. data/lib/em-sofa/tvrage.rb +14 -0
  34. data/lib/em-sofa/tvrage/episode.rb +41 -0
  35. data/lib/em-sofa/tvrage/schedule.rb +28 -0
  36. data/lib/em-sofa/tvrage/season.rb +38 -0
  37. data/lib/em-sofa/tvrage/show.rb +193 -0
  38. data/lib/em-sofa/version.rb +10 -0
  39. data/spec/fixtures/tvrage/cases/castle.xml +228 -0
  40. data/spec/fixtures/tvrage/cases/community.xml +109 -0
  41. data/spec/fixtures/tvrage/cases/live_with_regis_and_kelly.xml +56237 -0
  42. data/spec/fixtures/tvrage/episode_list.xml +1183 -0
  43. data/spec/fixtures/tvrage/episode_list_one_season.xml +17 -0
  44. data/spec/fixtures/tvrage/episode_list_two_episodes.xml +25 -0
  45. data/spec/fixtures/tvrage/full_schedule.xml +4731 -0
  46. data/spec/fixtures/tvrage/full_show_info.xml +1291 -0
  47. data/spec/fixtures/tvrage/quickinfo.html +17 -0
  48. data/spec/fixtures/tvrage/quickinfo_missing.html +1 -0
  49. data/spec/fixtures/tvrage/search.xml +151 -0
  50. data/spec/fixtures/tvrage/show_info.xml +42 -0
  51. data/spec/fixtures/tvrage/show_info_blank.xml +3 -0
  52. data/spec/fixtures/tvrage/single_episode.xml +8 -0
  53. data/spec/sofa/mapping_spec.rb +82 -0
  54. data/spec/sofa/tvrage/cases_spec.rb +29 -0
  55. data/spec/sofa/tvrage/episode_spec.rb +45 -0
  56. data/spec/sofa/tvrage/schedule_spec.rb +17 -0
  57. data/spec/sofa/tvrage/season_spec.rb +61 -0
  58. data/spec/sofa/tvrage/show_spec.rb +201 -0
  59. data/spec/sofa/version_spec.rb +11 -0
  60. data/spec/sofa_spec.rb +5 -0
  61. data/spec/spec.opts +1 -0
  62. data/spec/spec_helper.rb +20 -0
  63. metadata +165 -0
@@ -0,0 +1,92 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>Exception: Sofa::TVRage::Show::ShowNotFound</title>
7
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '../../..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <div id="header">
20
+ <div id="menu">
21
+
22
+ <a href="../../../_index.html">Index (S)</a> &raquo;
23
+ <a title="Sofa" href="../../../Sofa.html">Sofa</a> &raquo; <a title="TVRage" href="../../TVRage.html">TVRage</a> &raquo; <a title="Show" href="../Show.html">Show</a>
24
+ &raquo;
25
+ <span class="title">ShowNotFound</span>
26
+
27
+ </div>
28
+
29
+ <div id="search">
30
+ <a id="class_list_link" href="#">Namespace List</a>
31
+ <a id="method_list_link" href="#">Method List</a>
32
+ <a id ="file_list_link" href="#">File List</a>
33
+ </div>
34
+
35
+ <div class="clear"></div>
36
+ </div>
37
+
38
+ <iframe id="search_frame"></iframe>
39
+
40
+ <div id="content"><h1>Exception: Sofa::TVRage::Show::ShowNotFound
41
+
42
+
43
+ </h1>
44
+
45
+ <dl class="box">
46
+
47
+ <dt class="r1">Inherits:</dt>
48
+ <dd class="r1">
49
+ <span class="inheritName">RuntimeError</span>
50
+
51
+ <ul class="fullTree">
52
+ <li>Object</li>
53
+
54
+ <li class="next">RuntimeError</li>
55
+
56
+ <li class="next">Sofa::TVRage::Show::ShowNotFound</li>
57
+
58
+ </ul>
59
+ <a href="#" class="inheritanceTree">show all</a>
60
+
61
+ </dd>
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+ <dt class="r2 last">Defined in:</dt>
71
+ <dd class="r2 last">lib/sofa/tvrage/show.rb</dd>
72
+
73
+ </dl>
74
+ <div class="clear"></div>
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="footer">
86
+ Generated on Sat Nov 21 20:13:52 2009 by
87
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
88
+ 0.4.0 (ruby-1.8.7).
89
+ </div>
90
+
91
+ </body>
92
+ </html>
@@ -0,0 +1,100 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>Module: Sofa::Version</title>
7
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <div id="header">
20
+ <div id="menu">
21
+
22
+ <a href="../_index.html">Index (V)</a> &raquo;
23
+ <a title="Sofa" href="../Sofa.html">Sofa</a>
24
+ &raquo;
25
+ <span class="title">Version</span>
26
+
27
+ </div>
28
+
29
+ <div id="search">
30
+ <a id="class_list_link" href="#">Namespace List</a>
31
+ <a id="method_list_link" href="#">Method List</a>
32
+ <a id ="file_list_link" href="#">File List</a>
33
+ </div>
34
+
35
+ <div class="clear"></div>
36
+ </div>
37
+
38
+ <iframe id="search_frame"></iframe>
39
+
40
+ <div id="content"><h1>Module: Sofa::Version
41
+
42
+
43
+ </h1>
44
+
45
+ <dl class="box">
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ <dt class="r1 last">Defined in:</dt>
54
+ <dd class="r1 last">lib/sofa/version.rb</dd>
55
+
56
+ </dl>
57
+ <div class="clear"></div>
58
+
59
+
60
+ <h2>Constant Summary</h2>
61
+
62
+ <dl class="constants">
63
+
64
+ <dt id="MAJOR-constant ">MAJOR =
65
+ <span class="summary_desc"></span>
66
+ </dt>
67
+ <dd><pre class="code">0</pre></dd>
68
+
69
+ <dt id="MINOR-constant ">MINOR =
70
+ <span class="summary_desc"></span>
71
+ </dt>
72
+ <dd><pre class="code">1</pre></dd>
73
+
74
+ <dt id="PATCH-constant ">PATCH =
75
+ <span class="summary_desc"></span>
76
+ </dt>
77
+ <dd><pre class="code">0</pre></dd>
78
+
79
+ <dt id="STRING-constant ">STRING =
80
+ <span class="summary_desc"></span>
81
+ </dt>
82
+ <dd><pre class="code">"#{MAJOR}.#{MINOR}.#{PATCH}"</pre></dd>
83
+
84
+ </dl>
85
+
86
+
87
+
88
+
89
+
90
+
91
+ </div>
92
+
93
+ <div id="footer">
94
+ Generated on Sat Nov 21 20:13:53 2009 by
95
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
96
+ 0.4.0 (ruby-1.8.7).
97
+ </div>
98
+
99
+ </body>
100
+ </html>
data/doc/Sofa.html ADDED
@@ -0,0 +1,85 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>Module: Sofa</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <div id="header">
20
+ <div id="menu">
21
+
22
+ <a href="_index.html">Index (S)</a> &raquo;
23
+
24
+
25
+ <span class="title">Sofa</span>
26
+
27
+ </div>
28
+
29
+ <div id="search">
30
+ <a id="class_list_link" href="#">Namespace List</a>
31
+ <a id="method_list_link" href="#">Method List</a>
32
+ <a id ="file_list_link" href="#">File List</a>
33
+ </div>
34
+
35
+ <div class="clear"></div>
36
+ </div>
37
+
38
+ <iframe id="search_frame"></iframe>
39
+
40
+ <div id="content"><h1>Module: Sofa
41
+
42
+
43
+ </h1>
44
+
45
+ <dl class="box">
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ <dt class="r1 last">Defined in:</dt>
54
+ <dd class="r1 last">lib/sofa.rb<span class="defines">,<br />
55
+ lib/sofa/tvrage.rb,<br /> lib/sofa/version.rb,<br /> lib/sofa/mapping.rb,<br /> lib/sofa/tvrage/show.rb,<br /> lib/sofa/tvrage/season.rb,<br /> lib/sofa/tvrage/episode.rb,<br /> lib/sofa/tvrage/schedule.rb</span>
56
+ </dd>
57
+
58
+ </dl>
59
+ <div class="clear"></div>
60
+
61
+ <h2>Defined Under Namespace</h2>
62
+ <p class="children">
63
+
64
+
65
+ <strong class="modules">Modules:</strong> <a title="Mapping" href="Em-sofa/Mapping.html">Mapping</a>, <a title="TVRage" href="Em-sofa/TVRage.html">TVRage</a>, <a title="Version" href="Em-sofa/Version.html">Version</a>
66
+
67
+
68
+
69
+
70
+ </p>
71
+
72
+
73
+
74
+
75
+
76
+ </div>
77
+
78
+ <div id="footer">
79
+ Generated on Sat Nov 21 20:13:52 2009 by
80
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
81
+ 0.4.0 (ruby-1.8.7).
82
+ </div>
83
+
84
+ </body>
85
+ </html>
data/doc/_index.html ADDED
@@ -0,0 +1,233 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Documentation by YARD 0.5.8</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+
27
+ <span class="title"></span>
28
+
29
+
30
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
31
+ </div>
32
+
33
+ <div id="search">
34
+ <a id="class_list_link" href="#">Class List</a>
35
+ <a id="method_list_link" href="#">Method List</a>
36
+ <a id ="file_list_link" href="#">File List</a>
37
+ </div>
38
+
39
+ <div class="clear"></div>
40
+ </div>
41
+
42
+ <iframe id="search_frame"></iframe>
43
+
44
+ <div id="content"><div id="listing">
45
+ <h1 class="noborder title">Documentation by YARD 0.5.8</h1>
46
+ <h1 class="alphaindex">Alphabetic Index</h1>
47
+
48
+
49
+ <h2>File Listing</h2>
50
+ <ul id="files">
51
+
52
+
53
+ <li class="r1"><a href="index.html" title="README">README</a></li>
54
+
55
+
56
+ </ul>
57
+
58
+ <div class="clear"></div>
59
+
60
+ <h2>Namespace Listing A-Z</h2>
61
+
62
+
63
+
64
+
65
+ <table>
66
+ <tr>
67
+ <td valign='top' width="33%">
68
+
69
+
70
+ <ul id="alpha_C" class="alpha">
71
+ <li class="letter">C</li>
72
+ <ul>
73
+
74
+ <li>
75
+ <a href="EM/Sofa/Mapping/ClassMethods.html" title="EM::Sofa::Mapping::ClassMethods (module)">ClassMethods</a>
76
+
77
+ <small>(EM::Sofa::Mapping)</small>
78
+
79
+ </li>
80
+
81
+ </ul>
82
+ </ul>
83
+
84
+
85
+ <ul id="alpha_E" class="alpha">
86
+ <li class="letter">E</li>
87
+ <ul>
88
+
89
+ <li>
90
+ <a href="EventMachine/Sofa/TVRage/Episode.html" title="EventMachine::Sofa::TVRage::Episode (class)">Episode</a>
91
+
92
+ <small>(EventMachine::Sofa::TVRage)</small>
93
+
94
+ </li>
95
+
96
+ <li>
97
+ <a href="EventMachine.html" title="EventMachine (module)">EventMachine</a>
98
+
99
+ </li>
100
+
101
+ </ul>
102
+ </ul>
103
+
104
+
105
+ <ul id="alpha_I" class="alpha">
106
+ <li class="letter">I</li>
107
+ <ul>
108
+
109
+ <li>
110
+ <a href="EM/Sofa/Mapping/InstanceMethods.html" title="EM::Sofa::Mapping::InstanceMethods (module)">InstanceMethods</a>
111
+
112
+ <small>(EM::Sofa::Mapping)</small>
113
+
114
+ </li>
115
+
116
+ </ul>
117
+ </ul>
118
+
119
+
120
+ <ul id="alpha_M" class="alpha">
121
+ <li class="letter">M</li>
122
+ <ul>
123
+
124
+ <li>
125
+ <a href="EM/Sofa/Mapping.html" title="EM::Sofa::Mapping (module)">Mapping</a>
126
+
127
+ <small>(EM::Sofa)</small>
128
+
129
+ </li>
130
+
131
+ </ul>
132
+ </ul>
133
+
134
+
135
+ <ul id="alpha_S" class="alpha">
136
+ <li class="letter">S</li>
137
+ <ul>
138
+
139
+ <li>
140
+ <a href="EventMachine/Sofa/TVRage/Schedule.html" title="EventMachine::Sofa::TVRage::Schedule (class)">Schedule</a>
141
+
142
+ <small>(EventMachine::Sofa::TVRage)</small>
143
+
144
+ </li>
145
+
146
+ <li>
147
+ <a href="EventMachine/Sofa/TVRage/Season.html" title="EventMachine::Sofa::TVRage::Season (class)">Season</a>
148
+
149
+ <small>(EventMachine::Sofa::TVRage)</small>
150
+
151
+ </li>
152
+
153
+ <li>
154
+ <a href="EventMachine/Sofa/TVRage/Show.html" title="EventMachine::Sofa::TVRage::Show (class)">Show</a>
155
+
156
+ <small>(EventMachine::Sofa::TVRage)</small>
157
+
158
+ </li>
159
+
160
+ <li>
161
+ <a href="EventMachine/Sofa/TVRage/Show/ShowNotFound.html" title="EventMachine::Sofa::TVRage::Show::ShowNotFound (class)">ShowNotFound</a>
162
+
163
+ <small>(EventMachine::Sofa::TVRage::Show)</small>
164
+
165
+ </li>
166
+
167
+ <li>
168
+ <a href="EventMachine/Sofa.html" title="EventMachine::Sofa (module)">Sofa</a>
169
+
170
+ <small>(EventMachine)</small>
171
+
172
+ </li>
173
+
174
+ <li>
175
+ <a href="EM/Sofa.html" title="EM::Sofa (module)">Sofa</a>
176
+
177
+ <small>(EM)</small>
178
+
179
+ </li>
180
+
181
+ </ul>
182
+ </ul>
183
+
184
+
185
+ <ul id="alpha_T" class="alpha">
186
+ <li class="letter">T</li>
187
+ <ul>
188
+
189
+ <li>
190
+ <a href="EventMachine/Sofa/TVRage.html" title="EventMachine::Sofa::TVRage (module)">TVRage</a>
191
+
192
+ <small>(EventMachine::Sofa)</small>
193
+
194
+ </li>
195
+
196
+ <li>
197
+ <a href="EM/Sofa/TVRage.html" title="EM::Sofa::TVRage (module)">TVRage</a>
198
+
199
+ <small>(EM::Sofa)</small>
200
+
201
+ </li>
202
+
203
+ </ul>
204
+ </ul>
205
+
206
+
207
+ <ul id="alpha_V" class="alpha">
208
+ <li class="letter">V</li>
209
+ <ul>
210
+
211
+ <li>
212
+ <a href="EventMachine/Sofa/Version.html" title="EventMachine::Sofa::Version (module)">Version</a>
213
+
214
+ <small>(EventMachine::Sofa)</small>
215
+
216
+ </li>
217
+
218
+ </ul>
219
+ </ul>
220
+
221
+ </td>
222
+ </tr>
223
+ </table>
224
+ </div></div>
225
+
226
+ <div id="footer">
227
+ Generated on 08/21/10 01:02:09 by
228
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
229
+ 0.5.8 (ruby-1.8.7).
230
+ </div>
231
+
232
+ </body>
233
+ </html>