From b402de77a1418273dbd45d9f90b658d240919ace Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Sun, 3 Aug 2008 11:35:31 -0700 Subject: [PATCH] more require cleanup --- lib/database.rb | 1 - lib/file_manager.rb | 1 - lib/pager.rb | 11 ----------- 3 files changed, 13 deletions(-) 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|