yt-core 0.0.1 → 0.1.0
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/.gitignore +14 -22
- data/.rspec +3 -0
- data/.travis.yml +8 -0
- data/.yardopts +3 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +2 -1
- data/LICENSE.txt +17 -18
- data/README.md +81 -17
- data/Rakefile +8 -1
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/_config.yml +10 -0
- data/docs/_includes/doc.html +1 -0
- data/docs/_includes/dt.html +4 -0
- data/docs/_includes/example.html +1 -0
- data/docs/_includes/footer.html +3 -0
- data/docs/_includes/head.html +21 -0
- data/docs/_includes/header.html +57 -0
- data/docs/_layouts/default.html +58 -0
- data/docs/apple-touch-icon-precomposed.png +0 -0
- data/docs/channels.html +142 -0
- data/docs/css/yt.css +40 -0
- data/docs/errors.html +28 -0
- data/docs/favicon.ico +0 -0
- data/docs/fonts/SecondaRound-Bold.eot +0 -0
- data/docs/fonts/SecondaRound-Bold.svg +2160 -0
- data/docs/fonts/SecondaRound-Bold.ttf +0 -0
- data/docs/fonts/SecondaRound-Bold.woff +0 -0
- data/docs/fonts/SecondaRound-Bold.woff2 +0 -0
- data/docs/fonts/SecondaRound-Regular.eot +0 -0
- data/docs/fonts/SecondaRound-Regular.svg +1873 -0
- data/docs/fonts/SecondaRound-Regular.ttf +0 -0
- data/docs/fonts/SecondaRound-Regular.woff +0 -0
- data/docs/fonts/SecondaRound-Regular.woff2 +0 -0
- data/docs/images/console-01.png +0 -0
- data/docs/images/console-02.png +0 -0
- data/docs/images/console-03.png +0 -0
- data/docs/images/console-04.png +0 -0
- data/docs/images/console-05.png +0 -0
- data/docs/images/console-06.png +0 -0
- data/docs/images/console-07.png +0 -0
- data/docs/images/logo.png +0 -0
- data/docs/images/robot.png +0 -0
- data/docs/images/robots.png +0 -0
- data/docs/index.html +37 -0
- data/docs/playlist_items.html +65 -0
- data/docs/playlists.html +114 -0
- data/docs/urls.html +52 -0
- data/docs/videos.html +104 -0
- data/lib/yt/channel.rb +127 -0
- data/lib/yt/core/version.rb +8 -0
- data/lib/yt/core.rb +18 -0
- data/lib/yt/no_items_error.rb +8 -0
- data/lib/yt/playlist.rb +75 -0
- data/lib/yt/playlist_item.rb +59 -0
- data/lib/yt/relation.rb +100 -0
- data/lib/yt/resource.rb +85 -0
- data/lib/yt/response.rb +91 -0
- data/lib/yt/video.rb +216 -0
- data/yt-core.gemspec +27 -15
- metadata +155 -19
- data/lib/yt-core/version.rb +0 -3
- data/lib/yt-core.rb +0 -5
data/docs/css/yt.css
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
/* LAYOUT */
|
2
|
+
@media (min-width:1200px) {.container {width: 970px}} /* Reduce width on big screens */
|
3
|
+
html, body {height: 100%;}
|
4
|
+
main {min-height: 100%;}
|
5
|
+
main .container {overflow:auto; padding-bottom: 70px}
|
6
|
+
footer {position: relative; margin-top: -70px; height: 70px; clear:both; background: url('../images/robots.png') repeat-x center bottom}
|
7
|
+
.anchor {position: relative; top: -90px; display: block; visibility: hidden}
|
8
|
+
body {padding-top: 70px}
|
9
|
+
|
10
|
+
h4, .sidebar {margin-top: 20px}
|
11
|
+
h5 {margin-top: 15px}
|
12
|
+
pre {margin-bottom: 25px}
|
13
|
+
dt {margin-top: 30px}
|
14
|
+
dt {margin-bottom: 3px}
|
15
|
+
|
16
|
+
.sidebar {padding-left: 20px}
|
17
|
+
.navbar-brand img {display: inline}
|
18
|
+
|
19
|
+
|
20
|
+
/* TYPOGRAPHY */
|
21
|
+
@font-face {font-family: 'seconda_round_bold'; font-weight: normal; font-style: normal; src: url('../fonts/SecondaRound-Bold.eot'); src: url('../fonts/SecondaRound-Bold.eot?#iefix') format('embedded-opentype'), url('../fonts/SecondaRound-Bold.woff') format('woff'), url('../fonts/SecondaRound-Bold.ttf') format('truetype'), url('../fonts/SecondaRound-Bold.svg#SecondaRound-Bold') format('svg'); }
|
22
|
+
@font-face {font-family: 'seconda_round_regular'; font-weight: normal; font-style: normal; src: url('../fonts/SecondaRound-Regular.eot'); src: url('../fonts/SecondaRound-Regular.eot?#iefix') format('embedded-opentype'), url('../fonts/SecondaRound-Regular.woff') format('woff'), url('../fonts/SecondaRound-Regular.ttf') format('truetype'), url('../fonts/SecondaRound-Regular.svg#SecondaRound-Regular') format('svg'); }
|
23
|
+
body {font-family: 'seconda_round_regular',Helvetica,Arial,sans-serif}
|
24
|
+
h1, h2, .bold, .active {font-family: 'seconda_round_bold',Helvetica,Arial,sans-serif; font-weight: normal; font-style: normal}
|
25
|
+
pre, .sidebar {line-height: 1.8em}
|
26
|
+
|
27
|
+
.sidebar {font-size: 1.3em}
|
28
|
+
dt {font-size: 1.1em}
|
29
|
+
|
30
|
+
/* COLORS */
|
31
|
+
.navbar-default .navbar-brand {color: #10a17c}
|
32
|
+
.navbar-default {border-color: #10a17c; background-color: #fff}
|
33
|
+
.label.label-success {background-color: #10a17c;}
|
34
|
+
.label.label-warning {background-color: #c066b6;}
|
35
|
+
.label.label-danger {background-color: #ebd55d; color: #333}
|
36
|
+
.o {color: #555555}
|
37
|
+
.no, .ss {color: #10a17c}
|
38
|
+
.s1, .s2 {color: #306636}
|
39
|
+
.c1 {color: #999999}
|
40
|
+
.mi {color: #ab650d}
|
data/docs/errors.html
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
---
|
2
|
+
title: "Yt::Errors"
|
3
|
+
h2: "Errors"
|
4
|
+
---
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<code>Yt::Errors</code> define error classes that are raised when something goes wrong.
|
8
|
+
</p>
|
9
|
+
|
10
|
+
{% highlight ruby %}
|
11
|
+
channel = Yt::Channel.new id: 'this-id-does-not-exist'
|
12
|
+
channel.title # => raise Yt::NoItemsError
|
13
|
+
{% endhighlight %}
|
14
|
+
|
15
|
+
<hr />
|
16
|
+
<h4>List of errors</h4>
|
17
|
+
<dl>
|
18
|
+
|
19
|
+
{% include dt.html title="No Items" %}
|
20
|
+
<p>
|
21
|
+
<code>Yt::NoItemsError</code> is raised when items are expected from YouTube but none are returned.
|
22
|
+
</p>
|
23
|
+
|
24
|
+
{% highlight ruby %}
|
25
|
+
channel = Yt::Channel.new id: 'this-id-does-not-exist'
|
26
|
+
channel.title # => raise Yt::NoItemsError
|
27
|
+
{% endhighlight %}
|
28
|
+
</dl>
|
data/docs/favicon.ico
ADDED
Binary file
|
Binary file
|