sofa 0.1.0 → 0.1.1
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/spec/sofa/tvrage/episode_spec.rb +11 -0
- data/spec/spec_helper.rb +2 -2
- metadata +111 -122
- data/.document +0 -5
- data/.gitignore +0 -22
- data/.yardopts +0 -6
- data/Rakefile +0 -76
- data/doc/Sofa.html +0 -85
- data/doc/Sofa/Mapping.html +0 -168
- data/doc/Sofa/Mapping/ClassMethods.html +0 -314
- data/doc/Sofa/Mapping/InstanceMethods.html +0 -358
- data/doc/Sofa/TVRage.html +0 -85
- data/doc/Sofa/TVRage/Episode.html +0 -358
- data/doc/Sofa/TVRage/Schedule.html +0 -207
- data/doc/Sofa/TVRage/Season.html +0 -236
- data/doc/Sofa/TVRage/Show.html +0 -904
- data/doc/Sofa/TVRage/Show/ShowNotFound.html +0 -92
- data/doc/Sofa/Version.html +0 -100
- data/doc/_index.html +0 -206
- data/doc/class_list.html +0 -137
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -23
- data/doc/css/style.css +0 -261
- data/doc/file.README.html +0 -120
- data/doc/file_list.html +0 -29
- data/doc/index.html +0 -120
- data/doc/js/app.js +0 -91
- data/doc/js/full_list.js +0 -39
- data/doc/js/jquery.js +0 -19
- data/doc/method_list.html +0 -192
- data/doc/top-level-namespace.html +0 -80
- data/lib/sofa.rb +0 -5
- data/lib/sofa/mapping.rb +0 -108
- data/lib/sofa/tvrage.rb +0 -10
- data/lib/sofa/tvrage/episode.rb +0 -39
- data/lib/sofa/tvrage/schedule.rb +0 -25
- data/lib/sofa/tvrage/season.rb +0 -36
- data/lib/sofa/tvrage/show.rb +0 -132
- data/lib/sofa/version.rb +0 -8
- data/sofa.gemspec +0 -126
- data/spec/fixtures/tvrage/cases/castle.xml +0 -228
- data/spec/fixtures/tvrage/cases/community.xml +0 -109
- data/spec/fixtures/tvrage/cases/live_with_regis_and_kelly.xml +0 -56237
- data/spec/fixtures/tvrage/episode_list.xml +0 -1183
- data/spec/fixtures/tvrage/episode_list_one_season.xml +0 -17
- data/spec/fixtures/tvrage/episode_list_two_episodes.xml +0 -25
- data/spec/fixtures/tvrage/full_schedule.xml +0 -4731
- data/spec/fixtures/tvrage/full_show_info.xml +0 -1291
- data/spec/fixtures/tvrage/quickinfo.html +0 -17
- data/spec/fixtures/tvrage/quickinfo_missing.html +0 -1
- data/spec/fixtures/tvrage/search.xml +0 -151
- data/spec/fixtures/tvrage/show_info.xml +0 -42
- data/spec/fixtures/tvrage/show_info_blank.xml +0 -3
- data/spec/fixtures/tvrage/single_episode.xml +0 -8
- data/spec/spec.opts +0 -1
data/doc/css/common.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
/* Override this file with custom rules */
|
data/doc/css/full_list.css
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
margin: 0;
|
3
|
-
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
4
|
-
font-size: 13px;
|
5
|
-
height: 101%;
|
6
|
-
}
|
7
|
-
html { overflow-y: scroll; }
|
8
|
-
|
9
|
-
h1 { padding: 0; margin: 5px; margin-top: 12px; margin-left: 10px; margin-bottom: 0; font-size: 1.4em; }
|
10
|
-
.clear { clear: both; }
|
11
|
-
#search { position: absolute; right: 5px; top: 9px; }
|
12
|
-
#full_list { padding: 0; list-style: none; margin-left: 0; }
|
13
|
-
#full_list li { padding: 7px 15px; font-size: 1.1em; }
|
14
|
-
#noresults { display: none; padding: 7px 15px; }
|
15
|
-
li { color: #555; }
|
16
|
-
li.deprecated { text-decoration: line-through; font-style: italic; }
|
17
|
-
li.r1 { background: #f0f0f0; border: 1px dotted #f0f0f0; border-left-width: 0; border-right-width: 0; }
|
18
|
-
li.r2 { background: #fafafa; border: 1px dotted #fafafa; border-left-width: 0; border-right-width: 0; }
|
19
|
-
li:hover { background: #ffffa5; cursor: pointer; border: 1px dotted #ddddc4; border-left-width: 0; border-right-width: 0; }
|
20
|
-
li:hover * { position: relative; left: -3px; }
|
21
|
-
a:link, a:visited { text-decoration: none; color: #05a; }
|
22
|
-
a:hover { background: #ffffa5; }
|
23
|
-
#search input { border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
|
data/doc/css/style.css
DELETED
@@ -1,261 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
padding: 0 20px;
|
3
|
-
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
4
|
-
font-size: 13px;
|
5
|
-
}
|
6
|
-
h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
|
7
|
-
h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
|
8
|
-
h1.title { margin-bottom: 10px; }
|
9
|
-
h1.alphaindex { margin-top: 0; font-size: 22px; }
|
10
|
-
h2 {
|
11
|
-
padding: 0;
|
12
|
-
padding-bottom: 3px;
|
13
|
-
border-bottom: 1px #aaa solid;
|
14
|
-
font-size: 1.4em;
|
15
|
-
margin: 1.8em 0 0.5em;
|
16
|
-
}
|
17
|
-
.clear { clear: both; }
|
18
|
-
.docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
|
19
|
-
.docstring h1 { font-size: 1.2em; }
|
20
|
-
.docstring h2 { font-size: 1.1em; }
|
21
|
-
.docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
|
22
|
-
|
23
|
-
.note {
|
24
|
-
color: #222;
|
25
|
-
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
26
|
-
background: #e3e4e3; border: 1px solid #d5d5d5; padding: 7px 10px;
|
27
|
-
}
|
28
|
-
.note.todo { background: #ffffc5; border-color: #ececaa; }
|
29
|
-
.note.deprecated { background: #ffe5e5; border-color: #e9dada; }
|
30
|
-
.note.title { text-transform: lowercase; padding: 1px 5px; margin-left: 5px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; }
|
31
|
-
h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
|
32
|
-
.note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
|
33
|
-
.note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
34
|
-
.note.title.private { background: #d5d5d5; border-color: #c5c5c5; }
|
35
|
-
|
36
|
-
h3.inherited {
|
37
|
-
font-style: italic;
|
38
|
-
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
39
|
-
font-weight: normal;
|
40
|
-
padding: 0;
|
41
|
-
margin: 0;
|
42
|
-
margin-top: 12px;
|
43
|
-
margin-bottom: 3px;
|
44
|
-
font-size: 13px;
|
45
|
-
}
|
46
|
-
p.inherited {
|
47
|
-
padding: 0;
|
48
|
-
margin: 0;
|
49
|
-
margin-left: 25px;
|
50
|
-
}
|
51
|
-
|
52
|
-
dl.box {
|
53
|
-
width: 520px;
|
54
|
-
font-size: 1em;
|
55
|
-
}
|
56
|
-
dl.box dt {
|
57
|
-
float: left;
|
58
|
-
display: block;
|
59
|
-
width: 100px;
|
60
|
-
margin: 0;
|
61
|
-
text-align: right;
|
62
|
-
font-weight: bold;
|
63
|
-
border: 1px solid #aaa;
|
64
|
-
border-width: 1px 0px 0px 1px;
|
65
|
-
padding: 6px 0;
|
66
|
-
padding-right: 10px;
|
67
|
-
}
|
68
|
-
dl.box dd {
|
69
|
-
float: left;
|
70
|
-
display: block;
|
71
|
-
width: 380px;
|
72
|
-
margin: 0;
|
73
|
-
padding: 6px 0;
|
74
|
-
padding-right: 20px;
|
75
|
-
border: 1px solid #aaa;
|
76
|
-
border-width: 1px 1px 0 0;
|
77
|
-
}
|
78
|
-
dl.box .last {
|
79
|
-
border-bottom: 1px solid #aaa;
|
80
|
-
}
|
81
|
-
dl.box .r1 { background: #eee; }
|
82
|
-
|
83
|
-
ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
|
84
|
-
#files { padding-left: 15px; font-size: 1.1em; }
|
85
|
-
|
86
|
-
#files { padding: 0; }
|
87
|
-
#files li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
|
88
|
-
|
89
|
-
dl.constants { margin-left: 40px; }
|
90
|
-
dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
|
91
|
-
dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
|
92
|
-
|
93
|
-
.summary_desc { margin-left: 32px; display: block; font-family: sans-serif; }
|
94
|
-
.summary_desc tt { font-size: 0.9em; }
|
95
|
-
dl.constants .summary_desc { font-size: 0.9em; font-weight: normal; }
|
96
|
-
|
97
|
-
.method_details { border-top: 1px dotted #aaa; margin-top: 15px; padding-top: 0; }
|
98
|
-
.method_details.first { border: 0; }
|
99
|
-
p.signature {
|
100
|
-
font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
|
101
|
-
padding: 6px 10px; margin-top: 18px;
|
102
|
-
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
103
|
-
}
|
104
|
-
p.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
|
105
|
-
p.signature .overload { display: block; }
|
106
|
-
p.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; }
|
107
|
-
p.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; }
|
108
|
-
p.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
|
109
|
-
|
110
|
-
.tags h3 { font-size: 1em; margin-bottom: 0; }
|
111
|
-
.tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
|
112
|
-
.tags ul li { margin-bottom: 3px; }
|
113
|
-
.tags ul .name { font-family: monospace; font-weight: bold; }
|
114
|
-
.tags ul p { display: inline; margin-bottom: 5px; }
|
115
|
-
.tags { margin-bottom: 12px; }
|
116
|
-
|
117
|
-
.tags .examples h3 { margin-bottom: 10px; }
|
118
|
-
.tags .examples h4 { padding: 0; margin: 0; margin-left: 15px; font-weight: bold; font-size: 0.9em; }
|
119
|
-
|
120
|
-
.tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
|
121
|
-
.tags .overload .overload_item .signature {
|
122
|
-
padding: 2px 8px;
|
123
|
-
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
124
|
-
}
|
125
|
-
.tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
|
126
|
-
.tags .overload .docstring { margin-top: 15px; }
|
127
|
-
|
128
|
-
.defines { display: none; }
|
129
|
-
|
130
|
-
#method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
|
131
|
-
|
132
|
-
.showSource { font-size: 0.9em; }
|
133
|
-
.showSource a:link, .showSource a:visited { text-decoration: none; color: #666; }
|
134
|
-
|
135
|
-
#content a:link, #content a:visited { text-decoration: none; color: #05a; }
|
136
|
-
#content a:hover { background: #ffffa5; }
|
137
|
-
.docstring { margin-right: 6em; }
|
138
|
-
|
139
|
-
ul.summary {
|
140
|
-
list-style: none;
|
141
|
-
font-family: monospace;
|
142
|
-
font-size: 1em;
|
143
|
-
line-height: 1.5em;
|
144
|
-
}
|
145
|
-
ul.summary a:link, ul.summary a:visited {
|
146
|
-
text-decoration: none; font-size: 1.1em;
|
147
|
-
}
|
148
|
-
ul.summary li { margin-bottom: 5px; }
|
149
|
-
.summary .summary_signature {
|
150
|
-
padding: 1px 10px;
|
151
|
-
background: #eaeaff; border: 1px solid #dfdfe5;
|
152
|
-
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
153
|
-
}
|
154
|
-
.summary_signature:hover { background: #eeeeff; cursor: pointer; }
|
155
|
-
#content .summary_signature:hover a:link,
|
156
|
-
#content .summary_signature:hover a:visited {
|
157
|
-
background: transparent;
|
158
|
-
color: #48f;
|
159
|
-
}
|
160
|
-
|
161
|
-
p.inherited a { font-family: monospace; font-size: 0.9em; }
|
162
|
-
p.inherited { word-spacing: 5px; font-size: 1.2em; }
|
163
|
-
|
164
|
-
p.children { font-size: 1.2em; }
|
165
|
-
p.children a { font-size: 0.9em; }
|
166
|
-
p.children strong { font-size: 0.8em; }
|
167
|
-
p.children strong.modules { padding-left: 5px; }
|
168
|
-
|
169
|
-
ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; }
|
170
|
-
ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; }
|
171
|
-
ul.fullTree li { text-align: center; }
|
172
|
-
ul.fullTree li.next:before { font-size: 1.2em; content: '⬆'; color: #bbb; display: block; margin-top: 3px; }
|
173
|
-
|
174
|
-
#search { position: absolute; right: 14px; top: 0px; }
|
175
|
-
#search a:link, #search a:visited {
|
176
|
-
display: block; float: left; margin-right: 4px;
|
177
|
-
padding: 8px 10px; text-decoration: none; color: #05a; background: #eaeaff;
|
178
|
-
border: 1px solid #d8d8e5;
|
179
|
-
-moz-border-radius-bottomleft: 3px; -moz-border-radius-bottomright: 3px;
|
180
|
-
-webkit-border-bottom-left-radius: 3px; -webkit-border-bottom-right-radius: 3px;
|
181
|
-
}
|
182
|
-
#search a:hover { background: #eef; color: #06b; }
|
183
|
-
#search a.active {
|
184
|
-
background: #568; padding-bottom: 20px; color: #fff; border: 1px solid #457;
|
185
|
-
-moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;
|
186
|
-
-webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px;
|
187
|
-
}
|
188
|
-
#search a.inactive { color: #999; }
|
189
|
-
.inheritanceTree, .toggleDefines { float: right; }
|
190
|
-
|
191
|
-
#menu { font-size: 1.3em; color: #bbb; top: -5px; position: relative; }
|
192
|
-
#menu .title, #menu a { font-size: 0.7em; }
|
193
|
-
#menu .title { color: #555; }
|
194
|
-
#menu a:link, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
195
|
-
#menu a:hover { color: #05a; }
|
196
|
-
|
197
|
-
#footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
|
198
|
-
#footer a:link, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
199
|
-
#footer a:hover { color: #05a; }
|
200
|
-
|
201
|
-
#listing ul.alpha { font-size: 1.1em; }
|
202
|
-
#listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; }
|
203
|
-
#listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
|
204
|
-
#listing ul.alpha ul { margin: 0; padding: 0; }
|
205
|
-
#listing ul small { color: #666; font-size: 0.7em; }
|
206
|
-
|
207
|
-
li.r1 { background: #f0f0f0; }
|
208
|
-
li.r2 { background: #fafafa; }
|
209
|
-
|
210
|
-
#search_frame {
|
211
|
-
background: #fff;
|
212
|
-
display: none;
|
213
|
-
position: absolute;
|
214
|
-
top: 36px;
|
215
|
-
right: 18px;
|
216
|
-
width: 500px;
|
217
|
-
height: 80%;
|
218
|
-
overflow-y: scroll;
|
219
|
-
border: 1px solid #999;
|
220
|
-
border-collapse: collapse;
|
221
|
-
-webkit-box-shadow: -2px 5px 25px #aaa;
|
222
|
-
-moz-box-shadow: -2px 5px 25px #aaa;
|
223
|
-
-moz-border-radius: 2px;
|
224
|
-
-webkit-border-radius: 2px;
|
225
|
-
}
|
226
|
-
|
227
|
-
#content ul.summary li.deprecated a:link,
|
228
|
-
#content ul.summary li.deprecated a:visited { text-decoration: line-through; font-style: italic; }
|
229
|
-
|
230
|
-
/* syntax highlighting */
|
231
|
-
.source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
|
232
|
-
#filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
|
233
|
-
#filecontents pre.code, .docstring pre.code { display: block; }
|
234
|
-
.source_code .lines { padding-right: 12px; color: #555; text-align: right; }
|
235
|
-
#filecontents pre.code, .docstring pre.code,
|
236
|
-
.tags .example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
|
237
|
-
pre.code { color: #000; }
|
238
|
-
pre.code .info.file { color: #555; }
|
239
|
-
pre.code .val { color: #036A07; }
|
240
|
-
pre.code .tstring_content,
|
241
|
-
pre.code .heredoc_beg, pre.code .heredoc_end,
|
242
|
-
pre.code .qwords_beg, pre.code .qwords_end,
|
243
|
-
pre.code .tstring, pre.code .dstring { color: #036A07; }
|
244
|
-
pre.code .fid, pre.code .id.new, pre.code .id.to_s,
|
245
|
-
pre.code .id.to_sym, pre.code .id.to_f,
|
246
|
-
pre.code .dot + pre.code .id,
|
247
|
-
pre.code .id.to_i pre.code .id.each { color: #0085FF; }
|
248
|
-
pre.code .comment { color: #0066FF; }
|
249
|
-
pre.code .const, pre.code .constant { color: #585CF6; }
|
250
|
-
pre.code .symbol { color: #C5060B; }
|
251
|
-
pre.code .kw,
|
252
|
-
pre.code .label,
|
253
|
-
pre.code .id.require,
|
254
|
-
pre.code .id.extend,
|
255
|
-
pre.code .id.include { color: #0000FF; }
|
256
|
-
pre.code .ivar { color: #318495; }
|
257
|
-
pre.code .gvar,
|
258
|
-
pre.code .id.backref,
|
259
|
-
pre.code .id.nth_ref { color: #6D79DE; }
|
260
|
-
pre.code .regexp, .dregexp { color: #036A07; }
|
261
|
-
|
data/doc/file.README.html
DELETED
@@ -1,120 +0,0 @@
|
|
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.4.0</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 title="Index" href="_index.html">Index</a> »
|
23
|
-
<span class="title">File: README</span>
|
24
|
-
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div id="search">
|
28
|
-
<a id="class_list_link" href="#">Namespace List</a>
|
29
|
-
<a id="method_list_link" href="#">Method List</a>
|
30
|
-
<a id ="file_list_link" href="#">File List</a>
|
31
|
-
</div>
|
32
|
-
|
33
|
-
<div class="clear"></div>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<iframe id="search_frame"></iframe>
|
37
|
-
|
38
|
-
<div id="content"><div id='filecontents'><h1 id='sofa'>Sofa</h1>
|
39
|
-
|
40
|
-
<p>A simple Ruby library for the TVRage API (viewable <a href='http://services.tvrage.com/index.php?page=public'>here</a>).</p>
|
41
|
-
|
42
|
-
<h2 id='shows'>Shows</h2>
|
43
|
-
|
44
|
-
<pre class="code">Sofa::TVRage::Show.by_name("Chuck") # => #<Sofa::TVRage::Show:0x101360d38 @name="Chuck", @show_id="15614", ...>
|
45
|
-
OR
|
46
|
-
show = Sofa::TVRage::Show.new("15614") # => #<Sofa::TVRage::Show:0x1012ec3c0 @name="Chuck", @show_id="15614", ...></pre>
|
47
|
-
|
48
|
-
<h4 id='eager_loading_season_and_episode_info'>Eager loading Season and Episode info</h4>
|
49
|
-
|
50
|
-
<pre class="code">Sofa::TVRage::Show.by_name("Chuck", :greedy => true)
|
51
|
-
Sofa::TVRage::Show.new("15614", :greedy => true)</pre>
|
52
|
-
|
53
|
-
<h4 id='attributes'>Attributes</h4>
|
54
|
-
|
55
|
-
<pre class="code">show.show_id # => "15614"
|
56
|
-
show.name # => "Chuck"
|
57
|
-
show.show_link # => "http://tvrage.com/Chuck"
|
58
|
-
show.started # => "2007"
|
59
|
-
show.network # => "NBC"
|
60
|
-
show.air_time # => "20:00"
|
61
|
-
show.time_zone # => "GMT-5 -DST"
|
62
|
-
show.run_time # => "60"
|
63
|
-
show.origin_country # => "US"
|
64
|
-
show.air_day # => "Monday"
|
65
|
-
show.ended # => nil
|
66
|
-
show.classification # => "Scripted"
|
67
|
-
show.seasons # => "3"
|
68
|
-
show.start_date # => "Sep/24/2007"
|
69
|
-
show.status # => "Returning Series"
|
70
|
-
show.genres # => ["Action", "Comedy", "Drama"]
|
71
|
-
show.akas # => "Chuck"</pre>
|
72
|
-
|
73
|
-
<h2 id='seasons'>Seasons</h2>
|
74
|
-
|
75
|
-
<pre class="code">show.season_list # => [#<Sofa::TVRage::Season:0x1022d0f98 @no="1", @episodes=[...]>,
|
76
|
-
#<Sofa::TVRage::Season:0x1022c88c0 @no="2", @episodes=[...]>,
|
77
|
-
...]
|
78
|
-
season = show.season_list.first # => #<Sofa::TVRage::Season:0x1022d0f98 @no="1", @episodes=[...]></pre>
|
79
|
-
|
80
|
-
<h4 id='attributes'>Attributes</h4>
|
81
|
-
|
82
|
-
<pre class="code">season.episodes # => [#<Sofa::TVRage::Episode:0x1022d07a0 @title="Pilot", ...>,
|
83
|
-
#<Sofa::TVRage::Episode:0x1022cf148 @title="Chuck Versus the Helicopter", ...>,
|
84
|
-
...]
|
85
|
-
season.no # => "1"</pre>
|
86
|
-
|
87
|
-
<h2 id='episodes'>Episodes</h2>
|
88
|
-
|
89
|
-
<pre class="code">show.episode_list # => [#<Sofa::TVRage::Episode:0x1022d07a0 @title="Pilot", ...>,
|
90
|
-
#<Sofa::TVRage::Episode:0x1022cf148 @title="Chuck Versus the Helicopter", ...>,
|
91
|
-
...]
|
92
|
-
episode = show.episode_list.first # => #<Sofa::TVRage::Episode:0x1022d07a0 @title="Pilot", ...> </pre>
|
93
|
-
|
94
|
-
<h4 id='attributes'>Attributes</h4>
|
95
|
-
|
96
|
-
<pre class="code">episode.title # => "Pilot"
|
97
|
-
episode.air_date # => "2007-09-24"
|
98
|
-
episode.num_in_season # => "01"
|
99
|
-
episode.num # => "1"
|
100
|
-
episode.prod_num # => "101"
|
101
|
-
episode.link # => "http://www.tvrage.com/Chuck/episodes/579282"</pre>
|
102
|
-
|
103
|
-
<h2 id='contributing'>Contributing</h2>
|
104
|
-
|
105
|
-
<ul>
|
106
|
-
<li>Feel free to send feature/pull requests.</li>
|
107
|
-
</ul>
|
108
|
-
|
109
|
-
<h2 id='copyright'>Copyright</h2>
|
110
|
-
|
111
|
-
<p>Copyright (c) 2009 Henry Hsu. See LICENSE for details.</p></div></div>
|
112
|
-
|
113
|
-
<div id="footer">
|
114
|
-
Generated on Sat Nov 21 20:13:52 2009 by
|
115
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
116
|
-
0.4.0 (ruby-1.8.7).
|
117
|
-
</div>
|
118
|
-
|
119
|
-
</body>
|
120
|
-
</html>
|
data/doc/file_list.html
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
-
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
7
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
9
|
-
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
10
|
-
<base target="_parent" />
|
11
|
-
</head>
|
12
|
-
<body>
|
13
|
-
<h1 id="full_list_header">File List</h1>
|
14
|
-
<div id="search">Search: <input type="text" /></div>
|
15
|
-
<div class="clear"></div>
|
16
|
-
<ul id="full_list">
|
17
|
-
|
18
|
-
|
19
|
-
<li class="r1 ">
|
20
|
-
|
21
|
-
<a title="README" href="index.html">README</a>
|
22
|
-
|
23
|
-
|
24
|
-
</li>
|
25
|
-
|
26
|
-
</ul>
|
27
|
-
</body>
|
28
|
-
</html>
|
29
|
-
|
data/doc/index.html
DELETED
@@ -1,120 +0,0 @@
|
|
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.4.0</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 title="Index" href="_index.html">Index</a> »
|
23
|
-
<span class="title">File: README</span>
|
24
|
-
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div id="search">
|
28
|
-
<a id="class_list_link" href="#">Namespace List</a>
|
29
|
-
<a id="method_list_link" href="#">Method List</a>
|
30
|
-
<a id ="file_list_link" href="#">File List</a>
|
31
|
-
</div>
|
32
|
-
|
33
|
-
<div class="clear"></div>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<iframe id="search_frame"></iframe>
|
37
|
-
|
38
|
-
<div id="content"><div id='filecontents'><h1 id='sofa'>Sofa</h1>
|
39
|
-
|
40
|
-
<p>A simple Ruby library for the TVRage API (viewable <a href='http://services.tvrage.com/index.php?page=public'>here</a>).</p>
|
41
|
-
|
42
|
-
<h2 id='shows'>Shows</h2>
|
43
|
-
|
44
|
-
<pre class="code">Sofa::TVRage::Show.by_name("Chuck") # => #<Sofa::TVRage::Show:0x101360d38 @name="Chuck", @show_id="15614", ...>
|
45
|
-
OR
|
46
|
-
show = Sofa::TVRage::Show.new("15614") # => #<Sofa::TVRage::Show:0x1012ec3c0 @name="Chuck", @show_id="15614", ...></pre>
|
47
|
-
|
48
|
-
<h4 id='eager_loading_season_and_episode_info'>Eager loading Season and Episode info</h4>
|
49
|
-
|
50
|
-
<pre class="code">Sofa::TVRage::Show.by_name("Chuck", :greedy => true)
|
51
|
-
Sofa::TVRage::Show.new("15614", :greedy => true)</pre>
|
52
|
-
|
53
|
-
<h4 id='attributes'>Attributes</h4>
|
54
|
-
|
55
|
-
<pre class="code">show.show_id # => "15614"
|
56
|
-
show.name # => "Chuck"
|
57
|
-
show.show_link # => "http://tvrage.com/Chuck"
|
58
|
-
show.started # => "2007"
|
59
|
-
show.network # => "NBC"
|
60
|
-
show.air_time # => "20:00"
|
61
|
-
show.time_zone # => "GMT-5 -DST"
|
62
|
-
show.run_time # => "60"
|
63
|
-
show.origin_country # => "US"
|
64
|
-
show.air_day # => "Monday"
|
65
|
-
show.ended # => nil
|
66
|
-
show.classification # => "Scripted"
|
67
|
-
show.seasons # => "3"
|
68
|
-
show.start_date # => "Sep/24/2007"
|
69
|
-
show.status # => "Returning Series"
|
70
|
-
show.genres # => ["Action", "Comedy", "Drama"]
|
71
|
-
show.akas # => "Chuck"</pre>
|
72
|
-
|
73
|
-
<h2 id='seasons'>Seasons</h2>
|
74
|
-
|
75
|
-
<pre class="code">show.season_list # => [#<Sofa::TVRage::Season:0x1022d0f98 @no="1", @episodes=[...]>,
|
76
|
-
#<Sofa::TVRage::Season:0x1022c88c0 @no="2", @episodes=[...]>,
|
77
|
-
...]
|
78
|
-
season = show.season_list.first # => #<Sofa::TVRage::Season:0x1022d0f98 @no="1", @episodes=[...]></pre>
|
79
|
-
|
80
|
-
<h4 id='attributes'>Attributes</h4>
|
81
|
-
|
82
|
-
<pre class="code">season.episodes # => [#<Sofa::TVRage::Episode:0x1022d07a0 @title="Pilot", ...>,
|
83
|
-
#<Sofa::TVRage::Episode:0x1022cf148 @title="Chuck Versus the Helicopter", ...>,
|
84
|
-
...]
|
85
|
-
season.no # => "1"</pre>
|
86
|
-
|
87
|
-
<h2 id='episodes'>Episodes</h2>
|
88
|
-
|
89
|
-
<pre class="code">show.episode_list # => [#<Sofa::TVRage::Episode:0x1022d07a0 @title="Pilot", ...>,
|
90
|
-
#<Sofa::TVRage::Episode:0x1022cf148 @title="Chuck Versus the Helicopter", ...>,
|
91
|
-
...]
|
92
|
-
episode = show.episode_list.first # => #<Sofa::TVRage::Episode:0x1022d07a0 @title="Pilot", ...> </pre>
|
93
|
-
|
94
|
-
<h4 id='attributes'>Attributes</h4>
|
95
|
-
|
96
|
-
<pre class="code">episode.title # => "Pilot"
|
97
|
-
episode.air_date # => "2007-09-24"
|
98
|
-
episode.num_in_season # => "01"
|
99
|
-
episode.num # => "1"
|
100
|
-
episode.prod_num # => "101"
|
101
|
-
episode.link # => "http://www.tvrage.com/Chuck/episodes/579282"</pre>
|
102
|
-
|
103
|
-
<h2 id='contributing'>Contributing</h2>
|
104
|
-
|
105
|
-
<ul>
|
106
|
-
<li>Feel free to send feature/pull requests.</li>
|
107
|
-
</ul>
|
108
|
-
|
109
|
-
<h2 id='copyright'>Copyright</h2>
|
110
|
-
|
111
|
-
<p>Copyright (c) 2009 Henry Hsu. See LICENSE for details.</p></div></div>
|
112
|
-
|
113
|
-
<div id="footer">
|
114
|
-
Generated on Sat Nov 21 20:13:52 2009 by
|
115
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
116
|
-
0.4.0 (ruby-1.8.7).
|
117
|
-
</div>
|
118
|
-
|
119
|
-
</body>
|
120
|
-
</html>
|