spreewald 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ end
|
|
60
60
|
When /^I follow the (first|second|third)? ?link in the e?mail$/ do |index_in_words|
|
61
61
|
mail = @mail || ActionMailer::Base.deliveries.last
|
62
62
|
index = { nil => 0, 'first' => 0, 'second' => 1, 'third' => 2 }[index_in_words]
|
63
|
-
url_pattern = %r{(?:http|https)://[^/]+([^"']*)}
|
63
|
+
url_pattern = %r{(?:http|https)://[^/]+([^"'\s]*)}
|
64
64
|
mail_body = MailFinder.email_text_body(mail).to_s
|
65
65
|
only_path = mail_body.scan(url_pattern)[index][0]
|
66
66
|
visit only_path
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Kraze
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-08-
|
18
|
+
date: 2013-08-28 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|