mail-sympa 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/README +3 -0
- data/lib/mail/sympa.rb +10 -1
- data/mail-sympa.gemspec +1 -1
- data/test/test_mail_sympa.rb +15 -1
- metadata +5 -5
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
= 1.1.0 - 19-Jul-2011
|
2
|
+
* Added the authenticate_remote_app_and_run method to run in trusted context
|
3
|
+
and support for Ruby 1.9+. Thanks go to Blair Christensen for patches.
|
4
|
+
|
1
5
|
= 1.0.0 - 16-Jun-2011
|
2
6
|
* Added the create_list and close_list methods and corresponding tests. Thanks
|
3
7
|
go to Blair Christensen for both.
|
data/README
CHANGED
data/lib/mail/sympa.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
gem 'soap4r-ruby1.9' if RUBY_VERSION > '1.9'
|
1
2
|
require 'soap/rpc/driver'
|
2
3
|
|
3
4
|
# The Mail module serves as a namespace only.
|
@@ -8,7 +9,7 @@ module Mail
|
|
8
9
|
class Error < StandardError; end
|
9
10
|
|
10
11
|
# The version of the mail-sympa library.
|
11
|
-
VERSION = '1.
|
12
|
+
VERSION = '1.1.0'
|
12
13
|
|
13
14
|
# The session cookie returned by the login method.
|
14
15
|
attr_reader :cookie
|
@@ -247,5 +248,13 @@ module Mail
|
|
247
248
|
end
|
248
249
|
|
249
250
|
alias closeList close_list
|
251
|
+
|
252
|
+
# Run command in trusted context.
|
253
|
+
def authenticate_remote_app_and_run(app_name, app_password, variables, service, parameters)
|
254
|
+
@soap.authenticateRemoteAppAndRun( app_name, app_password, variables, service, parameters )
|
255
|
+
end
|
256
|
+
|
257
|
+
alias authenticateRemoteAppAndRun authenticate_remote_app_and_run
|
258
|
+
|
250
259
|
end
|
251
260
|
end
|
data/mail-sympa.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = 'mail-sympa'
|
5
|
-
gem.version = '1.
|
5
|
+
gem.version = '1.1.0'
|
6
6
|
gem.authors = ['Daniel J. Berger', 'David Salisbury', 'Mark Sallee']
|
7
7
|
gem.license = 'Artistic 2.0'
|
8
8
|
gem.description = 'Ruby interface for the Sympa mailing list server'
|
data/test/test_mail_sympa.rb
CHANGED
@@ -39,7 +39,7 @@ class MailSympaTest < Test::Unit::TestCase
|
|
39
39
|
end
|
40
40
|
|
41
41
|
test "version constant is expected value" do
|
42
|
-
assert_equal('1.
|
42
|
+
assert_equal('1.1.0', Mail::Sympa::VERSION)
|
43
43
|
end
|
44
44
|
|
45
45
|
test "endpoint method basic functionality" do
|
@@ -307,6 +307,20 @@ class MailSympaTest < Test::Unit::TestCase
|
|
307
307
|
assert_raise(ArgumentError){ @mail.close_list("A", "B")}
|
308
308
|
end
|
309
309
|
|
310
|
+
test "authenticate_remote_app_and_run basic functionality" do
|
311
|
+
assert_respond_to(@mail, :authenticate_remote_app_and_run)
|
312
|
+
assert_respond_to(@mail, :authenticateRemoteAppAndRun)
|
313
|
+
end
|
314
|
+
|
315
|
+
test "authenticate_remote_app_and_run requires five arguments" do
|
316
|
+
assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run }
|
317
|
+
assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A") }
|
318
|
+
assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A", "B") }
|
319
|
+
assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A", "B", "C") }
|
320
|
+
assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A", "B", "C", "D") }
|
321
|
+
assert_raise(ArgumentError){ @mail.authenticate_remote_app_and_run("A", "B", "C", "D", "E", "F") }
|
322
|
+
end
|
323
|
+
|
310
324
|
def teardown
|
311
325
|
@mail = nil
|
312
326
|
@user = nil
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail-sympa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel J. Berger
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-
|
20
|
+
date: 2011-07-19 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: soap4r
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
requirements: []
|
83
83
|
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 1.8.
|
85
|
+
rubygems_version: 1.8.3
|
86
86
|
signing_key:
|
87
87
|
specification_version: 3
|
88
88
|
summary: The mail-sympa library provides a Ruby interface to the Sympa mailing list server software. This is a convenient and pretty wrapper for the various SOAP functions that Sympa server publishes. See http://www.sympa.org for more information.
|