mail-sympa 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES +4 -0
  2. data/Rakefile +5 -0
  3. data/lib/mail/sympa.rb +5 -5
  4. data/mail-sympa.gemspec +2 -1
  5. metadata +28 -10
data/CHANGES CHANGED
@@ -1,2 +1,6 @@
1
+ = 0.1.1 - 17-Jan-2011
2
+ * Fixed two parser warnings caused by missing commas in raise clauses.
3
+ * Added a clean task and a default task to the Rakefile.
4
+
1
5
  = 0.1.0 - 13-Apr-2010
2
6
  * Initial release
data/Rakefile CHANGED
@@ -1,7 +1,10 @@
1
1
  require 'rake'
2
+ require 'rake/clean'
2
3
  require 'rake/testtask'
3
4
  include Config
4
5
 
6
+ CLEAN.include("**/*.gem", "**/*.rbc")
7
+
5
8
  namespace 'gem' do
6
9
  desc 'Remove any existing gem file'
7
10
  task :clean do
@@ -25,3 +28,5 @@ Rake::TestTask.new('test') do |t|
25
28
  t.warning = true
26
29
  t.verbose = true
27
30
  end
31
+
32
+ task :default => :test
@@ -37,7 +37,7 @@ module Mail
37
37
  @cookie = nil
38
38
 
39
39
  @soap.add_method('login', 'email', 'password')
40
-
40
+
41
41
  @soap.add_method(
42
42
  'authenticateAndRun',
43
43
  'email',
@@ -64,7 +64,7 @@ module Mail
64
64
  # sympa = Mail::Sympa.new(url)
65
65
  # sympa.login(email, password)
66
66
  #
67
- def login(email, password)
67
+ def login(email, password)
68
68
  @email = email
69
69
  @password = password
70
70
  @cookie = @soap.login(email, password)
@@ -85,7 +85,7 @@ module Mail
85
85
  # sympa.lists.each{ |list| puts list }
86
86
  #
87
87
  def lists(topic='', sub_topic='')
88
- raise Error 'must login first' unless @cookie
88
+ raise Error, 'must login first' unless @cookie
89
89
  @soap.authenticateAndRun(@email, @cookie, 'lists', [topic, sub_topic])
90
90
  end
91
91
 
@@ -103,7 +103,7 @@ module Mail
103
103
  # }
104
104
  #
105
105
  def complex_lists(topic='', sub_topic='')
106
- raise Error 'must login first' unless @cookie
106
+ raise Error, 'must login first' unless @cookie
107
107
  args = [topic, sub_topic]
108
108
  @soap.authenticateAndRun(@email, @cookie, 'complexLists', args)
109
109
  end
@@ -149,7 +149,7 @@ module Mail
149
149
  #
150
150
  # The +app_name+ is whatever is set in your trusted_applications.conf file.
151
151
  # The +app_password+ for that app must also be provided.
152
- #
152
+ #
153
153
  # Example:
154
154
  #
155
155
  # sympa = Mail::Sympa.new(url)
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'mail-sympa'
5
- gem.version = '0.1.0'
5
+ gem.version = '0.1.1'
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'
@@ -13,6 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.homepage = 'http://github.com/djberg96/mail-sympa'
14
14
 
15
15
  gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
16
+ gem.rubyforge_project = 'N/A'
16
17
 
17
18
  gem.add_dependency('soap4r', '>= 1.5.8')
18
19
 
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail-sympa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ hash: 25
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 1
10
+ version: 0.1.1
5
11
  platform: ruby
6
12
  authors:
7
13
  - Daniel J. Berger
@@ -11,19 +17,25 @@ autorequire:
11
17
  bindir: bin
12
18
  cert_chain: []
13
19
 
14
- date: 2010-04-13 00:00:00 -06:00
20
+ date: 2011-01-17 00:00:00 -07:00
15
21
  default_executable:
16
22
  dependencies:
17
23
  - !ruby/object:Gem::Dependency
18
24
  name: soap4r
19
- type: :runtime
20
- version_requirement:
21
- version_requirements: !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
22
28
  requirements:
23
29
  - - ">="
24
30
  - !ruby/object:Gem::Version
31
+ hash: 19
32
+ segments:
33
+ - 1
34
+ - 5
35
+ - 8
25
36
  version: 1.5.8
26
- version:
37
+ type: :runtime
38
+ version_requirements: *id001
27
39
  description: Ruby interface for the Sympa mailing list server
28
40
  email: djberg96@gmail.com
29
41
  executables: []
@@ -52,21 +64,27 @@ rdoc_options: []
52
64
  require_paths:
53
65
  - lib
54
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
+ none: false
55
68
  requirements:
56
69
  - - ">="
57
70
  - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
58
74
  version: "0"
59
- version:
60
75
  required_rubygems_version: !ruby/object:Gem::Requirement
76
+ none: false
61
77
  requirements:
62
78
  - - ">="
63
79
  - !ruby/object:Gem::Version
80
+ hash: 3
81
+ segments:
82
+ - 0
64
83
  version: "0"
65
- version:
66
84
  requirements: []
67
85
 
68
- rubyforge_project:
69
- rubygems_version: 1.3.5
86
+ rubyforge_project: N/A
87
+ rubygems_version: 1.3.7
70
88
  signing_key:
71
89
  specification_version: 3
72
90
  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.