ruby-qmail 0.1.0 → 0.1.1
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/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/queue.rb +3 -3
- data/ruby-qmail.gemspec +59 -0
- metadata +26 -11
data/Rakefile
CHANGED
@@ -5,8 +5,8 @@ begin
|
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "ruby-qmail"
|
8
|
-
gem.summary = %Q{Ruby
|
9
|
-
gem.description = %Q{
|
8
|
+
gem.summary = %Q{A Ruby Qmail library to insert email directly into Qmail}
|
9
|
+
gem.description = %Q{A Ruby Qmail library to insert email directly into Qmail}
|
10
10
|
gem.email = "allen.fair@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/afair/ruby-qmail"
|
12
12
|
gem.authors = ["Allen Fair"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/queue.rb
CHANGED
@@ -106,9 +106,9 @@ module RubyQmail
|
|
106
106
|
|
107
107
|
@response = socket.recv(1000) # "23:Kok 1182362995 qp 21894," (its a netstring)
|
108
108
|
@success = case @response.match(/^\d+:([KZD])(.+),$/)[1]
|
109
|
-
when 'K'
|
110
|
-
when 'Z'
|
111
|
-
when 'D'
|
109
|
+
when 'K' then true # success
|
110
|
+
when 'Z' then nil # deferral
|
111
|
+
when 'D' then false # failure
|
112
112
|
else false
|
113
113
|
end
|
114
114
|
logmsg = "RubyQmail QMQP [#{ip}:#{@options[:qmqp_port]}]: #{@response} return:#{@success}"
|
data/ruby-qmail.gemspec
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{ruby-qmail}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Allen Fair"]
|
12
|
+
s.date = %q{2010-07-16}
|
13
|
+
s.description = %q{A Ruby Qmail library to insert email directly into Qmail}
|
14
|
+
s.email = %q{allen.fair@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/bounce.rb",
|
27
|
+
"lib/config.rb",
|
28
|
+
"lib/netstring.rb",
|
29
|
+
"lib/queue.rb",
|
30
|
+
"lib/ruby-qmail.rb",
|
31
|
+
"ruby-qmail.gemspec",
|
32
|
+
"spec/ruby-qmail_spec.rb",
|
33
|
+
"spec/spec.opts",
|
34
|
+
"spec/spec_helper.rb"
|
35
|
+
]
|
36
|
+
s.homepage = %q{http://github.com/afair/ruby-qmail}
|
37
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
s.rubygems_version = %q{1.3.7}
|
40
|
+
s.summary = %q{A Ruby Qmail library to insert email directly into Qmail}
|
41
|
+
s.test_files = [
|
42
|
+
"spec/ruby-qmail_spec.rb",
|
43
|
+
"spec/spec_helper.rb"
|
44
|
+
]
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
|
+
s.specification_version = 3
|
49
|
+
|
50
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
52
|
+
else
|
53
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
54
|
+
end
|
55
|
+
else
|
56
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-qmail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Allen Fair
|
@@ -9,20 +14,25 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-07-16 00:00:00 -04:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: rspec
|
17
|
-
|
18
|
-
|
19
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
20
25
|
requirements:
|
21
26
|
- - ">="
|
22
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 2
|
31
|
+
- 9
|
23
32
|
version: 1.2.9
|
24
|
-
|
25
|
-
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
description: A Ruby Qmail library to insert email directly into Qmail
|
26
36
|
email: allen.fair@gmail.com
|
27
37
|
executables: []
|
28
38
|
|
@@ -43,6 +53,7 @@ files:
|
|
43
53
|
- lib/netstring.rb
|
44
54
|
- lib/queue.rb
|
45
55
|
- lib/ruby-qmail.rb
|
56
|
+
- ruby-qmail.gemspec
|
46
57
|
- spec/ruby-qmail_spec.rb
|
47
58
|
- spec/spec.opts
|
48
59
|
- spec/spec_helper.rb
|
@@ -56,24 +67,28 @@ rdoc_options:
|
|
56
67
|
require_paths:
|
57
68
|
- lib
|
58
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
59
71
|
requirements:
|
60
72
|
- - ">="
|
61
73
|
- !ruby/object:Gem::Version
|
74
|
+
segments:
|
75
|
+
- 0
|
62
76
|
version: "0"
|
63
|
-
version:
|
64
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
65
79
|
requirements:
|
66
80
|
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
82
|
+
segments:
|
83
|
+
- 0
|
68
84
|
version: "0"
|
69
|
-
version:
|
70
85
|
requirements: []
|
71
86
|
|
72
87
|
rubyforge_project:
|
73
|
-
rubygems_version: 1.3.
|
88
|
+
rubygems_version: 1.3.7
|
74
89
|
signing_key:
|
75
90
|
specification_version: 3
|
76
|
-
summary: Ruby
|
91
|
+
summary: A Ruby Qmail library to insert email directly into Qmail
|
77
92
|
test_files:
|
78
93
|
- spec/ruby-qmail_spec.rb
|
79
94
|
- spec/spec_helper.rb
|