.pryrc
author Mahlon E. Smith <mahlon@martini.nu>
Thu, 03 Oct 2019 11:44:44 -0700
changeset 28 99fdbf4a5f37
parent 15 a38e6916504c
permissions -rw-r--r--
Be explicit with sticky removal, so two simultaneous processes don't create a race where sticky is left enabled.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     1
#!/usr/bin/ruby
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     2
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     3
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     4
$LOAD_PATH.unshift( 'lib' )
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     5
15
a38e6916504c Everything is workin!
Mahlon E. Smith <mahlon@laika.com>
parents: 12
diff changeset
     6
require 'pathname'
a38e6916504c Everything is workin!
Mahlon E. Smith <mahlon@laika.com>
parents: 12
diff changeset
     7
listpath = Pathname.new( __FILE__ ).dirname + 'spec' + 'data'
a38e6916504c Everything is workin!
Mahlon E. Smith <mahlon@laika.com>
parents: 12
diff changeset
     8
12
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     9
begin
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    10
	require 'ezmlm'
15
a38e6916504c Everything is workin!
Mahlon E. Smith <mahlon@laika.com>
parents: 12
diff changeset
    11
	list = Ezmlm::List.new( listpath + 'testlist' )
12
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    12
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    13
rescue Exception => e
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    14
	$stderr.puts "Ack! Ezmlm libraries failed to load: #{e.message}\n\t" +
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    15
		e.backtrace.join( "\n\t" )
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    16
end
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    17
3cc813140c80 First round of modernizing after a long absence.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    18