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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b4a29f4260f329ca644299cc81203d2db1f7785
4
- data.tar.gz: caa1c6f095e88be1d91c9c694b0a0debde71edb8
3
+ metadata.gz: 138243643d5e2bc5de7c471d4d8a3a6b8eb27c66
4
+ data.tar.gz: 5f29da5f46e58315e00031c5882899f75409b5e0
5
5
  SHA512:
6
- metadata.gz: 432fb864d8aad5282d9e987870fa0996cf2e6d2f4e96c7a5cf865bc048900dcb0d77439c55c00e77694caaa64943ad486dcdf7fba97b6c2406e20f05de5b9360
7
- data.tar.gz: 79f14439893e809897523cfa6cf7b39519b72ad67b0a885041d49ca3b4e7bc6d7f87b7bac84c72835d948cf956f01b590dbb6a0ba4f21ca15ae3ca570dc81cd3
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
@@ -1,64 +1,41 @@
1
- = RubyMail
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
- = Requirements
7
+ ## Requirements
8
8
 
9
- Ruby 1.6.7 (or newer) or Ruby 1.8.*. Only tested under Linux, should
10
- be fine under any Unix.
9
+ Ruby 2.0 or newer is supported.
11
10
 
12
- = Documentation
11
+ ## Install
13
12
 
14
- The documentation is in RDoc format in the doc subdirectory. Aside
15
- from the API reference, you will be interested in guide/Intro.txt and
16
- guide/TableOfContents.txt.
13
+ ```bash
14
+ gem install rmail
15
+ ```
17
16
 
18
- = Install
17
+ ## Status
19
18
 
20
- Type the following while in the package directory:
19
+ [![Build Status](https://travis-ci.org/terceiro/rmail.svg?branch=master)](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
- You may need special permissions to execute the last line. If you
27
- want to just install RubyMail to a custom location, just copy the
28
- rmail subdirectory manually.
22
+ ## Tests
29
23
 
30
- = Status
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
- This package works well, but I consider all API subject to change.
28
+ ## Support
33
29
 
34
- I very much appreciate suggestions and comments, but please think
35
- twice about using this for production use just yet.
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
- = Tests?
33
+ ## License
38
34
 
39
- This package has a complete unit test suite (requires RubyUnit to
40
- run). Currently all of my e-mail is processed by this library.
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', 'pkg/#{rmail}-#{PKG_VERSION}.gem'
169
+ sh 'gem', 'push', "pkg/#{rmail}-#{PKG_VERSION}.gem"
170
170
  end
171
171
 
@@ -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
- if value = self['content-type']
537
- value.strip.split(/\s*;\s*/)[0].downcase
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
@@ -1,3 +1,3 @@
1
1
  module RMail
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -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.0
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-02-11 00:00:00.000000000 Z
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.0)
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.2.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.