lib/buzzsprout.rb in buzzsprout-0.0.4 vs lib/buzzsprout.rb in buzzsprout-0.0.6

- old
+ new

@@ -1,23 +1,17 @@ -require 'rubygems' -require 'time' +# require 'time' -#require 'active_support' - require 'hashie' require 'httparty' - directory = File.expand_path(File.dirname(__FILE__)) Hash.send :include, Hashie::HashExtensions module Buzzsprout - - VERSION = '0.0.4'.freeze - + # List all the episodes for a podcast # # @param [Fixnum] podcast_id The ID for the podcast # @param [Array<String>] tags An array of tags to filter episodes # @return [Array<Episode>] A list of episodes matching the query @@ -31,18 +25,19 @@ # @param [Fixnum] episode_id The ID for the episode # @return [Episode] A list of episodes matching the query def self.episode(podcast_id, episode_id) Client.episode(podcast_id, episode_id) end - + # Retrieve episode details # # @param [Fixnum] url URL of the episode # @return [Episode] A list of episodes matching the query def self.episode_from_url(url) Client.episode_from_url(url) end - + end +require File.join(directory, 'buzzsprout', 'version') require File.join(directory, 'buzzsprout', 'episode') -require File.join(directory, 'buzzsprout', 'client') \ No newline at end of file +require File.join(directory, 'buzzsprout', 'client')