decoration_mail 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{decoration_mail}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dai Akatsuka"]
@@ -14,11 +14,11 @@ module DecorationMail
14
14
 
15
15
  def body
16
16
  warn "[DEPRECATION] 'body' is deprecated. Please use 'read'"
17
- @attachment.read
17
+ @attachment.decoded
18
18
  end
19
19
 
20
20
  def read
21
- @attachment.read
21
+ @attachment.decoded
22
22
  end
23
23
 
24
24
  def extension
@@ -14,7 +14,7 @@ describe DecorationMail::Image do
14
14
  subject { @image }
15
15
 
16
16
  it { should respond_to :path }
17
- its(:read) { should eql @mail.attachments.first.read }
17
+ its(:read) { should eql @mail.attachments.first.decoded }
18
18
  its(:content_id) { should eql "cid:01@110207.142735@______F03B@docomo.ne.jp" }
19
19
  its(:filename) { should eql "06_gochisou_header.gif" }
20
20
  its(:extension) { should eql "gif" }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: decoration_mail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.1
5
+ version: 0.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dai Akatsuka