mbox 0.0.4.4 → 0.0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ class File
25
25
  attr_reader :name, :headers, :content
26
26
 
27
27
  def initialize (headers, content)
28
- if headers[:content_type]
28
+ if headers[:content_type] && headers[:content_type].charset
29
29
  content.force_encoding headers[:content_type].charset
30
30
  end
31
31
 
@@ -142,7 +142,7 @@ class Headers
142
142
 
143
143
  self[name] = value.strip
144
144
  last = name
145
- elsif self[last]
145
+ elsif last && self[last]
146
146
  if self[last].is_a?(String)
147
147
  self[last] << " #{line.strip}"
148
148
  elsif self[last].is_a?(Array) && self[last].last.is_a?(String)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.4
4
+ version: 0.0.4.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-10 00:00:00.000000000 Z
12
+ date: 2012-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: call-me