ezmlm 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ezmlm.rb +3 -15
- data/lib/ezmlm/list.rb +6 -13
- data/lib/ezmlm/list/author.rb +4 -12
- data/lib/ezmlm/list/message.rb +4 -12
- data/lib/ezmlm/list/thread.rb +4 -12
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78e12cc82acb6040783c230b8f4777c933961a2d
|
4
|
+
data.tar.gz: 5b60f5ef80fdd35da55570814ebcb2fa6ceccb05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4d4450a5d16017bc402cbd9ae70b93165c164bcd63c5c1924d5357c51124a1cef90b73caccf7c278af3339142f69feaa253623999164ff495129da4ccd11bcd
|
7
|
+
data.tar.gz: 5af8684aed468b3e91b9cce5a36a162d80e43de4d9ac53eaaf24667affaf98cf5bd1c89fd26128e3095133e3c3bc34dd56b2969040e25c4362521a6a412edb40
|
data/lib/ezmlm.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# vim: set nosta noet ts=4 sw=4:
|
2
2
|
|
3
|
+
require 'pathname'
|
3
4
|
|
4
5
|
# A Ruby interface to the ezmlm-idx mailing list system.
|
5
6
|
#
|
@@ -9,24 +10,11 @@
|
|
9
10
|
# puts "\"%s\" <%s>" % [ list.name, list.address ]
|
10
11
|
# end
|
11
12
|
#
|
12
|
-
#
|
13
|
-
# == Version
|
14
|
-
#
|
15
|
-
# $Id: ezmlm.rb,v 9aaac749fd9f 2017/05/16 20:58:52 mahlon $
|
16
|
-
#
|
17
|
-
#---
|
18
|
-
#
|
19
|
-
# Please see the file LICENSE in the base directory for licensing details.
|
20
|
-
#
|
21
|
-
|
22
|
-
require 'pathname'
|
23
|
-
|
24
|
-
|
25
|
-
### Toplevel namespace module
|
26
13
|
module Ezmlm
|
14
|
+
# $Id: ezmlm.rb,v d1b9dd767e3a 2017/05/16 23:03:03 mahlon $
|
27
15
|
|
28
16
|
# Package version
|
29
|
-
VERSION = '1.0.
|
17
|
+
VERSION = '1.0.2'
|
30
18
|
|
31
19
|
# Suck in the components.
|
32
20
|
#
|
data/lib/ezmlm/list.rb
CHANGED
@@ -2,26 +2,19 @@
|
|
2
2
|
# vim: set nosta noet ts=4 sw=4:
|
3
3
|
|
4
4
|
|
5
|
-
# A Ruby interface to a single Ezmlm-idx mailing list directory.
|
6
|
-
#
|
7
|
-
# list = Ezmlm::List.new( '/path/to/listdir' )
|
8
|
-
#
|
9
|
-
#
|
10
|
-
# == Version
|
11
|
-
#
|
12
|
-
# $Id: list.rb,v 23c7f5c8ee39 2017/05/16 20:58:34 mahlon $
|
13
|
-
#
|
14
|
-
#---
|
15
|
-
|
16
5
|
require 'pathname'
|
17
6
|
require 'time'
|
18
7
|
require 'etc'
|
19
8
|
require 'ezmlm' unless defined?( Ezmlm )
|
20
9
|
|
21
10
|
|
22
|
-
|
23
|
-
|
11
|
+
# A Ruby interface to a single Ezmlm-idx mailing list directory.
|
12
|
+
#
|
13
|
+
# list = Ezmlm::List.new( '/path/to/listdir' )
|
14
|
+
#
|
15
|
+
#---
|
24
16
|
class Ezmlm::List
|
17
|
+
# $Id: list.rb,v 9d59d30685cb 2017/05/16 22:52:05 mahlon $
|
25
18
|
|
26
19
|
# Valid subdirectories/sections for subscriptions.
|
27
20
|
SUBSCRIPTION_DIRS = %w[ deny mod digest allow ]
|
data/lib/ezmlm/list/author.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
# vim: set nosta noet ts=4 sw=4:
|
3
3
|
|
4
|
+
require 'pathname'
|
5
|
+
require 'ezmlm' unless defined?( Ezmlm )
|
6
|
+
|
4
7
|
|
5
8
|
# A collection of messages authored from a unique user.
|
6
9
|
#
|
@@ -11,20 +14,9 @@
|
|
11
14
|
# author.name #=> "Help - navigate on interface?"
|
12
15
|
# author.first.date.to_s #=> "2017-05-07T14:55:05-07:00"
|
13
16
|
#
|
14
|
-
#
|
15
|
-
# == Version
|
16
|
-
#
|
17
|
-
# $Id: author.rb,v 23c7f5c8ee39 2017/05/16 20:58:34 mahlon $
|
18
|
-
#
|
19
17
|
#---
|
20
|
-
|
21
|
-
require 'pathname'
|
22
|
-
require 'ezmlm' unless defined?( Ezmlm )
|
23
|
-
|
24
|
-
|
25
|
-
### A collection of messages for a specific author.
|
26
|
-
###
|
27
18
|
class Ezmlm::List::Author
|
19
|
+
# $Id: author.rb,v 9d59d30685cb 2017/05/16 22:52:05 mahlon $
|
28
20
|
include Enumerable
|
29
21
|
|
30
22
|
### Instantiate a new list of messages given
|
data/lib/ezmlm/list/message.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
# vim: set nosta noet ts=4 sw=4:
|
3
3
|
|
4
|
+
require 'pathname'
|
5
|
+
require 'ezmlm' unless defined?( Ezmlm )
|
6
|
+
require 'mail'
|
4
7
|
|
5
8
|
# An individual list message.
|
6
9
|
#
|
@@ -12,20 +15,9 @@
|
|
12
15
|
# This class passes all heavy lifting to the Mail::Message library.
|
13
16
|
# Please see it for specifics on usage.
|
14
17
|
#
|
15
|
-
# == Version
|
16
|
-
#
|
17
|
-
# $Id: message.rb,v 23c7f5c8ee39 2017/05/16 20:58:34 mahlon $
|
18
|
-
#
|
19
18
|
#---
|
20
|
-
|
21
|
-
require 'pathname'
|
22
|
-
require 'ezmlm' unless defined?( Ezmlm )
|
23
|
-
require 'mail'
|
24
|
-
|
25
|
-
|
26
|
-
### A Ruby interface to an individual list message.
|
27
|
-
###
|
28
19
|
class Ezmlm::List::Message
|
20
|
+
# $Id: message.rb,v 9d59d30685cb 2017/05/16 22:52:05 mahlon $
|
29
21
|
|
30
22
|
### Instantiate a new messag from a +list+ and a +message_number+.
|
31
23
|
###
|
data/lib/ezmlm/list/thread.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
# vim: set nosta noet ts=4 sw=4:
|
3
3
|
|
4
|
+
require 'pathname'
|
5
|
+
require 'ezmlm' unless defined?( Ezmlm )
|
6
|
+
|
4
7
|
|
5
8
|
# A collection of messages for a specific archive thread.
|
6
9
|
#
|
@@ -8,20 +11,9 @@
|
|
8
11
|
# thread.subject #=> "Help - navigate on interface?"
|
9
12
|
# thread.first.date.to_s #=> "2017-05-07T14:55:05-07:00"
|
10
13
|
#
|
11
|
-
#
|
12
|
-
# == Version
|
13
|
-
#
|
14
|
-
# $Id: thread.rb,v 23c7f5c8ee39 2017/05/16 20:58:34 mahlon $
|
15
|
-
#
|
16
14
|
#---
|
17
|
-
|
18
|
-
require 'pathname'
|
19
|
-
require 'ezmlm' unless defined?( Ezmlm )
|
20
|
-
|
21
|
-
|
22
|
-
### A collection of messages for a specific archive thread.
|
23
|
-
###
|
24
15
|
class Ezmlm::List::Thread
|
16
|
+
# $Id: thread.rb,v 9d59d30685cb 2017/05/16 22:52:05 mahlon $
|
25
17
|
include Enumerable
|
26
18
|
|
27
19
|
### Instantiate a new thread of messages given
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezmlm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Mahlon E. Smith
|
8
|
-
- Michael Granger
|
9
|
-
- Jeremiah Jordan
|
7
|
+
- Mahlon E. Smith
|
8
|
+
- Michael Granger
|
9
|
+
- Jeremiah Jordan
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
@@ -59,7 +59,7 @@ files:
|
|
59
59
|
- lib/ezmlm/list/author.rb
|
60
60
|
- lib/ezmlm/list/message.rb
|
61
61
|
- lib/ezmlm/list/thread.rb
|
62
|
-
homepage: https://bitbucket.org/mahlon/
|
62
|
+
homepage: https://bitbucket.org/mahlon/ruby-ezmlm
|
63
63
|
licenses:
|
64
64
|
- BSD-3-Clause
|
65
65
|
metadata: {}
|