rmail 1.1.0 → 1.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.
- checksums.yaml +4 -4
- data/ChangeLog +6 -0
- data/{README → README.md} +20 -43
- data/Rakefile +3 -3
- data/lib/rmail/header.rb +3 -2
- data/lib/rmail/version.rb +1 -1
- data/test/testheader.rb +4 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 138243643d5e2bc5de7c471d4d8a3a6b8eb27c66
|
4
|
+
data.tar.gz: 5f29da5f46e58315e00031c5882899f75409b5e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acab621710b882343a3872c222862018989e00d1f217952f946f73973ad67f84fb283d1a0b38345fd180a8279b52cccbb5a5f7d100ff5fbaf015cb69423e312f
|
7
|
+
data.tar.gz: b22be7eca80a51ff7a61e933ec76ddcb4931684202e2502df68981f45275831b8cefd317947bef840edabeb8a581364ce02b75c6e8a2f7c2d788eff2e14ca650
|
data/ChangeLog
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
= Changes in RubyMail 1.1.1 (released 2015-11-30)
|
2
|
+
|
3
|
+
- README.md updated (and renamed from README). Thanks to Aldric Giacomoni and
|
4
|
+
Zeger-Jan van de Weg
|
5
|
+
- Fix crash against empty "Content-Type" header. Thanks to Matthew Bloch
|
6
|
+
|
1
7
|
= Changes in RubyMail 1.1.0 (released 2015-02-10)
|
2
8
|
|
3
9
|
- This version contains fixes for running on Ruby 2.0+ that were contributed by
|
data/{README → README.md}
RENAMED
@@ -1,64 +1,41 @@
|
|
1
|
-
|
1
|
+
# RubyMail
|
2
2
|
|
3
3
|
This is RubyMail, a lightweight mail library containing various
|
4
4
|
utility classes and modules that allow Ruby scripts to parse,
|
5
5
|
modify, and generate MIME mail messages.
|
6
6
|
|
7
|
-
|
7
|
+
## Requirements
|
8
8
|
|
9
|
-
Ruby
|
10
|
-
be fine under any Unix.
|
9
|
+
Ruby 2.0 or newer is supported.
|
11
10
|
|
12
|
-
|
11
|
+
## Install
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
```bash
|
14
|
+
gem install rmail
|
15
|
+
```
|
17
16
|
|
18
|
-
|
17
|
+
## Status
|
19
18
|
|
20
|
-
|
19
|
+
[](https://travis-ci.org/terceiro/rmail)
|
21
20
|
|
22
|
-
ruby install.rb config
|
23
|
-
ruby install.rb setup
|
24
|
-
ruby install.rb install
|
25
21
|
|
26
|
-
|
27
|
-
want to just install RubyMail to a custom location, just copy the
|
28
|
-
rmail subdirectory manually.
|
22
|
+
## Tests
|
29
23
|
|
30
|
-
|
24
|
+
This package has a complete unit test suite. To run it, just run `rake` under
|
25
|
+
the top-level directory. When submitting patches, please make sure all the
|
26
|
+
tests pass with your changes applied.
|
31
27
|
|
32
|
-
|
28
|
+
## Support
|
33
29
|
|
34
|
-
|
35
|
-
|
30
|
+
If you found a bug, or even if you think you did but is not completely sure,
|
31
|
+
open an issue on the [issue tracker](https://github.com/terceiro/rmail/issues).
|
36
32
|
|
37
|
-
|
33
|
+
## License
|
38
34
|
|
39
|
-
|
40
|
-
|
35
|
+
Copyright (C) 2001, 2002, 2003, 2004 Matt Armstrong.
|
36
|
+
Copyright (C) 2015 Antonio Terceiro.
|
37
|
+
All rights reserved.
|
41
38
|
|
42
|
-
= Why?
|
43
|
-
|
44
|
-
It is fun.
|
45
|
-
|
46
|
-
One use for RubyMail is the RubyFilter package, available at:
|
47
|
-
|
48
|
-
http://www.lickey.com/rubyfilter/
|
49
|
-
|
50
|
-
= Alternatives
|
51
|
-
|
52
|
-
You might check out TMail as well.
|
53
|
-
|
54
|
-
= Support
|
55
|
-
|
56
|
-
To reach the author of RubyMail, send mail to matt@lickey.com.
|
57
|
-
|
58
|
-
= License
|
59
|
-
|
60
|
-
Copyright (C) 2001, 2002, 2003, 2004 Matt Armstrong. All rights
|
61
|
-
reserved.
|
62
39
|
|
63
40
|
Redistribution and use in source and binary forms, with or without
|
64
41
|
modification, are permitted provided that the following conditions are met:
|
data/Rakefile
CHANGED
@@ -87,7 +87,7 @@ PKG_FILES = FileList.new('test/**/*',
|
|
87
87
|
'lib/**/*',
|
88
88
|
'ChangeLog',
|
89
89
|
'NOTES',
|
90
|
-
'README',
|
90
|
+
'README.md',
|
91
91
|
'THANKS',
|
92
92
|
'TODO',
|
93
93
|
'Rakefile')
|
@@ -97,7 +97,7 @@ PKG_FILES = FileList.new('test/**/*',
|
|
97
97
|
#
|
98
98
|
rdoc = Rake::RDocTask.new do |rdoc|
|
99
99
|
rdoc.main = 'README'
|
100
|
-
rdoc.rdoc_files.include("README", "ChangeLog", "THANKS",
|
100
|
+
rdoc.rdoc_files.include("README.md", "ChangeLog", "THANKS",
|
101
101
|
"TODO", "guide/*.txt", "lib/**/*.rb")
|
102
102
|
rdoc.rdoc_files.exclude(/\bSCCS\b/,
|
103
103
|
"lib/rubymail/parser/*")
|
@@ -166,6 +166,6 @@ task :release => [:test, :package] do
|
|
166
166
|
sh 'git', 'tag', '-s', "v#{PKG_VERSION}"
|
167
167
|
sh 'git', 'push'
|
168
168
|
sh 'git', 'push', '--tags'
|
169
|
-
sh 'gem' 'push',
|
169
|
+
sh 'gem', 'push', "pkg/#{rmail}-#{PKG_VERSION}.gem"
|
170
170
|
end
|
171
171
|
|
data/lib/rmail/header.rb
CHANGED
@@ -533,8 +533,9 @@ module RMail
|
|
533
533
|
# executed and its return value is returned. If no block is passed,
|
534
534
|
# the value of the +default+ argument is returned.
|
535
535
|
def content_type(default = nil)
|
536
|
-
|
537
|
-
|
536
|
+
content_type = self['content-type']
|
537
|
+
if content_type && content_type.length > 0
|
538
|
+
content_type.strip.split(/\s*;\s*/)[0].downcase
|
538
539
|
else
|
539
540
|
if block_given?
|
540
541
|
yield
|
data/lib/rmail/version.rb
CHANGED
data/test/testheader.rb
CHANGED
@@ -781,6 +781,10 @@ EOF
|
|
781
781
|
h.delete('content-type')
|
782
782
|
h['content-type'] = ' foo/html ; charset=ISO-8859-1'
|
783
783
|
assert_equal("foo/html", h.content_type)
|
784
|
+
|
785
|
+
h = RMail::Header.new
|
786
|
+
h['content-type'] = ''
|
787
|
+
assert_equal(nil, h.content_type)
|
784
788
|
end
|
785
789
|
|
786
790
|
def test_media_type
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Armstrong
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: |2
|
15
15
|
RMail is a lightweight mail library containing various utility classes and
|
@@ -19,7 +19,7 @@ email: terceiro@softwarelivre.org
|
|
19
19
|
executables: []
|
20
20
|
extensions: []
|
21
21
|
extra_rdoc_files:
|
22
|
-
- README
|
22
|
+
- README.md
|
23
23
|
- ChangeLog
|
24
24
|
- THANKS
|
25
25
|
- TODO
|
@@ -29,7 +29,7 @@ extra_rdoc_files:
|
|
29
29
|
files:
|
30
30
|
- ChangeLog
|
31
31
|
- NOTES
|
32
|
-
- README
|
32
|
+
- README.md
|
33
33
|
- Rakefile
|
34
34
|
- THANKS
|
35
35
|
- TODO
|
@@ -123,7 +123,7 @@ metadata: {}
|
|
123
123
|
post_install_message:
|
124
124
|
rdoc_options:
|
125
125
|
- "--title"
|
126
|
-
- RubyMail Documentation (version 1.1.
|
126
|
+
- RubyMail Documentation (version 1.1.1)
|
127
127
|
- "--main"
|
128
128
|
- README
|
129
129
|
- "--exclude"
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.4.5.1
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: A MIME mail parsing and generation library.
|