email_spec 2.1.1 → 2.1.2

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.
@@ -1,88 +1,92 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- email_spec (2.1.0)
4
+ email_spec (2.1.2)
5
5
  htmlentities (~> 4.3.3)
6
6
  launchy (~> 2.1)
7
- mail (~> 2.6)
7
+ mail (~> 2.7)
8
8
 
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- addressable (2.5.1)
13
- public_suffix (~> 2.0, >= 2.0.2)
12
+ addressable (2.5.2)
13
+ public_suffix (>= 2.0.2, < 4.0)
14
+ backports (3.11.1)
14
15
  builder (3.2.3)
15
- capybara (2.14.0)
16
+ capybara (2.18.0)
16
17
  addressable
17
- mime-types (>= 1.16)
18
+ mini_mime (>= 0.1.3)
18
19
  nokogiri (>= 1.3.3)
19
20
  rack (>= 1.0.0)
20
21
  rack-test (>= 0.5.4)
21
- xpath (~> 2.0)
22
- cucumber (2.4.0)
22
+ xpath (>= 2.0, < 4.0)
23
+ cucumber (3.1.0)
23
24
  builder (>= 2.1.2)
24
- cucumber-core (~> 1.5.0)
25
+ cucumber-core (~> 3.1.0)
26
+ cucumber-expressions (~> 5.0.4)
25
27
  cucumber-wire (~> 0.0.1)
26
- diff-lcs (>= 1.1.3)
27
- gherkin (~> 4.0)
28
+ diff-lcs (~> 1.3)
29
+ gherkin (~> 5.0)
28
30
  multi_json (>= 1.7.5, < 2.0)
29
31
  multi_test (>= 0.1.2)
30
- cucumber-core (1.5.0)
31
- gherkin (~> 4.0)
32
+ cucumber-core (3.1.0)
33
+ backports (>= 3.8.0)
34
+ cucumber-tag_expressions (~> 1.1.0)
35
+ gherkin (>= 5.0.0)
36
+ cucumber-expressions (5.0.13)
32
37
  cucumber-sinatra (0.5.0)
33
38
  templater (>= 1.0.0)
39
+ cucumber-tag_expressions (1.1.1)
34
40
  cucumber-wire (0.0.1)
35
41
  diff-lcs (1.3)
36
42
  extlib (0.9.16)
37
- gherkin (4.1.3)
38
- highline (1.7.8)
43
+ gherkin (5.0.0)
44
+ highline (1.7.10)
39
45
  htmlentities (4.3.4)
40
46
  launchy (2.4.3)
41
47
  addressable (~> 2.3)
42
- mail (2.6.5)
43
- mime-types (>= 1.16, < 4)
44
- mime-types (3.1)
45
- mime-types-data (~> 3.2015)
46
- mime-types-data (3.2016.0521)
47
- mini_portile2 (2.1.0)
48
- multi_json (1.12.1)
48
+ mail (2.7.0)
49
+ mini_mime (>= 0.1.1)
50
+ mini_mime (1.0.0)
51
+ mini_portile2 (2.3.0)
52
+ multi_json (1.13.1)
49
53
  multi_test (0.1.2)
50
- mustermann (1.0.0)
51
- nokogiri (1.7.2)
52
- mini_portile2 (~> 2.1.0)
53
- pony (1.11)
54
+ mustermann (1.0.2)
55
+ nokogiri (1.8.2)
56
+ mini_portile2 (~> 2.3.0)
57
+ pony (1.12)
54
58
  mail (>= 2.0)
55
- public_suffix (2.0.5)
56
- rack (2.0.3)
57
- rack-protection (2.0.0)
59
+ public_suffix (3.0.2)
60
+ rack (2.0.4)
61
+ rack-protection (2.0.1)
58
62
  rack
59
- rack-test (0.6.3)
60
- rack (>= 1.0)
61
- rspec (3.6.0)
62
- rspec-core (~> 3.6.0)
63
- rspec-expectations (~> 3.6.0)
64
- rspec-mocks (~> 3.6.0)
65
- rspec-core (3.6.0)
66
- rspec-support (~> 3.6.0)
67
- rspec-expectations (3.6.0)
63
+ rack-test (1.0.0)
64
+ rack (>= 1.0, < 3)
65
+ rspec (3.7.0)
66
+ rspec-core (~> 3.7.0)
67
+ rspec-expectations (~> 3.7.0)
68
+ rspec-mocks (~> 3.7.0)
69
+ rspec-core (3.7.1)
70
+ rspec-support (~> 3.7.0)
71
+ rspec-expectations (3.7.0)
68
72
  diff-lcs (>= 1.2.0, < 2.0)
69
- rspec-support (~> 3.6.0)
70
- rspec-mocks (3.6.0)
73
+ rspec-support (~> 3.7.0)
74
+ rspec-mocks (3.7.0)
71
75
  diff-lcs (>= 1.2.0, < 2.0)
72
- rspec-support (~> 3.6.0)
73
- rspec-support (3.6.0)
74
- sinatra (2.0.0)
76
+ rspec-support (~> 3.7.0)
77
+ rspec-support (3.7.1)
78
+ sinatra (2.0.1)
75
79
  mustermann (~> 1.0)
76
80
  rack (~> 2.0)
77
- rack-protection (= 2.0.0)
81
+ rack-protection (= 2.0.1)
78
82
  tilt (~> 2.0)
79
83
  templater (1.0.0)
80
84
  diff-lcs (>= 1.1.2)
81
85
  extlib (>= 0.9.5)
82
86
  highline (>= 1.4.0)
83
- tilt (2.0.7)
84
- xpath (2.0.0)
85
- nokogiri (~> 1.3)
87
+ tilt (2.0.8)
88
+ xpath (3.0.0)
89
+ nokogiri (~> 1.8)
86
90
 
87
91
  PLATFORMS
88
92
  ruby
@@ -100,4 +104,4 @@ DEPENDENCIES
100
104
  xpath
101
105
 
102
106
  BUNDLED WITH
103
- 1.14.6
107
+ 1.16.1
@@ -4,7 +4,8 @@ module EmailSpec::MailExt
4
4
  end
5
5
 
6
6
  def default_part_body
7
- HTMLEntities.new.decode(default_part.body)
7
+ # Calling to_str as we want the actual String object
8
+ HTMLEntities.new.decode(default_part.body.to_s.to_str)
8
9
  end
9
10
 
10
11
  def html
@@ -1,3 +1,3 @@
1
1
  module EmailSpec
2
- VERSION = '2.1.1'.freeze
2
+ VERSION = '2.1.2'
3
3
  end
@@ -30,6 +30,11 @@ describe EmailSpec::MailExt do
30
30
  email = Mail.new(:body => "hi")
31
31
  expect(email.default_part.body).to eq(email.default_part_body)
32
32
  end
33
+
34
+ it "compatible with ActiveSupport::SafeBuffer" do
35
+ email = Mail.new(:body => ActiveSupport::SafeBuffer.new("bacon &amp; pancake"))
36
+ expect(email.default_part_body).to eq ("bacon & pancake")
37
+ end
33
38
  end
34
39
 
35
40
  describe "#html" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Mabey
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-05-16 00:00:00.000000000 Z
13
+ date: 2018-04-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: htmlentities
@@ -46,14 +46,14 @@ dependencies:
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '2.6'
49
+ version: '2.7'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '2.6'
56
+ version: '2.7'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rake
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  version: '0'
317
317
  requirements: []
318
318
  rubyforge_project: email-spec
319
- rubygems_version: 2.6.8
319
+ rubygems_version: 2.6.14
320
320
  signing_key:
321
321
  specification_version: 4
322
322
  summary: Easily test email in RSpec, Cucumber or Minitest