yt-core 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +14 -22
  3. data/.rspec +3 -0
  4. data/.travis.yml +8 -0
  5. data/.yardopts +3 -0
  6. data/CHANGELOG.md +11 -0
  7. data/Gemfile +2 -1
  8. data/LICENSE.txt +17 -18
  9. data/README.md +81 -17
  10. data/Rakefile +8 -1
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/docs/_config.yml +10 -0
  14. data/docs/_includes/doc.html +1 -0
  15. data/docs/_includes/dt.html +4 -0
  16. data/docs/_includes/example.html +1 -0
  17. data/docs/_includes/footer.html +3 -0
  18. data/docs/_includes/head.html +21 -0
  19. data/docs/_includes/header.html +57 -0
  20. data/docs/_layouts/default.html +58 -0
  21. data/docs/apple-touch-icon-precomposed.png +0 -0
  22. data/docs/channels.html +142 -0
  23. data/docs/css/yt.css +40 -0
  24. data/docs/errors.html +28 -0
  25. data/docs/favicon.ico +0 -0
  26. data/docs/fonts/SecondaRound-Bold.eot +0 -0
  27. data/docs/fonts/SecondaRound-Bold.svg +2160 -0
  28. data/docs/fonts/SecondaRound-Bold.ttf +0 -0
  29. data/docs/fonts/SecondaRound-Bold.woff +0 -0
  30. data/docs/fonts/SecondaRound-Bold.woff2 +0 -0
  31. data/docs/fonts/SecondaRound-Regular.eot +0 -0
  32. data/docs/fonts/SecondaRound-Regular.svg +1873 -0
  33. data/docs/fonts/SecondaRound-Regular.ttf +0 -0
  34. data/docs/fonts/SecondaRound-Regular.woff +0 -0
  35. data/docs/fonts/SecondaRound-Regular.woff2 +0 -0
  36. data/docs/images/console-01.png +0 -0
  37. data/docs/images/console-02.png +0 -0
  38. data/docs/images/console-03.png +0 -0
  39. data/docs/images/console-04.png +0 -0
  40. data/docs/images/console-05.png +0 -0
  41. data/docs/images/console-06.png +0 -0
  42. data/docs/images/console-07.png +0 -0
  43. data/docs/images/logo.png +0 -0
  44. data/docs/images/robot.png +0 -0
  45. data/docs/images/robots.png +0 -0
  46. data/docs/index.html +37 -0
  47. data/docs/playlist_items.html +65 -0
  48. data/docs/playlists.html +114 -0
  49. data/docs/urls.html +52 -0
  50. data/docs/videos.html +104 -0
  51. data/lib/yt/channel.rb +127 -0
  52. data/lib/yt/core/version.rb +8 -0
  53. data/lib/yt/core.rb +18 -0
  54. data/lib/yt/no_items_error.rb +8 -0
  55. data/lib/yt/playlist.rb +75 -0
  56. data/lib/yt/playlist_item.rb +59 -0
  57. data/lib/yt/relation.rb +100 -0
  58. data/lib/yt/resource.rb +85 -0
  59. data/lib/yt/response.rb +91 -0
  60. data/lib/yt/video.rb +216 -0
  61. data/yt-core.gemspec +27 -15
  62. metadata +155 -19
  63. data/lib/yt-core/version.rb +0 -3
  64. 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