mailmanager 1.0.8 → 1.0.9

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.
data/README.rdoc CHANGED
@@ -1,7 +1,8 @@
1
1
  = MailManager
2
2
 
3
3
  MailManager is a Ruby wrapper for the GNU Mailman mailing list manager. It exposes
4
- some administrative functions to Ruby. See the API docs for details.
4
+ some administrative functions to Ruby. See the API docs[http://rdoc.info/github/dnclabs/mailmanager/master/frames]
5
+ for details.
5
6
  It is licensed under the New BSD License (see the LICENSE file for details).
6
7
 
7
8
  MailManager has been tested with Mailman 2.1.14. It has NOT been tested with any
@@ -97,6 +97,12 @@ module MailManager
97
97
  command(cmd, params)
98
98
  end
99
99
 
100
+ def web_page_url(list)
101
+ cmd = :withlist
102
+ out = command(cmd, :name => list.name, :wlcmd => 'web_page_url')
103
+ parse_json_output(out)
104
+ end
105
+
100
106
  def command(cmd, opts = {})
101
107
  mailman_cmd = "#{mailmanager.root}/bin/#{cmd.to_s} "
102
108
  # delete opts as we handle them explicitly
@@ -109,6 +109,14 @@ EOF
109
109
  lib.inject(self, inject_message)
110
110
  end
111
111
 
112
+ # Returns the info URL for the list
113
+ def info_url
114
+ result = lib.web_page_url(self)
115
+ root = result['result']
116
+ root += "/" unless root[-1,1] == '/'
117
+ "#{root}listinfo/#{name}"
118
+ end
119
+
112
120
  private
113
121
 
114
122
  def add_member_using(method, email, name)
@@ -1,3 +1,3 @@
1
1
  module MailManager
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.9'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 8
9
- version: 1.0.8
8
+ - 9
9
+ version: 1.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wes Morgan
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-19 00:00:00 -05:00
17
+ date: 2011-01-21 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency