lib/ezmlm.rb
changeset 25 81cc7d47f68f
parent 24 f8873b391f3d
child 28 99fdbf4a5f37
equal deleted inserted replaced
24:f8873b391f3d 25:81cc7d47f68f
    12 #
    12 #
    13 module Ezmlm
    13 module Ezmlm
    14 	# $Id$
    14 	# $Id$
    15 
    15 
    16 	# Package version
    16 	# Package version
    17 	VERSION = '1.1.0'
    17 	VERSION = '1.1.1'
    18 
    18 
    19 	# Suck in the components.
    19 	# Suck in the components.
    20 	#
    20 	#
    21 	require 'ezmlm/hash'
    21 	require 'ezmlm/hash'
    22 	require 'ezmlm/list'
    22 	require 'ezmlm/list'
    33 	### the specified +listsdir+ and return Pathname objects for each.
    33 	### the specified +listsdir+ and return Pathname objects for each.
    34 	###
    34 	###
    35 	def find_directories( listsdir )
    35 	def find_directories( listsdir )
    36 		listsdir = Pathname.new( listsdir )
    36 		listsdir = Pathname.new( listsdir )
    37 		return Pathname.glob( listsdir + '*' ).sort.select do |entry|
    37 		return Pathname.glob( listsdir + '*' ).sort.select do |entry|
    38 			entry.directory? && ( entry + 'mailinglist' ).exist?
    38 			entry.directory? && ( entry + 'ezmlmrc' ).exist?
    39 		end
    39 		end
    40 	end
    40 	end
    41 
    41 
    42 
    42 
    43 	### Iterate over each directory that looks like an Ezmlm list in the
    43 	### Iterate over each directory that looks like an Ezmlm list in the