imap-feeder 0.2.1 → 0.2.2

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.
@@ -0,0 +1,2 @@
1
+ ��D�%Pj�>T���6ۙ�q�GC~�+��9���fk 9�c�mȳ,�������9�U��׻Ĭ1!�S�7oFh'�4� �ߛ=0�Aag�J��'
2
+ O³����i����V ���W'�m]�����<#7_��5����٢��u����3�5�<���r����b����jO�W[�2��&^�,����7o4�1h� �n��Q-×�1"* ��Ava��D)O�UD�ڻ3�S����(a�њ
@@ -1,3 +1,7 @@
1
+ == 0.2.2 2008-11-23
2
+
3
+ * Make sure "From" always contains an email address.
4
+
1
5
  == 0.2.1 2008-07-8
2
6
 
3
7
  * Workaround for feeds containing google-adword links, just filter them. This
@@ -21,7 +21,11 @@ class Message
21
21
  end
22
22
 
23
23
  def from
24
- @from ||= (dec(@params[:from]) || "Unknown <spam@example.org>")
24
+ from = dec(@params[:from]) || "Unknown <spam@example.org>"
25
+ unless from =~ /@/
26
+ from << " <spam@example.org>"
27
+ end
28
+ @from ||= from
25
29
  end
26
30
 
27
31
  def body
@@ -2,7 +2,7 @@ class ImapFeeder #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -58,8 +58,8 @@ class TestFeedReader < Test::Unit::TestCase
58
58
  def test_get_authors
59
59
  messages = FeedReader.new(RSS20_WITH_AUTHORS).get_new []
60
60
  assert_equal(2, messages.size)
61
- assert_equal("MaxMuster", messages.first.from)
62
- assert_equal("MirkoStocker", messages.last.from)
61
+ assert_equal("MaxMuster <spam@example.org>", messages.first.from)
62
+ assert_equal("MirkoStocker <spam@example.org>", messages.last.from)
63
63
  end
64
64
 
65
65
  def test_no_body
@@ -33,7 +33,7 @@ class MessageTest < Test::Unit::TestCase
33
33
 
34
34
  def test_creation_name_with_url
35
35
  m = Message.new(:from => "Mirko Stocker", :url => "http://www.url.ch")
36
- assert_equal("Mirko Stocker", m.from)
36
+ assert_equal("Mirko Stocker <spam@example.org>", m.from)
37
37
  end
38
38
 
39
39
  def test_format_with_plus
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imap-feeder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mirko Stocker
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDJDCCAgygAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQDDAJtZTEV
14
+ MBMGCgmSJomT8ixkARkWBW1pc3RvMRIwEAYKCZImiZPyLGQBGRYCY2gwHhcNMDgw
15
+ NjA5MjEwNDI2WhcNMDkwNjA5MjEwNDI2WjA4MQswCQYDVQQDDAJtZTEVMBMGCgmS
16
+ JomT8ixkARkWBW1pc3RvMRIwEAYKCZImiZPyLGQBGRYCY2gwggEiMA0GCSqGSIb3
17
+ DQEBAQUAA4IBDwAwggEKAoIBAQDY4Rq5KS6Dmcz9TQmOCuJgPRv1npHVJ5mRsKlL
18
+ qwKbFRpWV4VnzcUoo+z1iKHNFHNI4G4nSk+8eZ5I8kLO/K5UPmHtYWUw5p83Aj8d
19
+ r2/i1cuVxrEdn9JeeroKPfYIHEgtuoEfUAFC7/07GoLiEvDqGS0lN72vyX4H4nnp
20
+ p7ijurreOIIXbY0ex8PLlpjCrPQT9+ADQe3iX4oLFDIWCrkmPJZVZ/JCqz1hVlRR
21
+ c8fzm9WGcgXnPm8TjV5PcQnD5ElHfD/O3ZTpdkZkZKlGfqXW6Nb3FQGwCP2wE5cE
22
+ gd4wxGBHDVJrYpiXdD38V2Y9UDl682ixXU/9UnkHYG5eosk3AgMBAAGjOTA3MAkG
23
+ A1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQo8c+wtGsqDeTZWqPOrR1Y
24
+ GMg+3jANBgkqhkiG9w0BAQUFAAOCAQEAOJrch12cZO+72z44rHHNMi8jdjvzn8D3
25
+ b2I5Qu5FzO/NxMGlWyETJyTaaYJ6fHdIoO5tATDo+DfiUtUMQGkE/Jrt8Rff+/1H
26
+ oWrKMS0+YR3n67RCCoLnsZpeITaqgenXDUiuaG7h8zQFNL4e9/+WVlEi3DM3oaLA
27
+ iRxaHvD71BuBpA8fJ6cC2WL5QcNUZpfSJZ4LDZoeE1WrzpEqv44dAVT4rjWF3Q3n
28
+ U6DE8XAdANgJLLQKU0xcFMj20tnkZSj/Frk5eCmMqvwP7URfbywKfSoIIyE17A3n
29
+ uqXC6cgFmydQfHaHeH24NZ6LBcoaacZYI/xsdm+9S18u2P+G/LAGOg==
30
+ -----END CERTIFICATE-----
11
31
 
12
- date: 2008-07-08 00:00:00 +02:00
32
+ date: 2008-11-23 00:00:00 +01:00
13
33
  default_executable:
14
34
  dependencies:
15
35
  - !ruby/object:Gem::Dependency
@@ -70,7 +90,7 @@ dependencies:
70
90
  requirements:
71
91
  - - ">="
72
92
  - !ruby/object:Gem::Version
73
- version: 1.7.0
93
+ version: 1.8.0
74
94
  version:
75
95
  description: Imap-feeder pushes entries from RSS and Atom feeds to an IMAP server.
76
96
  email:
@@ -157,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
177
  requirements: []
158
178
 
159
179
  rubyforge_project: imap-feeder
160
- rubygems_version: 1.2.0
180
+ rubygems_version: 1.3.1
161
181
  signing_key:
162
182
  specification_version: 2
163
183
  summary: Imap-feeder pushes entries from RSS and Atom feeds to an IMAP server.
Binary file