fibber_mailman 0.0.7 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,9 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.description = "FibberMailman lie to you when you ask for a Net::POP3.start call."
13
13
 
14
14
  s.rubyforge_project = "FibberMailman"
15
-
16
- s.add_dependency "tmail"
17
-
15
+
18
16
  s.add_development_dependency "rake"
19
17
 
20
18
  s.files = `git ls-files`.split("\n")
@@ -1,3 +1,3 @@
1
1
  module FibberMailman
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -7,20 +7,19 @@ require File.dirname(__FILE__) + "/../lib/fibber_mailman"
7
7
  class FibberMailmanTest < Test::Unit::TestCase
8
8
  def test_mocking
9
9
  raw_mails = [
10
- File.read( File.dirname(__FILE__) + "/fixtures/mail1.raw_mail" ),
11
- File.read( File.dirname(__FILE__) + "/fixtures/mail2.raw_mail" ),
10
+ "raw_mail 1",
11
+ "raw_mail 2",
12
12
  ]
13
13
 
14
- mails_subjects = []
14
+ mails = []
15
15
  FibberMailman.lie_to_me( raw_mails ) do
16
16
  Net::POP3.start( 'server', 'port', 'user', 'pass' ) do |pop|
17
17
  pop.each_mail do |mail|
18
- tmail = TMail::Mail.parse( mail.pop )
19
- mails_subjects << tmail.subject
18
+ mails << mail.pop
20
19
  end
21
20
  end
22
21
  end
23
22
 
24
- assert_equal( ['test 1', 'test 2'], mails_subjects )
23
+ assert_equal( ["raw_mail 1", "raw_mail 2"], mails )
25
24
  end
26
25
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 11
9
+ version: 0.0.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Fernando Guillen
@@ -17,23 +17,10 @@ cert_chain: []
17
17
  date: 2011-10-23 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: tmail
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- version: "0"
31
- type: :runtime
32
- version_requirements: *id001
33
20
  - !ruby/object:Gem::Dependency
34
21
  name: rake
35
22
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
37
24
  none: false
38
25
  requirements:
39
26
  - - ">="
@@ -42,7 +29,7 @@ dependencies:
42
29
  - 0
43
30
  version: "0"
44
31
  type: :development
45
- version_requirements: *id002
32
+ version_requirements: *id001
46
33
  description: FibberMailman lie to you when you ask for a Net::POP3.start call.
47
34
  email:
48
35
  - fguillen.mail@gmail.com
@@ -74,8 +61,6 @@ files:
74
61
  - lib/fibber_mailman.rb
75
62
  - lib/fibber_mailman/version.rb
76
63
  - test/fibber_mailman_test.rb
77
- - test/fixtures/mail1.raw_mail
78
- - test/fixtures/mail2.raw_mail
79
64
  has_rdoc: true
80
65
  homepage: https://github.com/fguillen/FibberMailman
81
66
  licenses: []
@@ -110,5 +95,3 @@ specification_version: 3
110
95
  summary: FibberMailman lie to you when you ask for a Net::POP3.start call.
111
96
  test_files:
112
97
  - test/fibber_mailman_test.rb
113
- - test/fixtures/mail1.raw_mail
114
- - test/fixtures/mail2.raw_mail
@@ -1,11 +0,0 @@
1
- MIME-Version: 1.0
2
- Received: by 10.227.154.200 with HTTP; Mon, 2 Aug 2010 07:51:46 -0700 (PDT)
3
- Date: Mon, 2 Aug 2010 16:51:46 +0200
4
- Delivered-To: xxx@gmail.com
5
- Message-ID: <AANLkTim3fkv-8hUrKf-MPUfyQxdV_3jH44UqQh2dWqjS@mail.gmail.com>
6
- Subject: test 1
7
- From: Fernando Guillen <xxx@gmail.com>
8
- To: =?UTF-8?Q?Fernando_Guill=C3=A9n?= <xxx@gmail.com>
9
- Content-Type: text/plain; charset=UTF-8
10
-
11
- Test Mail 1
@@ -1,11 +0,0 @@
1
- MIME-Version: 1.0
2
- Received: by 10.227.154.200 with HTTP; Mon, 2 Aug 2010 07:51:59 -0700 (PDT)
3
- Date: Mon, 2 Aug 2010 16:51:59 +0200
4
- Delivered-To: xxx@gmail.com
5
- Message-ID: <AANLkTiku5OQEfRK8tgpd_fnF44BRCaT61Pz3Q9EDUJhm@mail.gmail.com>
6
- Subject: test 2
7
- From: Fernando Guillen <xxx@gmail.com>
8
- To: =?UTF-8?Q?Fernando_Guill=C3=A9n?= <xxx@gmail.com>
9
- Content-Type: text/plain; charset=UTF-8
10
-
11
- Test Mail 2