rmail 0.17 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/NEWS +10 -0
  2. data/Rakefile +186 -0
  3. data/TODO +3 -0
  4. data/lib/rmail/header.rb +3 -9
  5. data/{tests → test}/addrgrammar.txt +0 -0
  6. data/{tests → test}/data/mbox.odd +0 -0
  7. data/{tests → test}/data/mbox.simple +0 -0
  8. data/{tests → test}/data/multipart/data.1 +0 -0
  9. data/{tests → test}/data/multipart/data.10 +0 -0
  10. data/{tests → test}/data/multipart/data.11 +0 -0
  11. data/{tests → test}/data/multipart/data.12 +0 -0
  12. data/{tests → test}/data/multipart/data.13 +0 -0
  13. data/{tests → test}/data/multipart/data.14 +0 -0
  14. data/{tests → test}/data/multipart/data.15 +0 -0
  15. data/{tests → test}/data/multipart/data.16 +0 -0
  16. data/{tests → test}/data/multipart/data.17 +0 -0
  17. data/{tests → test}/data/multipart/data.2 +0 -0
  18. data/{tests → test}/data/multipart/data.3 +0 -0
  19. data/{tests → test}/data/multipart/data.4 +0 -0
  20. data/{tests → test}/data/multipart/data.5 +0 -0
  21. data/{tests → test}/data/multipart/data.6 +0 -0
  22. data/{tests → test}/data/multipart/data.7 +0 -0
  23. data/{tests → test}/data/multipart/data.8 +0 -0
  24. data/{tests → test}/data/multipart/data.9 +0 -0
  25. data/{tests → test}/data/parser.badmime1 +0 -0
  26. data/{tests → test}/data/parser.badmime2 +0 -0
  27. data/{tests → test}/data/parser.nested-multipart +0 -0
  28. data/{tests → test}/data/parser.nested-simple +0 -0
  29. data/{tests → test}/data/parser.nested-simple2 +0 -0
  30. data/{tests → test}/data/parser.nested-simple3 +0 -0
  31. data/{tests → test}/data/parser.rfc822 +0 -0
  32. data/{tests → test}/data/parser.simple-mime +0 -0
  33. data/{tests → test}/data/parser/multipart.1 +0 -0
  34. data/{tests → test}/data/parser/multipart.10 +0 -0
  35. data/{tests → test}/data/parser/multipart.11 +0 -0
  36. data/{tests → test}/data/parser/multipart.12 +0 -0
  37. data/{tests → test}/data/parser/multipart.13 +0 -0
  38. data/{tests → test}/data/parser/multipart.14 +0 -0
  39. data/{tests → test}/data/parser/multipart.15 +0 -0
  40. data/{tests → test}/data/parser/multipart.16 +0 -0
  41. data/{tests → test}/data/parser/multipart.2 +0 -0
  42. data/{tests → test}/data/parser/multipart.3 +0 -0
  43. data/{tests → test}/data/parser/multipart.4 +0 -0
  44. data/{tests → test}/data/parser/multipart.5 +0 -0
  45. data/{tests → test}/data/parser/multipart.6 +0 -0
  46. data/{tests → test}/data/parser/multipart.7 +0 -0
  47. data/{tests → test}/data/parser/multipart.8 +0 -0
  48. data/{tests → test}/data/parser/multipart.9 +0 -0
  49. data/{tests → test}/data/transparency/absolute.1 +0 -0
  50. data/{tests → test}/data/transparency/absolute.2 +0 -0
  51. data/{tests → test}/data/transparency/absolute.3 +0 -0
  52. data/{tests → test}/data/transparency/absolute.4 +0 -0
  53. data/{tests → test}/data/transparency/absolute.5 +0 -0
  54. data/{tests → test}/data/transparency/absolute.6 +0 -0
  55. data/{tests → test}/data/transparency/message.1 +0 -0
  56. data/{tests → test}/data/transparency/message.2 +0 -0
  57. data/{tests → test}/data/transparency/message.3 +0 -0
  58. data/{tests → test}/data/transparency/message.4 +0 -0
  59. data/{tests → test}/data/transparency/message.5 +0 -0
  60. data/{tests → test}/data/transparency/message.6 +0 -0
  61. data/{tests → test}/runtests.rb +1 -1
  62. data/{tests → test}/testaddress.rb +9 -9
  63. data/{tests → test}/testbase.rb +9 -12
  64. data/{tests → test}/testheader.rb +70 -52
  65. data/{tests → test}/testmailbox.rb +1 -1
  66. data/{tests → test}/testmboxreader.rb +1 -1
  67. data/{tests → test}/testmessage.rb +3 -3
  68. data/{tests → test}/testparser.rb +3 -3
  69. data/{tests → test}/testparsermultipart.rb +1 -1
  70. data/{tests → test}/testpushbackreader.rb +2 -2
  71. data/{tests → test}/testserialize.rb +1 -1
  72. data/{tests → test}/testtestbase.rb +8 -4
  73. data/{tests → test}/testtranspparency.rb +3 -3
  74. data/version +1 -0
  75. metadata +153 -135
  76. data/rmail.gemspec +0 -17
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #--
3
- # Copyright (C) 2002 Matt Armstrong. All rights reserved.
3
+ # Copyright (C) 2002, 2007 Matt Armstrong. All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without
6
6
  # modification, are permitted provided that the following conditions are met:
@@ -25,7 +25,7 @@
25
25
  # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
  #
27
27
 
28
- require 'tests/testbase'
28
+ require 'test/testbase'
29
29
  require 'rmail/parser'
30
30
  require 'rmail/serialize'
31
31
 
@@ -49,7 +49,7 @@ class TestRMailTransparency < TestBase
49
49
  pp message2
50
50
  puts "-" * 70
51
51
  end
52
- assert(File.compare(full_name, scratch_name),
52
+ assert(FileUtils.compare_file(full_name, scratch_name),
53
53
  "parse->serialize failure transparency #{file}")
54
54
  assert_equal(message1, message2,
55
55
  "parse->serialize->parse transparency failure #{file}")
data/version ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
metadata CHANGED
@@ -1,143 +1,161 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: "0.8"
3
- specification_version: 1
4
2
  name: rmail
5
3
  version: !ruby/object:Gem::Version
6
- version: "0.17"
7
- date: 2004-10-22
8
- summary: "This is RubyMail, a lightweight mail library containing various utility classes and modules that allow Ruby scripts to parse, modify, and generate MIME mail messages."
9
- require_paths:
10
- - lib
11
- author: Matt Armstrong
12
- email: matt@lickey.com
13
- homepage: http://www.lickey.com/rubymail/
14
- rubyforge_project:
15
- description:
16
- autorequire: rmail
17
- default_executable:
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Matt Armstrong
8
+ autorequire:
18
9
  bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-01-05 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: RMail is a lightweight mail library containing various utility classes and modules that allow ruby scripts to parse, modify, and generate MIME mail messages.
17
+ email: matt@rfc20.org
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README
24
+ - NEWS
25
+ - THANKS
26
+ - TODO
27
+ - guide/Intro.txt
28
+ - guide/MIME.txt
29
+ - guide/TableOfContents.txt
30
+ files:
31
+ - test/addrgrammar.txt
32
+ - test/data
33
+ - test/data/mbox.odd
34
+ - test/data/mbox.simple
35
+ - test/data/multipart
36
+ - test/data/multipart/data.1
37
+ - test/data/multipart/data.10
38
+ - test/data/multipart/data.11
39
+ - test/data/multipart/data.12
40
+ - test/data/multipart/data.13
41
+ - test/data/multipart/data.14
42
+ - test/data/multipart/data.15
43
+ - test/data/multipart/data.16
44
+ - test/data/multipart/data.17
45
+ - test/data/multipart/data.2
46
+ - test/data/multipart/data.3
47
+ - test/data/multipart/data.4
48
+ - test/data/multipart/data.5
49
+ - test/data/multipart/data.6
50
+ - test/data/multipart/data.7
51
+ - test/data/multipart/data.8
52
+ - test/data/multipart/data.9
53
+ - test/data/parser
54
+ - test/data/parser/multipart.1
55
+ - test/data/parser/multipart.10
56
+ - test/data/parser/multipart.11
57
+ - test/data/parser/multipart.12
58
+ - test/data/parser/multipart.13
59
+ - test/data/parser/multipart.14
60
+ - test/data/parser/multipart.15
61
+ - test/data/parser/multipart.16
62
+ - test/data/parser/multipart.2
63
+ - test/data/parser/multipart.3
64
+ - test/data/parser/multipart.4
65
+ - test/data/parser/multipart.5
66
+ - test/data/parser/multipart.6
67
+ - test/data/parser/multipart.7
68
+ - test/data/parser/multipart.8
69
+ - test/data/parser/multipart.9
70
+ - test/data/parser.badmime1
71
+ - test/data/parser.badmime2
72
+ - test/data/parser.nested-multipart
73
+ - test/data/parser.nested-simple
74
+ - test/data/parser.nested-simple2
75
+ - test/data/parser.nested-simple3
76
+ - test/data/parser.rfc822
77
+ - test/data/parser.simple-mime
78
+ - test/data/transparency
79
+ - test/data/transparency/absolute.1
80
+ - test/data/transparency/absolute.2
81
+ - test/data/transparency/absolute.3
82
+ - test/data/transparency/absolute.4
83
+ - test/data/transparency/absolute.5
84
+ - test/data/transparency/absolute.6
85
+ - test/data/transparency/message.1
86
+ - test/data/transparency/message.2
87
+ - test/data/transparency/message.3
88
+ - test/data/transparency/message.4
89
+ - test/data/transparency/message.5
90
+ - test/data/transparency/message.6
91
+ - test/runtests.rb
92
+ - test/testaddress.rb
93
+ - test/testbase.rb
94
+ - test/testheader.rb
95
+ - test/testmailbox.rb
96
+ - test/testmboxreader.rb
97
+ - test/testmessage.rb
98
+ - test/testparser.rb
99
+ - test/testparsermultipart.rb
100
+ - test/testpushbackreader.rb
101
+ - test/testserialize.rb
102
+ - test/testtestbase.rb
103
+ - test/testtranspparency.rb
104
+ - guide/Intro.txt
105
+ - guide/MIME.txt
106
+ - guide/TableOfContents.txt
107
+ - lib/rmail
108
+ - lib/rmail/address.rb
109
+ - lib/rmail/header.rb
110
+ - lib/rmail/mailbox
111
+ - lib/rmail/mailbox/mboxreader.rb
112
+ - lib/rmail/mailbox.rb
113
+ - lib/rmail/message.rb
114
+ - lib/rmail/parser
115
+ - lib/rmail/parser/multipart.rb
116
+ - lib/rmail/parser/pushbackreader.rb
117
+ - lib/rmail/parser.rb
118
+ - lib/rmail/serialize.rb
119
+ - lib/rmail/utils.rb
120
+ - lib/rmail.rb
121
+ - install.rb
122
+ - NEWS
123
+ - NOTES
124
+ - README
125
+ - THANKS
126
+ - TODO
127
+ - Rakefile
128
+ - version
19
129
  has_rdoc: true
20
- required_ruby_version: !ruby/object:Gem::Version::Requirement
130
+ homepage: http://www.rfc20.org/rubymail
131
+ post_install_message:
132
+ rdoc_options:
133
+ - --title
134
+ - RubyMail Documentation (version 1.0.0)
135
+ - --main
136
+ - README
137
+ - --exclude
138
+ - SCCS
139
+ require_paths:
140
+ - lib
141
+ required_ruby_version: !ruby/object:Gem::Requirement
21
142
  requirements:
22
- -
23
- - ">="
24
- - !ruby/object:Gem::Version
25
- version: 1.6.7
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 1.8.1
146
+ version:
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: "0"
26
152
  version:
27
- platform: ruby
28
- files:
29
- - lib
30
- - NEWS
31
- - TODO
32
- - NOTES
33
- - guide
34
- - tests
35
- - README
36
- - THANKS
37
- - install.rb
38
- - rmail.gemspec
39
- - lib/rmail.rb
40
- - lib/rmail
41
- - lib/rmail/parser.rb
42
- - lib/rmail/message.rb
43
- - lib/rmail/header.rb
44
- - lib/rmail/mailbox
45
- - lib/rmail/address.rb
46
- - lib/rmail/parser
47
- - lib/rmail/mailbox.rb
48
- - lib/rmail/serialize.rb
49
- - lib/rmail/utils.rb
50
- - lib/rmail/mailbox/mboxreader.rb
51
- - lib/rmail/parser/multipart.rb
52
- - lib/rmail/parser/pushbackreader.rb
53
- - guide/MIME.txt
54
- - guide/TableOfContents.txt
55
- - guide/Intro.txt
56
- - tests/data
57
- - tests/addrgrammar.txt
58
- - tests/testmboxreader.rb
59
- - tests/testpushbackreader.rb
60
- - tests/runtests.rb
61
- - tests/testaddress.rb
62
- - tests/testtestbase.rb
63
- - tests/testserialize.rb
64
- - tests/testparser.rb
65
- - tests/testtranspparency.rb
66
- - tests/testmailbox.rb
67
- - tests/testheader.rb
68
- - tests/testparsermultipart.rb
69
- - tests/testbase.rb
70
- - tests/testmessage.rb
71
- - tests/data/parser.rfc822
72
- - tests/data/transparency
73
- - tests/data/parser.simple-mime
74
- - tests/data/parser.badmime1
75
- - tests/data/parser.badmime2
76
- - tests/data/multipart
77
- - tests/data/parser.nested-multipart
78
- - tests/data/mbox.odd
79
- - tests/data/parser
80
- - tests/data/parser.nested-simple
81
- - tests/data/mbox.simple
82
- - tests/data/parser.nested-simple2
83
- - tests/data/parser.nested-simple3
84
- - tests/data/transparency/message.1
85
- - tests/data/transparency/message.2
86
- - tests/data/transparency/message.3
87
- - tests/data/transparency/message.4
88
- - tests/data/transparency/message.5
89
- - tests/data/transparency/message.6
90
- - tests/data/transparency/absolute.1
91
- - tests/data/transparency/absolute.2
92
- - tests/data/transparency/absolute.3
93
- - tests/data/transparency/absolute.4
94
- - tests/data/transparency/absolute.5
95
- - tests/data/transparency/absolute.6
96
- - tests/data/multipart/data.10
97
- - tests/data/multipart/data.11
98
- - tests/data/multipart/data.12
99
- - tests/data/multipart/data.13
100
- - tests/data/multipart/data.14
101
- - tests/data/multipart/data.15
102
- - tests/data/multipart/data.16
103
- - tests/data/multipart/data.17
104
- - tests/data/multipart/data.1
105
- - tests/data/multipart/data.2
106
- - tests/data/multipart/data.3
107
- - tests/data/multipart/data.4
108
- - tests/data/multipart/data.5
109
- - tests/data/multipart/data.6
110
- - tests/data/multipart/data.7
111
- - tests/data/multipart/data.8
112
- - tests/data/multipart/data.9
113
- - tests/data/parser/multipart.1
114
- - tests/data/parser/multipart.2
115
- - tests/data/parser/multipart.3
116
- - tests/data/parser/multipart.4
117
- - tests/data/parser/multipart.5
118
- - tests/data/parser/multipart.6
119
- - tests/data/parser/multipart.7
120
- - tests/data/parser/multipart.8
121
- - tests/data/parser/multipart.9
122
- - tests/data/parser/multipart.10
123
- - tests/data/parser/multipart.11
124
- - tests/data/parser/multipart.12
125
- - tests/data/parser/multipart.13
126
- - tests/data/parser/multipart.14
127
- - tests/data/parser/multipart.15
128
- - tests/data/parser/multipart.16
129
- test_files:
130
- - tests/runtests.rb
131
- rdoc_options:
132
- - "--main"
133
- - README
134
- extra_rdoc_files:
135
- - README
136
- - NOTES
137
- - NEWS
138
- - TODO
139
- - THANKS
140
- executables: []
141
- extensions: []
142
153
  requirements: []
143
- dependencies: []
154
+
155
+ rubyforge_project: rubymail
156
+ rubygems_version: 1.0.1
157
+ signing_key:
158
+ specification_version: 2
159
+ summary: A MIME mail parsing and generation library.
160
+ test_files: []
161
+
@@ -1,17 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = %q{rmail}
3
- s.version = "0.17"
4
- s.date = Time.now
5
- s.summary = %q{This is RubyMail, a lightweight mail library containing various utility classes and modules that allow Ruby scripts to parse, modify, and generate MIME mail messages.}
6
- s.author = %q{Matt Armstrong}
7
- s.email = %q{matt@lickey.com}
8
- s.homepage = %q{http://www.lickey.com/rubymail/}
9
- s.has_rdoc = true
10
- s.required_ruby_version = Gem::Version::Requirement.new(">= 1.6.7")
11
- s.files = Dir.glob('**/*')
12
- s.require_path = %q{lib}
13
- s.autorequire = %q{rmail}
14
- s.test_files = ["tests/runtests.rb"]
15
- s.rdoc_options = ["--main", "README"]
16
- s.extra_rdoc_files = %w{README NOTES NEWS TODO THANKS}
17
- end