astrotrain 0.4.5 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.6
1
+ 0.5.0
@@ -1,12 +1,15 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{astrotrain}
5
- s.version = "0.4.5"
8
+ s.version = "0.5.0"
6
9
 
7
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
11
  s.authors = ["technoweenie"]
9
- s.date = %q{2009-10-30}
12
+ s.date = %q{2010-01-16}
10
13
  s.email = %q{technoweenie@gmail.com}
11
14
  s.extra_rdoc_files = [
12
15
  "LICENSE",
@@ -55,6 +58,7 @@ Gem::Specification.new do |s|
55
58
  "test/fixtures/gb2312_encoding.txt",
56
59
  "test/fixtures/gb2312_encoding_invalid.txt",
57
60
  "test/fixtures/html.txt",
61
+ "test/fixtures/html_multipart.txt",
58
62
  "test/fixtures/iso-8859-1.txt",
59
63
  "test/fixtures/mapped.txt",
60
64
  "test/fixtures/multipart.txt",
@@ -74,7 +78,7 @@ Gem::Specification.new do |s|
74
78
  s.homepage = %q{http://github.com/entp/astrotrain}
75
79
  s.rdoc_options = ["--charset=UTF-8"]
76
80
  s.require_paths = ["lib"]
77
- s.rubygems_version = %q{1.3.4}
81
+ s.rubygems_version = %q{1.3.5}
78
82
  s.summary = %q{email => http post}
79
83
  s.test_files = [
80
84
  "test/api_test.rb",
@@ -128,3 +132,4 @@ Gem::Specification.new do |s|
128
132
  s.add_dependency(%q<xmppr4-simple>, [">= 0"])
129
133
  end
130
134
  end
135
+
@@ -134,10 +134,10 @@ module Astrotrain
134
134
  order = self.class.recipient_header_order if order.blank?
135
135
  recipients = []
136
136
 
137
- parse_email_headers recipients_from_body, recipients
138
137
  order.each do |key|
139
138
  parse_email_headers(send("recipients_from_#{key}"), recipients)
140
139
  end
140
+ parse_email_headers recipients_from_body, recipients
141
141
 
142
142
  recipients.flatten!
143
143
  recipients.uniq!
@@ -0,0 +1,16 @@
1
+ Delivered-To:
2
+ From: abc@astrotrain.com
3
+ To: xyz@astrotrain.com
4
+ Message-ID: <11644553.1741252281981737.JavaMail.root@astrotrain>
5
+ Subject: ABC DEF
6
+ MIME-Version: 1.0
7
+ Content-Type: multipart/mixed;
8
+ boundary="----=_Part_1695_189596019.1252281981305"
9
+ X-Mailer: Railo Mail
10
+
11
+ ------=_Part_1695_189596019.1252281981305
12
+ Content-Type: text/html; charset=UTF-8
13
+ Content-Transfer-Encoding: quoted-printable
14
+
15
+ <p>ABC</p>
16
+ ------=_Part_1695_189596019.1252281981305--
@@ -382,7 +382,7 @@ class Astrotrain::MessageTest < Astrotrain::TestCase
382
382
  end
383
383
 
384
384
  it "recognizes in-body emails and To: headers as recipients" do
385
- assert_equal %w(processor+foobar@astrotrain.com processor+blah@astrotrain.com processor@astrotrain.com other@example.com),
385
+ assert_equal %w(processor@astrotrain.com other@example.com processor+foobar@astrotrain.com processor+blah@astrotrain.com),
386
386
  @message.recipients
387
387
  end
388
388
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astrotrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - technoweenie
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-30 00:00:00 -07:00
12
+ date: 2010-01-16 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -174,6 +174,7 @@ files:
174
174
  - test/fixtures/gb2312_encoding.txt
175
175
  - test/fixtures/gb2312_encoding_invalid.txt
176
176
  - test/fixtures/html.txt
177
+ - test/fixtures/html_multipart.txt
177
178
  - test/fixtures/iso-8859-1.txt
178
179
  - test/fixtures/mapped.txt
179
180
  - test/fixtures/multipart.txt
@@ -213,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
214
  requirements: []
214
215
 
215
216
  rubyforge_project:
216
- rubygems_version: 1.3.4
217
+ rubygems_version: 1.3.5
217
218
  signing_key:
218
219
  specification_version: 3
219
220
  summary: email => http post