diff --git a/doc/CreateMusics.html b/doc/CreateMusics.html new file mode 100644 index 0000000000000000000000000000000000000000..555b7119e63f7fa34377d3be6606beab4bf2b7e0 --- /dev/null +++ b/doc/CreateMusics.html @@ -0,0 +1,234 @@ +<!DOCTYPE html> + +<html> +<head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> + +<title>class CreateMusics - RDoc Documentation</title> + +<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet"> + +<script type="text/javascript"> + var rdoc_rel_prefix = "./"; +</script> + +<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script> + + +<body id="top" class="class"> +<nav id="metadata"> + <nav id="home-section" class="section"> + <h3 class="section-header"> + <a href="./index.html">Home</a> + <a href="./table_of_contents.html#classes">Classes</a> + <a href="./table_of_contents.html#methods">Methods</a> + </h3> +</nav> + + + <nav id="search-section" class="section project-section" class="initially-hidden"> + <form action="#" method="get" accept-charset="utf-8"> + <h3 class="section-header"> + <input type="text" name="search" placeholder="Search" id="search-field" + title="Type to search, Up and Down to navigate, Enter to load"> + </h3> + </form> + + <ul id="search-results" class="initially-hidden"></ul> +</nav> + + + <div id="file-metadata"> + <nav id="file-list-section" class="section"> + <h3 class="section-header">Defined In</h3> + <ul> + <li>lib/migrate/001_create_musics.rb + </ul> +</nav> + + + </div> + + <div id="class-metadata"> + + <nav id="parent-class-section" class="section"> + <h3 class="section-header">Parent</h3> + + <p class="link">ActiveRecord::Migration + +</nav> + + + <!-- Method Quickref --> +<nav id="method-list-section" class="section"> + <h3 class="section-header">Methods</h3> + + <ul class="link-list"> + + <li><a href="#method-c-down">::down</a> + + <li><a href="#method-c-up">::up</a> + + </ul> +</nav> + + </div> + + <div id="project-metadata"> + <nav id="fileindex-section" class="section project-section"> + <h3 class="section-header">Pages</h3> + + <ul> + + <li class="file"><a href="./Gemfile.html">Gemfile</a> + + <li class="file"><a href="./Rakefile.html">Rakefile</a> + + </ul> +</nav> + + <nav id="classindex-section" class="section project-section"> + <h3 class="section-header">Class and Module Index</h3> + + <ul class="link-list"> + + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + + <li><a href="./Options.html">Options</a> + + <li><a href="./PlayBot.html">PlayBot</a> + + <li><a href="./SitePlugin.html">SitePlugin</a> + + <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + + <li><a href="./Tag.html">Tag</a> + + <li><a href="./TestPlugin1.html">TestPlugin1</a> + + <li><a href="./TestPlugin2.html">TestPlugin2</a> + + <li><a href="./YoutubePlugin.html">YoutubePlugin</a> + + </ul> +</nav> + + </div> +</nav> + +<div id="documentation"> + <h1 class="class">class CreateMusics</h1> + + <div id="description" class="description"> + + </div><!-- description --> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + + + + <!-- Methods --> + + <section id="public-class-5Buntitled-5D-method-details" class="method-section section"> + <h3 class="section-header">Public Class Methods</h3> + + + <div id="method-c-down" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">down</span><span + class="method-args">()</span> + <span class="method-click-advice">click to toggle source</span> + </div> + + + <div class="method-description"> + + + + + + <div class="method-source-code" id="down-source"> + <pre><span class="ruby-comment"># File lib/migrate/001_create_musics.rb, line 15</span> +<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">down</span> + <span class="ruby-identifier">drop_table</span> <span class="ruby-value">:musics</span> +<span class="ruby-keyword">end</span></pre> + </div><!-- down-source --> + + </div> + + + + + </div><!-- down-method --> + + + <div id="method-c-up" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">up</span><span + class="method-args">()</span> + <span class="method-click-advice">click to toggle source</span> + </div> + + + <div class="method-description"> + + + + + + <div class="method-source-code" id="up-source"> + <pre><span class="ruby-comment"># File lib/migrate/001_create_musics.rb, line 2</span> +<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">up</span> + <span class="ruby-identifier">create_table</span> <span class="ruby-value">:musics</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> + <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:title</span>, <span class="ruby-value">:null</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span> + <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:author</span>, <span class="ruby-value">:null</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span> + <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:sender</span>, <span class="ruby-value">:null</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span> + <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:url</span>, <span class="ruby-value">:null</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span> + <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:file</span> + <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span> + <span class="ruby-keyword">end</span> + + <span class="ruby-identifier">add_index</span> <span class="ruby-value">:musics</span>, <span class="ruby-value">:url</span>, <span class="ruby-value">:unique</span> +<span class="ruby-keyword">end</span></pre> + </div><!-- up-source --> + + </div> + + + + + </div><!-- up-method --> + + + </section><!-- public-class-method-details --> + + </section><!-- 5Buntitled-5D --> + +</div><!-- documentation --> + + +<footer id="validator-badges"> + <p><a href="http://validator.w3.org/check/referer">[Validate]</a> + <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12. + <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3. +</footer> + diff --git a/doc/CreateTags.html b/doc/CreateTags.html new file mode 100644 index 0000000000000000000000000000000000000000..8c4cc70145e8c0081ea3dc0aa36518929c9ad88f --- /dev/null +++ b/doc/CreateTags.html @@ -0,0 +1,230 @@ +<!DOCTYPE html> + +<html> +<head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> + +<title>class CreateTags - RDoc Documentation</title> + +<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet"> + +<script type="text/javascript"> + var rdoc_rel_prefix = "./"; +</script> + +<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script> + + +<body id="top" class="class"> +<nav id="metadata"> + <nav id="home-section" class="section"> + <h3 class="section-header"> + <a href="./index.html">Home</a> + <a href="./table_of_contents.html#classes">Classes</a> + <a href="./table_of_contents.html#methods">Methods</a> + </h3> +</nav> + + + <nav id="search-section" class="section project-section" class="initially-hidden"> + <form action="#" method="get" accept-charset="utf-8"> + <h3 class="section-header"> + <input type="text" name="search" placeholder="Search" id="search-field" + title="Type to search, Up and Down to navigate, Enter to load"> + </h3> + </form> + + <ul id="search-results" class="initially-hidden"></ul> +</nav> + + + <div id="file-metadata"> + <nav id="file-list-section" class="section"> + <h3 class="section-header">Defined In</h3> + <ul> + <li>lib/migrate/002_create_tags.rb + </ul> +</nav> + + + </div> + + <div id="class-metadata"> + + <nav id="parent-class-section" class="section"> + <h3 class="section-header">Parent</h3> + + <p class="link">ActiveRecord::Migration + +</nav> + + + <!-- Method Quickref --> +<nav id="method-list-section" class="section"> + <h3 class="section-header">Methods</h3> + + <ul class="link-list"> + + <li><a href="#method-c-down">::down</a> + + <li><a href="#method-c-up">::up</a> + + </ul> +</nav> + + </div> + + <div id="project-metadata"> + <nav id="fileindex-section" class="section project-section"> + <h3 class="section-header">Pages</h3> + + <ul> + + <li class="file"><a href="./Gemfile.html">Gemfile</a> + + <li class="file"><a href="./Rakefile.html">Rakefile</a> + + </ul> +</nav> + + <nav id="classindex-section" class="section project-section"> + <h3 class="section-header">Class and Module Index</h3> + + <ul class="link-list"> + + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + + <li><a href="./Options.html">Options</a> + + <li><a href="./PlayBot.html">PlayBot</a> + + <li><a href="./SitePlugin.html">SitePlugin</a> + + <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + + <li><a href="./Tag.html">Tag</a> + + <li><a href="./TestPlugin1.html">TestPlugin1</a> + + <li><a href="./TestPlugin2.html">TestPlugin2</a> + + <li><a href="./YoutubePlugin.html">YoutubePlugin</a> + + </ul> +</nav> + + </div> +</nav> + +<div id="documentation"> + <h1 class="class">class CreateTags</h1> + + <div id="description" class="description"> + + </div><!-- description --> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + + + + <!-- Methods --> + + <section id="public-class-5Buntitled-5D-method-details" class="method-section section"> + <h3 class="section-header">Public Class Methods</h3> + + + <div id="method-c-down" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">down</span><span + class="method-args">()</span> + <span class="method-click-advice">click to toggle source</span> + </div> + + + <div class="method-description"> + + + + + + <div class="method-source-code" id="down-source"> + <pre><span class="ruby-comment"># File lib/migrate/002_create_tags.rb, line 11</span> +<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">down</span> + <span class="ruby-identifier">drop_table</span> <span class="ruby-value">:tags</span> +<span class="ruby-keyword">end</span></pre> + </div><!-- down-source --> + + </div> + + + + + </div><!-- down-method --> + + + <div id="method-c-up" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">up</span><span + class="method-args">()</span> + <span class="method-click-advice">click to toggle source</span> + </div> + + + <div class="method-description"> + + + + + + <div class="method-source-code" id="up-source"> + <pre><span class="ruby-comment"># File lib/migrate/002_create_tags.rb, line 2</span> +<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">up</span> + <span class="ruby-identifier">create_table</span> <span class="ruby-value">:tags</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> + <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:tag</span> + <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-value">:video</span> + <span class="ruby-keyword">end</span> + + <span class="ruby-identifier">add_index</span> <span class="ruby-value">:tags</span>, [<span class="ruby-value">:tag</span>, <span class="ruby-value">:video</span>], <span class="ruby-value">:unique</span> +<span class="ruby-keyword">end</span></pre> + </div><!-- up-source --> + + </div> + + + + + </div><!-- up-method --> + + + </section><!-- public-class-method-details --> + + </section><!-- 5Buntitled-5D --> + +</div><!-- documentation --> + + +<footer id="validator-badges"> + <p><a href="http://validator.w3.org/check/referer">[Validate]</a> + <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12. + <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3. +</footer> + diff --git a/doc/Gemfile.html b/doc/Gemfile.html index a9b5bd98a5fb8101a55d99b76597960ebb93bd52..0798e41684dd83ba40df1fe93d2d2d1507ffda3f 100644 --- a/doc/Gemfile.html +++ b/doc/Gemfile.html @@ -51,6 +51,8 @@ <li class="file"><a href="./Gemfile.html">Gemfile</a> + <li class="file"><a href="./Rakefile.html">Rakefile</a> + </ul> </nav> @@ -59,6 +61,12 @@ <ul class="link-list"> + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + <li><a href="./Options.html">Options</a> <li><a href="./PlayBot.html">PlayBot</a> @@ -67,6 +75,8 @@ <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + <li><a href="./Tag.html">Tag</a> + <li><a href="./TestPlugin1.html">TestPlugin1</a> <li><a href="./TestPlugin2.html">TestPlugin2</a> @@ -81,8 +91,10 @@ <div id="documentation" class="description"> -<p>source “<a href="http://rubygems.org">rubygems.org</a>†gem “net-yail†gem -“rspec†gem “youtube_it†gem “soundcloudâ€</p> +<p>source “<a href="http://rubygems.org">rubygems.org</a>†gem “rake†gem +“net-yail†gem “rspec†gem “activerecord†gem “activesupport†gem “sqlite3â€</p> + +<p>gem “youtube_it†gem “soundcloudâ€</p> </div> diff --git a/doc/Music.html b/doc/Music.html new file mode 100644 index 0000000000000000000000000000000000000000..1872b0463ae74d57b490fdce8af1722c95161f6c --- /dev/null +++ b/doc/Music.html @@ -0,0 +1,158 @@ +<!DOCTYPE html> + +<html> +<head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> + +<title>class Music - RDoc Documentation</title> + +<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet"> + +<script type="text/javascript"> + var rdoc_rel_prefix = "./"; +</script> + +<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script> + + +<body id="top" class="class"> +<nav id="metadata"> + <nav id="home-section" class="section"> + <h3 class="section-header"> + <a href="./index.html">Home</a> + <a href="./table_of_contents.html#classes">Classes</a> + <a href="./table_of_contents.html#methods">Methods</a> + </h3> +</nav> + + + <nav id="search-section" class="section project-section" class="initially-hidden"> + <form action="#" method="get" accept-charset="utf-8"> + <h3 class="section-header"> + <input type="text" name="search" placeholder="Search" id="search-field" + title="Type to search, Up and Down to navigate, Enter to load"> + </h3> + </form> + + <ul id="search-results" class="initially-hidden"></ul> +</nav> + + + <div id="file-metadata"> + <nav id="file-list-section" class="section"> + <h3 class="section-header">Defined In</h3> + <ul> + <li>lib/music.rb + </ul> +</nav> + + + </div> + + <div id="class-metadata"> + + <nav id="parent-class-section" class="section"> + <h3 class="section-header">Parent</h3> + + <p class="link">ActiveRecord::Base + +</nav> + + + + </div> + + <div id="project-metadata"> + <nav id="fileindex-section" class="section project-section"> + <h3 class="section-header">Pages</h3> + + <ul> + + <li class="file"><a href="./Gemfile.html">Gemfile</a> + + <li class="file"><a href="./Rakefile.html">Rakefile</a> + + </ul> +</nav> + + <nav id="classindex-section" class="section project-section"> + <h3 class="section-header">Class and Module Index</h3> + + <ul class="link-list"> + + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + + <li><a href="./Options.html">Options</a> + + <li><a href="./PlayBot.html">PlayBot</a> + + <li><a href="./SitePlugin.html">SitePlugin</a> + + <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + + <li><a href="./Tag.html">Tag</a> + + <li><a href="./TestPlugin1.html">TestPlugin1</a> + + <li><a href="./TestPlugin2.html">TestPlugin2</a> + + <li><a href="./YoutubePlugin.html">YoutubePlugin</a> + + </ul> +</nav> + + </div> +</nav> + +<div id="documentation"> + <h1 class="class">class Music</h1> + + <div id="description" class="description"> + +<p><a href="Music.html">Music</a> Object</p> + +<p>Its attribut are :</p> + +<pre>* title +* author +* url +* sender +* file +* created_ad</pre> + + </div><!-- description --> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + + + + <!-- Methods --> + + </section><!-- 5Buntitled-5D --> + +</div><!-- documentation --> + + +<footer id="validator-badges"> + <p><a href="http://validator.w3.org/check/referer">[Validate]</a> + <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12. + <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3. +</footer> + diff --git a/doc/Options.html b/doc/Options.html index 4f861d6759c56f2e20f86a30dad388fbd9900400..9b1de847a5a88b077e469f16051614750ef122dc 100644 --- a/doc/Options.html +++ b/doc/Options.html @@ -89,6 +89,8 @@ <li class="file"><a href="./Gemfile.html">Gemfile</a> + <li class="file"><a href="./Rakefile.html">Rakefile</a> + </ul> </nav> @@ -97,6 +99,12 @@ <ul class="link-list"> + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + <li><a href="./Options.html">Options</a> <li><a href="./PlayBot.html">PlayBot</a> @@ -105,6 +113,8 @@ <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + <li><a href="./Tag.html">Tag</a> + <li><a href="./TestPlugin1.html">TestPlugin1</a> <li><a href="./TestPlugin2.html">TestPlugin2</a> @@ -160,8 +170,8 @@ <div class="method-source-code" id="new-source"> - <pre><span class="ruby-comment"># File lib/options.rb, line 6</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file</span> = <span class="ruby-node">"#{ENV['HOME']}/.playbot"</span>) + <pre><span class="ruby-comment"># File lib/options.rb, line 7</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file</span> = <span class="ruby-node">"#{ENV['HOME']}/.playbot/config"</span>) <span class="ruby-ivar">@options</span> = {} <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">file</span> <span class="ruby-keyword">end</span></pre> @@ -198,7 +208,7 @@ overwrite configuration file.</p> <div class="method-source-code" id="read_all-source"> - <pre><span class="ruby-comment"># File lib/options.rb, line 12</span> + <pre><span class="ruby-comment"># File lib/options.rb, line 13</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier">read_all</span> <span class="ruby-comment"># Firt we read options from command line.</span> <span class="ruby-constant">OptionParser</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">opts</span><span class="ruby-operator">|</span> @@ -255,10 +265,10 @@ overwrite configuration file.</p> <div class="method-source-code" id="read_file-source"> - <pre><span class="ruby-comment"># File lib/options.rb, line 44</span> + <pre><span class="ruby-comment"># File lib/options.rb, line 45</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier">read_file</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-ivar">@file</span>) - <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load_file</span>(<span class="ruby-ivar">@file</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span> + <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load_file</span>(<span class="ruby-ivar">@file</span>).<span class="ruby-identifier">with_indifferent_access</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">v</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">k</span>) <span class="ruby-keyword">end</span> <span class="ruby-keyword">end</span> diff --git a/doc/PlayBot.html b/doc/PlayBot.html index b1315adceb4a5335be356e8a11043e70eb58cc5d..f1469d9c62cee0615d9fc55e74dce1be91236a5f 100644 --- a/doc/PlayBot.html +++ b/doc/PlayBot.html @@ -87,6 +87,8 @@ <li class="file"><a href="./Gemfile.html">Gemfile</a> + <li class="file"><a href="./Rakefile.html">Rakefile</a> + </ul> </nav> @@ -95,6 +97,12 @@ <ul class="link-list"> + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + <li><a href="./Options.html">Options</a> <li><a href="./PlayBot.html">PlayBot</a> @@ -103,6 +111,8 @@ <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + <li><a href="./Tag.html">Tag</a> + <li><a href="./TestPlugin1.html">TestPlugin1</a> <li><a href="./TestPlugin2.html">TestPlugin2</a> @@ -186,7 +196,7 @@ <div class="method-source-code" id="new-source"> - <pre><span class="ruby-comment"># File lib/playbot.rb, line 33</span> + <pre><span class="ruby-comment"># File lib/playbot.rb, line 34</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span> = {}) <span class="ruby-ivar">@admin</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value">:admin</span>) <span class="ruby-identifier">raise</span> <span class="ruby-string">"You must provide an admin !"</span> <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@admin</span> @@ -235,7 +245,7 @@ <div class="method-source-code" id="add_custom_handlers-source"> - <pre><span class="ruby-comment"># File lib/playbot.rb, line 51</span> + <pre><span class="ruby-comment"># File lib/playbot.rb, line 52</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier">add_custom_handlers</span>() <span class="ruby-ivar">@irc</span>.<span class="ruby-identifier">hearing_welcome</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">method</span>(<span class="ruby-value">:_in_welcome</span>) <span class="ruby-ivar">@irc</span>.<span class="ruby-identifier">on_msg</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">method</span>(<span class="ruby-value">:_in_msg</span>) diff --git a/doc/Rakefile.html b/doc/Rakefile.html new file mode 100644 index 0000000000000000000000000000000000000000..4b9f0ccf2ccba6f2067a77c3b4b17364eae239e5 --- /dev/null +++ b/doc/Rakefile.html @@ -0,0 +1,124 @@ +<!DOCTYPE html> + +<html> +<head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> + +<title>Rakefile - RDoc Documentation</title> + +<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet"> + +<script type="text/javascript"> + var rdoc_rel_prefix = "./"; +</script> + +<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script> + + +<body class="file"> +<nav id="metadata"> + <nav id="home-section" class="section"> + <h3 class="section-header"> + <a href="./index.html">Home</a> + <a href="./table_of_contents.html#classes">Classes</a> + <a href="./table_of_contents.html#methods">Methods</a> + </h3> +</nav> + + + <nav id="search-section" class="section project-section" class="initially-hidden"> + <form action="#" method="get" accept-charset="utf-8"> + <h3 class="section-header"> + <input type="text" name="search" placeholder="Search" id="search-field" + title="Type to search, Up and Down to navigate, Enter to load"> + </h3> + </form> + + <ul id="search-results" class="initially-hidden"></ul> +</nav> + + + <div id="project-metadata"> + <nav id="fileindex-section" class="section project-section"> + <h3 class="section-header">Pages</h3> + + <ul> + + <li class="file"><a href="./Gemfile.html">Gemfile</a> + + <li class="file"><a href="./Rakefile.html">Rakefile</a> + + </ul> +</nav> + + <nav id="classindex-section" class="section project-section"> + <h3 class="section-header">Class and Module Index</h3> + + <ul class="link-list"> + + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + + <li><a href="./Options.html">Options</a> + + <li><a href="./PlayBot.html">PlayBot</a> + + <li><a href="./SitePlugin.html">SitePlugin</a> + + <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + + <li><a href="./Tag.html">Tag</a> + + <li><a href="./TestPlugin1.html">TestPlugin1</a> + + <li><a href="./TestPlugin2.html">TestPlugin2</a> + + <li><a href="./YoutubePlugin.html">YoutubePlugin</a> + + </ul> +</nav> + + </div> +</nav> + +<div id="documentation" class="description"> + +<p>require ‘active_record’ require ‘logger’</p> + +<p>require_relative ‘lib/options.rb’</p> + +<p>task :default => :migrate</p> + +<p>desc “Migrate the database through scripts in db/migrate. Target specific +version with VERSION=x†task :migrate => :environment do</p> + +<pre>ActiveRecord::Migrator.migrate('lib/migrate', ENV["VERSION"] ? ENV["VERSION"].to_i : nil )</pre> + +<p>end</p> + +<p>task :environment do</p> + +<pre>config = Options.new.read_file +ActiveRecord::Base.establish_connection(config[:database]) +ActiveRecord::Base.logger = Logger.new(File.open(config[:database][:log], 'a'))</pre> + +<p>end</p> + +</div> + + + +<footer id="validator-badges"> + <p><a href="http://validator.w3.org/check/referer">[Validate]</a> + <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12. + <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3. +</footer> + diff --git a/doc/SitePlugin.html b/doc/SitePlugin.html index 8e41fd9426cbf88af8c9962f50a85a861b84eb39..0e3c7b182d5476dbd90371e430c18a9381e83dcd 100644 --- a/doc/SitePlugin.html +++ b/doc/SitePlugin.html @@ -91,6 +91,8 @@ <li class="file"><a href="./Gemfile.html">Gemfile</a> + <li class="file"><a href="./Rakefile.html">Rakefile</a> + </ul> </nav> @@ -99,6 +101,12 @@ <ul class="link-list"> + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + <li><a href="./Options.html">Options</a> <li><a href="./PlayBot.html">PlayBot</a> @@ -107,6 +115,8 @@ <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + <li><a href="./Tag.html">Tag</a> + <li><a href="./TestPlugin1.html">TestPlugin1</a> <li><a href="./TestPlugin2.html">TestPlugin2</a> diff --git a/doc/SoundcloudPlugin.html b/doc/SoundcloudPlugin.html index 48f3a4c54d583ba40d9049a186bf5e2af8a800ba..5cf7f9b4358db309a46f484c3856fc6e822bdaa6 100644 --- a/doc/SoundcloudPlugin.html +++ b/doc/SoundcloudPlugin.html @@ -89,6 +89,8 @@ <li class="file"><a href="./Gemfile.html">Gemfile</a> + <li class="file"><a href="./Rakefile.html">Rakefile</a> + </ul> </nav> @@ -97,6 +99,12 @@ <ul class="link-list"> + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + <li><a href="./Options.html">Options</a> <li><a href="./PlayBot.html">PlayBot</a> @@ -105,6 +113,8 @@ <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + <li><a href="./Tag.html">Tag</a> + <li><a href="./TestPlugin1.html">TestPlugin1</a> <li><a href="./TestPlugin2.html">TestPlugin2</a> @@ -231,8 +241,9 @@ <pre><span class="ruby-comment"># File plugins/soundcloud_plugin.rb, line 20</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">url</span>) <span class="ruby-identifier">track</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">get</span>(<span class="ruby-string">'/resolve'</span>, <span class="ruby-value">:url</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">url</span>) + <span class="ruby-identifier">url</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">%rhttp:\/\//</span>, <span class="ruby-string">'https://'</span>) - {<span class="ruby-value">:title</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">track</span>.<span class="ruby-identifier">title</span>, <span class="ruby-value">:author</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">track</span>.<span class="ruby-identifier">user</span>.<span class="ruby-identifier">username</span>} + {<span class="ruby-value">:title</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">track</span>.<span class="ruby-identifier">title</span>, <span class="ruby-value">:author</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">track</span>.<span class="ruby-identifier">user</span>.<span class="ruby-identifier">username</span>, <span class="ruby-value">:url</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">url</span>} <span class="ruby-keyword">end</span></pre> </div><!-- get-source --> diff --git a/doc/Tag.html b/doc/Tag.html new file mode 100644 index 0000000000000000000000000000000000000000..f646afa10b17bcfc9d3dfca09dba66956a650d9f --- /dev/null +++ b/doc/Tag.html @@ -0,0 +1,154 @@ +<!DOCTYPE html> + +<html> +<head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> + +<title>class Tag - RDoc Documentation</title> + +<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet"> + +<script type="text/javascript"> + var rdoc_rel_prefix = "./"; +</script> + +<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/search.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script> +<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script> + + +<body id="top" class="class"> +<nav id="metadata"> + <nav id="home-section" class="section"> + <h3 class="section-header"> + <a href="./index.html">Home</a> + <a href="./table_of_contents.html#classes">Classes</a> + <a href="./table_of_contents.html#methods">Methods</a> + </h3> +</nav> + + + <nav id="search-section" class="section project-section" class="initially-hidden"> + <form action="#" method="get" accept-charset="utf-8"> + <h3 class="section-header"> + <input type="text" name="search" placeholder="Search" id="search-field" + title="Type to search, Up and Down to navigate, Enter to load"> + </h3> + </form> + + <ul id="search-results" class="initially-hidden"></ul> +</nav> + + + <div id="file-metadata"> + <nav id="file-list-section" class="section"> + <h3 class="section-header">Defined In</h3> + <ul> + <li>lib/tag.rb + </ul> +</nav> + + + </div> + + <div id="class-metadata"> + + <nav id="parent-class-section" class="section"> + <h3 class="section-header">Parent</h3> + + <p class="link">ActiveRecord::Base + +</nav> + + + + </div> + + <div id="project-metadata"> + <nav id="fileindex-section" class="section project-section"> + <h3 class="section-header">Pages</h3> + + <ul> + + <li class="file"><a href="./Gemfile.html">Gemfile</a> + + <li class="file"><a href="./Rakefile.html">Rakefile</a> + + </ul> +</nav> + + <nav id="classindex-section" class="section project-section"> + <h3 class="section-header">Class and Module Index</h3> + + <ul class="link-list"> + + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + + <li><a href="./Options.html">Options</a> + + <li><a href="./PlayBot.html">PlayBot</a> + + <li><a href="./SitePlugin.html">SitePlugin</a> + + <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + + <li><a href="./Tag.html">Tag</a> + + <li><a href="./TestPlugin1.html">TestPlugin1</a> + + <li><a href="./TestPlugin2.html">TestPlugin2</a> + + <li><a href="./YoutubePlugin.html">YoutubePlugin</a> + + </ul> +</nav> + + </div> +</nav> + +<div id="documentation"> + <h1 class="class">class Tag</h1> + + <div id="description" class="description"> + +<p><a href="Tag.html">Tag</a> Object</p> + +<p>Its attribute are :</p> + +<pre>* video +* tage</pre> + + </div><!-- description --> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + + + + <!-- Methods --> + + </section><!-- 5Buntitled-5D --> + +</div><!-- documentation --> + + +<footer id="validator-badges"> + <p><a href="http://validator.w3.org/check/referer">[Validate]</a> + <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12. + <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3. +</footer> + diff --git a/doc/TestPlugin1.html b/doc/TestPlugin1.html index f2ef3baee99a918412ae75814454bcc41ce292e5..95ee3889395356d4f2a2894d4a04ed414d896fe2 100644 --- a/doc/TestPlugin1.html +++ b/doc/TestPlugin1.html @@ -85,6 +85,8 @@ <li class="file"><a href="./Gemfile.html">Gemfile</a> + <li class="file"><a href="./Rakefile.html">Rakefile</a> + </ul> </nav> @@ -93,6 +95,12 @@ <ul class="link-list"> + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + <li><a href="./Options.html">Options</a> <li><a href="./PlayBot.html">PlayBot</a> @@ -101,6 +109,8 @@ <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + <li><a href="./Tag.html">Tag</a> + <li><a href="./TestPlugin1.html">TestPlugin1</a> <li><a href="./TestPlugin2.html">TestPlugin2</a> diff --git a/doc/TestPlugin2.html b/doc/TestPlugin2.html index 5bc0f9c781be9fc170d395e2f4d8d972e7ecb1dc..592b222e0732c0cf9c66b68caf0338aa331694e9 100644 --- a/doc/TestPlugin2.html +++ b/doc/TestPlugin2.html @@ -85,6 +85,8 @@ <li class="file"><a href="./Gemfile.html">Gemfile</a> + <li class="file"><a href="./Rakefile.html">Rakefile</a> + </ul> </nav> @@ -93,6 +95,12 @@ <ul class="link-list"> + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + <li><a href="./Options.html">Options</a> <li><a href="./PlayBot.html">PlayBot</a> @@ -101,6 +109,8 @@ <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + <li><a href="./Tag.html">Tag</a> + <li><a href="./TestPlugin1.html">TestPlugin1</a> <li><a href="./TestPlugin2.html">TestPlugin2</a> diff --git a/doc/YoutubePlugin.html b/doc/YoutubePlugin.html index ecdfd8e4e8bceeefb74f7ab2c92ce0c5abb19fbf..f5dfb398b95fc9d69decdc9ff79f1d222bca2926 100644 --- a/doc/YoutubePlugin.html +++ b/doc/YoutubePlugin.html @@ -89,6 +89,8 @@ <li class="file"><a href="./Gemfile.html">Gemfile</a> + <li class="file"><a href="./Rakefile.html">Rakefile</a> + </ul> </nav> @@ -97,6 +99,12 @@ <ul class="link-list"> + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + <li><a href="./Options.html">Options</a> <li><a href="./PlayBot.html">PlayBot</a> @@ -105,6 +113,8 @@ <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + <li><a href="./Tag.html">Tag</a> + <li><a href="./TestPlugin1.html">TestPlugin1</a> <li><a href="./TestPlugin2.html">TestPlugin2</a> @@ -162,7 +172,7 @@ <div class="method-source-code" id="can_handle-3F-source"> <pre><span class="ruby-comment"># File plugins/youtube_plugin.rb, line 9</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">can_handle?</span>(<span class="ruby-identifier">site</span>) - <span class="ruby-identifier">site</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">%r^https?:\/\/((www.)?youtube.(fr|com)\/watch\?v=|youtu\.be\/)[a-zA-Z0-9]+$/</span> + <span class="ruby-identifier">site</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">%r^https?:\/\/((www.)?youtube.(fr|com)\/watch\?v=|youtu\.be\/)[a-zA-Z0-9-]+$/</span> <span class="ruby-keyword">end</span></pre> </div><!-- can_handle-3F-source --> @@ -229,7 +239,8 @@ <pre><span class="ruby-comment"># File plugins/youtube_plugin.rb, line 18</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">url</span>) <span class="ruby-identifier">video</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">video_by</span>(<span class="ruby-identifier">url</span>) - {<span class="ruby-value">:title</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">video</span>.<span class="ruby-identifier">title</span>, <span class="ruby-value">:author</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">video</span>.<span class="ruby-identifier">author</span>.<span class="ruby-identifier">name</span>} + <span class="ruby-identifier">url</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">%rhttps?:\/\/(www.)?youtube.(fr|com)\/watch\?v=|youtu\.be/</span>, <span class="ruby-string">'https://www.youtube.com'</span>) + {<span class="ruby-value">:title</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">video</span>.<span class="ruby-identifier">title</span>, <span class="ruby-value">:author</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">video</span>.<span class="ruby-identifier">author</span>.<span class="ruby-identifier">name</span>, <span class="ruby-value">:url</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">url</span>} <span class="ruby-keyword">end</span></pre> </div><!-- get-source --> diff --git a/doc/created.rid b/doc/created.rid index 2a9371446c61535ec2a43333f2dd35e4498e6642..28c7f273e6d46b874894869df5bf1edabce31923 100644 --- a/doc/created.rid +++ b/doc/created.rid @@ -1,11 +1,16 @@ -Wed, 02 Jan 2013 21:52:51 +0100 -./Gemfile Wed, 02 Jan 2013 21:52:46 +0100 -./plugins/youtube_plugin.rb Wed, 02 Jan 2013 21:52:46 +0100 -./plugins/soundcloud_plugin.rb Wed, 02 Jan 2013 21:52:46 +0100 -./run.rb Wed, 02 Jan 2013 21:52:46 +0100 -./lib/options.rb Wed, 02 Jan 2013 21:52:46 +0100 -./lib/playbot.rb Wed, 02 Jan 2013 21:52:46 +0100 -./lib/site_plugin.rb Wed, 02 Jan 2013 21:52:46 +0100 -./spec/youtube_plugin_spec.rb Wed, 02 Jan 2013 21:52:46 +0100 -./spec/site_plugin_spec.rb Wed, 02 Jan 2013 21:52:46 +0100 -./spec/soundcloud_plugin_spec.rb Wed, 02 Jan 2013 21:52:46 +0100 +Sat, 05 Jan 2013 17:45:25 +0100 +./Rakefile Sat, 05 Jan 2013 16:47:06 +0100 +./run.rb Sat, 05 Jan 2013 16:54:35 +0100 +./plugins/youtube_plugin.rb Sat, 05 Jan 2013 17:43:26 +0100 +./plugins/soundcloud_plugin.rb Sat, 05 Jan 2013 16:04:44 +0100 +./lib/music.rb Sat, 05 Jan 2013 16:59:04 +0100 +./lib/options.rb Sat, 05 Jan 2013 16:46:35 +0100 +./lib/tag.rb Sat, 05 Jan 2013 17:45:21 +0100 +./lib/playbot.rb Sat, 05 Jan 2013 16:23:17 +0100 +./lib/migrate/001_create_musics.rb Sat, 05 Jan 2013 17:10:56 +0100 +./lib/migrate/002_create_tags.rb Sat, 05 Jan 2013 17:43:25 +0100 +./lib/site_plugin.rb Sat, 05 Jan 2013 13:01:59 +0100 +./Gemfile Sat, 05 Jan 2013 16:44:55 +0100 +./spec/site_plugin_spec.rb Sat, 05 Jan 2013 13:01:59 +0100 +./spec/soundcloud_plugin_spec.rb Sat, 05 Jan 2013 13:01:59 +0100 +./spec/youtube_plugin_spec.rb Sat, 05 Jan 2013 13:01:59 +0100 diff --git a/doc/index.html b/doc/index.html index 51c7a1271c8d148ef9ea77203ac3f98cbb0e3294..df5fa958c0e28a80992ec85428f9a32762147296 100644 --- a/doc/index.html +++ b/doc/index.html @@ -51,6 +51,8 @@ <li class="file"><a href="./Gemfile.html">Gemfile</a> + <li class="file"><a href="./Rakefile.html">Rakefile</a> + </ul> </nav> @@ -59,6 +61,12 @@ <ul class="link-list"> + <li><a href="./CreateMusics.html">CreateMusics</a> + + <li><a href="./CreateTags.html">CreateTags</a> + + <li><a href="./Music.html">Music</a> + <li><a href="./Options.html">Options</a> <li><a href="./PlayBot.html">PlayBot</a> @@ -67,6 +75,8 @@ <li><a href="./SoundcloudPlugin.html">SoundcloudPlugin</a> + <li><a href="./Tag.html">Tag</a> + <li><a href="./TestPlugin1.html">TestPlugin1</a> <li><a href="./TestPlugin2.html">TestPlugin2</a> diff --git a/doc/js/search_index.js b/doc/js/search_index.js index 3d2dcbfaebbae350023742414087839a4f9d8d99..31729e3f8dfc0fc4a20c497b7ac9a8065317160f 100644 --- a/doc/js/search_index.js +++ b/doc/js/search_index.js @@ -1 +1 @@ -var search_data = {"index":{"searchIndex":["options","playbot","siteplugin","soundcloudplugin","testplugin1","testplugin2","youtubeplugin","add_custom_handlers()","can_handle?()","can_handle?()","can_handle?()","can_handle?()","for_site()","get()","get()","inherited()","method_missing()","new()","new()","new()","new()","read_all()","read_file()","repository()","gemfile"],"longSearchIndex":["options","playbot","siteplugin","soundcloudplugin","testplugin1","testplugin2","youtubeplugin","playbot#add_custom_handlers()","soundcloudplugin::can_handle?()","testplugin1::can_handle?()","testplugin2::can_handle?()","youtubeplugin::can_handle?()","siteplugin::for_site()","soundcloudplugin#get()","youtubeplugin#get()","siteplugin::inherited()","siteplugin#method_missing()","options::new()","playbot::new()","soundcloudplugin::new()","youtubeplugin::new()","options#read_all()","options#read_file()","siteplugin::repository()",""],"info":[["Options","","Options.html","","<p>Allow us to get options, set by user or default ones.\n"],["PlayBot","","PlayBot.html","",""],["SitePlugin","","SitePlugin.html","","<p>Implement a plugin system.\n<p>Each plugin have to inherite from this class and implement a\ncan_handle?(site) …\n"],["SoundcloudPlugin","","SoundcloudPlugin.html","","<p>SitePlugin for Soundcloud\n<p>Need an client ID (soundcloud_client_id).\n"],["TestPlugin1","","TestPlugin1.html","",""],["TestPlugin2","","TestPlugin2.html","",""],["YoutubePlugin","","YoutubePlugin.html","","<p>SitePlugin for YouTube\n"],["add_custom_handlers","PlayBot","PlayBot.html#method-i-add_custom_handlers","()","<p>This metod is called by IRCBot#connect_socket\n"],["can_handle?","SoundcloudPlugin","SoundcloudPlugin.html#method-c-can_handle-3F","(site)",""],["can_handle?","TestPlugin1","TestPlugin1.html#method-c-can_handle-3F","(site)",""],["can_handle?","TestPlugin2","TestPlugin2.html#method-c-can_handle-3F","(site)",""],["can_handle?","YoutubePlugin","YoutubePlugin.html#method-c-can_handle-3F","(site)",""],["for_site","SitePlugin","SitePlugin.html#method-c-for_site","(site)","<p>Return the plugin that can handle a given site.\n"],["get","SoundcloudPlugin","SoundcloudPlugin.html#method-i-get","(url)",""],["get","YoutubePlugin","YoutubePlugin.html#method-i-get","(url)",""],["inherited","SitePlugin","SitePlugin.html#method-c-inherited","(target)",""],["method_missing","SitePlugin","SitePlugin.html#method-i-method_missing","(method)","<p>Raise an error message if the missing method should have been implemented\nin the subclasse. This possible …\n"],["new","Options","Options.html#method-c-new","(file = \"#{ENV['HOME']}/.playbot\")",""],["new","PlayBot","PlayBot.html#method-c-new","(options = {})","<p>Start a new instance\n<p>Options:\n<p><code>:address</code>: irc server\n"],["new","SoundcloudPlugin","SoundcloudPlugin.html#method-c-new","(options)",""],["new","YoutubePlugin","YoutubePlugin.html#method-c-new","(options)",""],["read_all","Options","Options.html#method-i-read_all","()","<p>Read the options from commande line and configuration file. Command line\noverwrite configuration file. …\n"],["read_file","Options","Options.html#method-i-read_file","()","<p>Read the options from the configuration file.\n"],["repository","SitePlugin","SitePlugin.html#method-c-repository","()",""],["Gemfile","","Gemfile.html","","<p>source “rubygems.org†gem “net-yail†gem “rspec†gem “youtube_it†…\n"]]}} \ No newline at end of file +var search_data = {"index":{"searchIndex":["createmusics","createtags","music","options","playbot","siteplugin","soundcloudplugin","tag","testplugin1","testplugin2","youtubeplugin","add_custom_handlers()","can_handle?()","can_handle?()","can_handle?()","can_handle?()","down()","down()","for_site()","get()","get()","inherited()","method_missing()","new()","new()","new()","new()","read_all()","read_file()","repository()","up()","up()","gemfile","rakefile"],"longSearchIndex":["createmusics","createtags","music","options","playbot","siteplugin","soundcloudplugin","tag","testplugin1","testplugin2","youtubeplugin","playbot#add_custom_handlers()","soundcloudplugin::can_handle?()","testplugin1::can_handle?()","testplugin2::can_handle?()","youtubeplugin::can_handle?()","createmusics::down()","createtags::down()","siteplugin::for_site()","soundcloudplugin#get()","youtubeplugin#get()","siteplugin::inherited()","siteplugin#method_missing()","options::new()","playbot::new()","soundcloudplugin::new()","youtubeplugin::new()","options#read_all()","options#read_file()","siteplugin::repository()","createmusics::up()","createtags::up()","",""],"info":[["CreateMusics","","CreateMusics.html","",""],["CreateTags","","CreateTags.html","",""],["Music","","Music.html","","<p>Music Object\n<p>Its attribut are :\n\n<pre>* title\n* author\n* url\n* sender\n* file\n* created_ad</pre>\n"],["Options","","Options.html","","<p>Allow us to get options, set by user or default ones.\n"],["PlayBot","","PlayBot.html","",""],["SitePlugin","","SitePlugin.html","","<p>Implement a plugin system.\n<p>Each plugin have to inherite from this class and implement a\ncan_handle?(site) …\n"],["SoundcloudPlugin","","SoundcloudPlugin.html","","<p>SitePlugin for Soundcloud\n<p>Need an client ID (soundcloud_client_id).\n"],["Tag","","Tag.html","","<p>Tag Object\n<p>Its attribute are :\n\n<pre>* video\n* tage</pre>\n"],["TestPlugin1","","TestPlugin1.html","",""],["TestPlugin2","","TestPlugin2.html","",""],["YoutubePlugin","","YoutubePlugin.html","","<p>SitePlugin for YouTube\n"],["add_custom_handlers","PlayBot","PlayBot.html#method-i-add_custom_handlers","()","<p>This metod is called by IRCBot#connect_socket\n"],["can_handle?","SoundcloudPlugin","SoundcloudPlugin.html#method-c-can_handle-3F","(site)",""],["can_handle?","TestPlugin1","TestPlugin1.html#method-c-can_handle-3F","(site)",""],["can_handle?","TestPlugin2","TestPlugin2.html#method-c-can_handle-3F","(site)",""],["can_handle?","YoutubePlugin","YoutubePlugin.html#method-c-can_handle-3F","(site)",""],["down","CreateMusics","CreateMusics.html#method-c-down","()",""],["down","CreateTags","CreateTags.html#method-c-down","()",""],["for_site","SitePlugin","SitePlugin.html#method-c-for_site","(site)","<p>Return the plugin that can handle a given site.\n"],["get","SoundcloudPlugin","SoundcloudPlugin.html#method-i-get","(url)",""],["get","YoutubePlugin","YoutubePlugin.html#method-i-get","(url)",""],["inherited","SitePlugin","SitePlugin.html#method-c-inherited","(target)",""],["method_missing","SitePlugin","SitePlugin.html#method-i-method_missing","(method)","<p>Raise an error message if the missing method should have been implemented\nin the subclasse. This possible …\n"],["new","Options","Options.html#method-c-new","(file = \"#{ENV['HOME']}/.playbot/config\")",""],["new","PlayBot","PlayBot.html#method-c-new","(options = {})","<p>Start a new instance\n<p>Options:\n<p><code>:address</code>: irc server\n"],["new","SoundcloudPlugin","SoundcloudPlugin.html#method-c-new","(options)",""],["new","YoutubePlugin","YoutubePlugin.html#method-c-new","(options)",""],["read_all","Options","Options.html#method-i-read_all","()","<p>Read the options from commande line and configuration file. Command line\noverwrite configuration file. …\n"],["read_file","Options","Options.html#method-i-read_file","()","<p>Read the options from the configuration file.\n"],["repository","SitePlugin","SitePlugin.html#method-c-repository","()",""],["up","CreateMusics","CreateMusics.html#method-c-up","()",""],["up","CreateTags","CreateTags.html#method-c-up","()",""],["Gemfile","","Gemfile.html","","<p>source “rubygems.org†gem “rake†gem “net-yail†gem “rspec†gem …\n"],["Rakefile","","Rakefile.html","","<p>require ‘active_record’ require ‘logger’\n<p>require_relative ‘lib/options.rb’\n<p>task :default => :migrate …\n"]]}} \ No newline at end of file diff --git a/doc/table_of_contents.html b/doc/table_of_contents.html index 835d4d1c805007b70d4ef968a1d177266e484ced..0d5145a12edb6e9c9ce9696f24974ec54aaf236b 100644 --- a/doc/table_of_contents.html +++ b/doc/table_of_contents.html @@ -28,12 +28,24 @@ <li class="file"> <a href="Gemfile.html">Gemfile</a> </li> + <li class="file"> + <a href="Rakefile.html">Rakefile</a> + </li> </ul> <h2 id="classes">Classes/Modules</h2> <ul> <li class="class"> + <a href="CreateMusics.html">CreateMusics</a> + </li> + <li class="class"> + <a href="CreateTags.html">CreateTags</a> + </li> + <li class="class"> + <a href="Music.html">Music</a> + </li> + <li class="class"> <a href="Options.html">Options</a> </li> <li class="class"> @@ -44,6 +56,9 @@ </li> <li class="class"> <a href="SoundcloudPlugin.html">SoundcloudPlugin</a> + </li> + <li class="class"> + <a href="Tag.html">Tag</a> </li> <li class="class"> <a href="TestPlugin1.html">TestPlugin1</a> @@ -68,26 +83,34 @@ <li class="method"><a href="TestPlugin2.html#method-c-can_handle-3F">::can_handle? — TestPlugin2</a> + <li class="method"><a href="CreateMusics.html#method-c-down">::down — CreateMusics</a> + + <li class="method"><a href="CreateTags.html#method-c-down">::down — CreateTags</a> + <li class="method"><a href="SitePlugin.html#method-c-for_site">::for_site — SitePlugin</a> <li class="method"><a href="SitePlugin.html#method-c-inherited">::inherited — SitePlugin</a> <li class="method"><a href="SoundcloudPlugin.html#method-c-new">::new — SoundcloudPlugin</a> - <li class="method"><a href="Options.html#method-c-new">::new — Options</a> + <li class="method"><a href="PlayBot.html#method-c-new">::new — PlayBot</a> <li class="method"><a href="YoutubePlugin.html#method-c-new">::new — YoutubePlugin</a> - <li class="method"><a href="PlayBot.html#method-c-new">::new — PlayBot</a> + <li class="method"><a href="Options.html#method-c-new">::new — Options</a> <li class="method"><a href="SitePlugin.html#method-c-repository">::repository — SitePlugin</a> - <li class="method"><a href="PlayBot.html#method-i-add_custom_handlers">#add_custom_handlers — PlayBot</a> + <li class="method"><a href="CreateTags.html#method-c-up">::up — CreateTags</a> - <li class="method"><a href="YoutubePlugin.html#method-i-get">#get — YoutubePlugin</a> + <li class="method"><a href="CreateMusics.html#method-c-up">::up — CreateMusics</a> + + <li class="method"><a href="PlayBot.html#method-i-add_custom_handlers">#add_custom_handlers — PlayBot</a> <li class="method"><a href="SoundcloudPlugin.html#method-i-get">#get — SoundcloudPlugin</a> + <li class="method"><a href="YoutubePlugin.html#method-i-get">#get — YoutubePlugin</a> + <li class="method"><a href="SitePlugin.html#method-i-method_missing">#method_missing — SitePlugin</a> <li class="method"><a href="Options.html#method-i-read_all">#read_all — Options</a>