rspec-mail_matcher 0.1.0 → 0.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
  SHA256:
3
- metadata.gz: d906f20ac4703840f42bc77bfd7795539fa14d9510c19679fa3c2ad3ac581e86
4
- data.tar.gz: 9c3b524f9bf820f3cf3f65c5573b1a74349ed6e7082c32cf8a720a42b9db3a2b
3
+ metadata.gz: 63a97f7ea88d06c546bee59f96ce959b8fca377f13b2b82f2061bee67ce0c41d
4
+ data.tar.gz: 26765b3ca7c1692d6ff2e7055ded40b2b22d8b7ce60adcd99fb0014f066eb697
5
5
  SHA512:
6
- metadata.gz: 37a4b8a1c59ca033c56ce2608582493ad4251d9cdee1e87d9aa91c4e9e2262a450a2fd1fab88770e04e9848675b5eb9f24c91a2f995f562cb1ff89f430098383
7
- data.tar.gz: 330c3aa163f3a628ea18081fab69ab5e48c5deb40930e59ae05f857261805121d7b5c3993b1bf51841064da48a65b33c9d5e6f17b53202189beff174b990d29f
6
+ metadata.gz: 29e2ba390b49595c5eb04c078e0cc499f5863919f0a2ccc27a6d03911dc9cc47c52b716f40cf7c9da1ce0216b3b3518a57790ab8e7b94b70d9a6dc22c9b77f5c
7
+ data.tar.gz: 2b08f17e3495ef59c82e49ab4cdf2f81500ae8efd7e03d50fe8857f35e03def75ef39fd214018021331caadb00f47102f4cd9056932e77f2b4dc9331cf8a1bfe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-mail_matcher (0.1.0)
4
+ rspec-mail_matcher (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -4,7 +4,8 @@ module RSpec::MailMatcher
4
4
  class BodyHtmlMatcher < BodyMatcher
5
5
  private
6
6
  def mail_body
7
- CGI.unescapeHTML(@mail.html_part.body.to_s)
7
+ body = @mail.multipart? ? @mail.html_part.body : @mail.body
8
+ CGI.unescapeHTML(body.to_s)
8
9
  rescue
9
10
  ""
10
11
  end
@@ -2,7 +2,7 @@ module RSpec::MailMatcher
2
2
  class BodyTextMatcher < BodyMatcher
3
3
  private
4
4
  def mail_body
5
- @mail.text_part.body.to_s
5
+ @mail.multipart? ? @mail.text_part.body.to_s : @mail.body.to_s
6
6
  rescue
7
7
  ""
8
8
  end
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module MailMatcher
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-mail_matcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - shiro16