spreewald 2.99.1 → 2.99.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/spreewald_support/mail_finder.rb +1 -1
- data/lib/spreewald_support/version.rb +1 -1
- data/tests/rails-3_capybara-1/Gemfile.lock +1 -1
- data/tests/rails-3_capybara-2/Gemfile.lock +1 -1
- data/tests/rails-4_capybara-3/Gemfile.lock +1 -1
- data/tests/rails-6_capybara-3/Gemfile.lock +1 -1
- data/tests/rails-6_capybara-3/app/mailers/spreewald_mailer.rb +4 -0
- data/tests/shared/app/controllers/emails_controller.rb +5 -0
- data/tests/shared/app/models/mailer.rb +4 -0
- data/tests/shared/app/views/mailer/html_email_with_linebreaks.html +6 -0
- data/tests/shared/config/routes.rb +1 -0
- data/tests/shared/features/shared/email_steps.feature +17 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04e59902ff7a473603ddb7619f350b34de83072a81e36afc5767480e837c4345
|
|
4
|
+
data.tar.gz: 5dfc9a6630cc0332228024528a55025f7d672140bd0acabbffecbafbcd18188c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21eed3d8dab955f4da45fa3a30fda49c1d3f6ca2b462736cb4e171725a7c685f6e6149a1a261646028fcb1310fb9a070e68679426a670d77271d3c2e2926ca58
|
|
7
|
+
data.tar.gz: 299c23ccc3f6f751b850e0d776da679c6f2c4480cb1e150ff655cc31aaaffd33008f592b5b3d53a4f9bae543391ec75943f42805949b5be690f1d383a25bfed4
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## 2.99.2
|
|
7
|
+
|
|
8
|
+
- Fix deduplication of linebreaks for html mails in mail finder. (see issue [#153](https://github.com/makandra/spreewald/issues/153))
|
|
9
|
+
|
|
6
10
|
## 2.99.1
|
|
7
11
|
|
|
8
12
|
- Reintroduced support for emails with CRLF line ending
|
|
@@ -60,7 +60,7 @@ class MailFinder
|
|
|
60
60
|
def email_text_body(mail, type = '')
|
|
61
61
|
body = if mail.html_part && type != 'plain-text'
|
|
62
62
|
dom = Nokogiri::HTML(mail.html_part.body.to_s)
|
|
63
|
-
dom.at_css('body').text.gsub(
|
|
63
|
+
dom.at_css('body').text.gsub(/[\r\n]+/, "\n")
|
|
64
64
|
elsif mail.text_part && type != 'HTML'
|
|
65
65
|
mail.text_part.body.to_s
|
|
66
66
|
else
|
|
@@ -10,6 +10,7 @@ Rails.application.routes.draw do
|
|
|
10
10
|
get '/emails/send_email_with_umlauts', to: 'emails#send_email_with_umlauts'
|
|
11
11
|
get '/emails/send_html_email_with_links', to: 'emails#send_html_email_with_links'
|
|
12
12
|
get '/emails/send_text_email_with_links', to: 'emails#send_text_email_with_links'
|
|
13
|
+
get '/emails/send_html_email_with_linebreaks', to: 'emails#send_html_email_with_linebreaks'
|
|
13
14
|
|
|
14
15
|
get '/forms/checkbox_form', to: 'forms#checkbox_form'
|
|
15
16
|
get '/forms/disabled_elements', to: 'forms#disabled_elements'
|
|
@@ -315,6 +315,23 @@ Feature: Test Spreewald's email steps
|
|
|
315
315
|
'''
|
|
316
316
|
"""
|
|
317
317
|
|
|
318
|
+
When I clear my emails
|
|
319
|
+
And I go to "/emails/send_html_email_with_linebreaks"
|
|
320
|
+
|
|
321
|
+
Then the following multiline step should succeed:
|
|
322
|
+
"""
|
|
323
|
+
Then an email should have been sent with:
|
|
324
|
+
'''
|
|
325
|
+
From: from@example.com
|
|
326
|
+
Reply-To: reply-to@example.com
|
|
327
|
+
To: to@example.com
|
|
328
|
+
Subject: SUBJECT
|
|
329
|
+
|
|
330
|
+
Hello!
|
|
331
|
+
Bye!
|
|
332
|
+
'''
|
|
333
|
+
"""
|
|
334
|
+
|
|
318
335
|
Scenario: /^I follow the (first|second|third)? ?link in the e?mail$/ (HTML e-mail body)
|
|
319
336
|
When I go to "/emails/send_html_email_with_links"
|
|
320
337
|
And I follow the first link in the email
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spreewald
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.99.
|
|
4
|
+
version: 2.99.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tobias Kraze
|
|
@@ -350,6 +350,7 @@ files:
|
|
|
350
350
|
- tests/shared/app/views/mailer/email.text.erb
|
|
351
351
|
- tests/shared/app/views/mailer/email_crlf.text.erb
|
|
352
352
|
- tests/shared/app/views/mailer/email_with_umlauts.text.erb
|
|
353
|
+
- tests/shared/app/views/mailer/html_email_with_linebreaks.html
|
|
353
354
|
- tests/shared/app/views/mailer/html_email_with_links.haml
|
|
354
355
|
- tests/shared/app/views/mailer/text_email_with_links.text.erb
|
|
355
356
|
- tests/shared/app/views/spreewald_mailer
|
|
@@ -583,6 +584,7 @@ test_files:
|
|
|
583
584
|
- tests/shared/app/views/mailer/email.text.erb
|
|
584
585
|
- tests/shared/app/views/mailer/email_crlf.text.erb
|
|
585
586
|
- tests/shared/app/views/mailer/email_with_umlauts.text.erb
|
|
587
|
+
- tests/shared/app/views/mailer/html_email_with_linebreaks.html
|
|
586
588
|
- tests/shared/app/views/mailer/html_email_with_links.haml
|
|
587
589
|
- tests/shared/app/views/mailer/text_email_with_links.text.erb
|
|
588
590
|
- tests/shared/app/views/spreewald_mailer
|