diff --git a/lib/database.rb b/lib/database.rb index 2525309..6fada0c 100644 --- a/lib/database.rb +++ b/lib/database.rb @@ -1,6 +1,5 @@ require 'cgi' require "base64" -require File.dirname(__FILE__) + '/couchrest' class CouchRest class Database diff --git a/lib/file_manager.rb b/lib/file_manager.rb index 54d0ad5..eda1f0c 100644 --- a/lib/file_manager.rb +++ b/lib/file_manager.rb @@ -1,6 +1,5 @@ require 'digest/md5' - class CouchRest class FileManager attr_reader :db diff --git a/lib/pager.rb b/lib/pager.rb index 7c6a90d..84147dc 100644 --- a/lib/pager.rb +++ b/lib/pager.rb @@ -1,14 +1,3 @@ -# paginate though 'gcharts/mp3-trk-dom-map' view and save - -# get 1000 records -# truncate so that the key of the last record is not included in the page -# that key will be the first of the next page -# (if the last key equals the first key, up the page size) -# group the results by key -# yield the group - -require File.dirname(__FILE__) + '/couchrest' - module Enumerable def group_by inject({}) do |grouped, element|