more require cleanup
This commit is contained in:
parent
9aeb34912e
commit
b402de77a1
|
@ -1,6 +1,5 @@
|
|||
require 'cgi'
|
||||
require "base64"
|
||||
require File.dirname(__FILE__) + '/couchrest'
|
||||
|
||||
class CouchRest
|
||||
class Database
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require 'digest/md5'
|
||||
|
||||
|
||||
class CouchRest
|
||||
class FileManager
|
||||
attr_reader :db
|
||||
|
|
11
lib/pager.rb
11
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|
|
||||
|
|
Loading…
Reference in a new issue