more require cleanup

This commit is contained in:
Chris Anderson 2008-08-03 11:35:31 -07:00
parent 9aeb34912e
commit b402de77a1
3 changed files with 0 additions and 13 deletions

View file

@ -1,6 +1,5 @@
require 'cgi'
require "base64"
require File.dirname(__FILE__) + '/couchrest'
class CouchRest
class Database

View file

@ -1,6 +1,5 @@
require 'digest/md5'
class CouchRest
class FileManager
attr_reader :db

View file

@ -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|