cucumber-mailcatcher 0.7 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cucumber/mailcatcher/http_client.rb +3 -1
- data/lib/cucumber/mailcatcher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2b61bc92a239d119071b3bc29c7cd2a8f8d9c82
|
4
|
+
data.tar.gz: 0fb4aa0bc30d90e88c79485a76199bd525068c99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6499715c327435a3f054779c8c25ac75bcd1ec77b95d9e3a5b763409136cd95717c019cf51f41be6ec51d7a926378baa67a325bbe969ea2d9390cf71b0a4fad
|
7
|
+
data.tar.gz: 5dd2f706248129ab5e3c68ac825908a621745b14e7167c1d5ffd3bc96128184de79d2ad22e89c6d9d6d80e1cd73e2f63ab60bc55880b0809b1495c23e836b760
|
@@ -17,7 +17,9 @@ module Cucumber
|
|
17
17
|
|
18
18
|
def initialize
|
19
19
|
error = "Please set the Mailcatcher server url e.g. Cucumber::Mailcatcher::Api.server_url = 'http://localhost:1080'"
|
20
|
-
|
20
|
+
begin
|
21
|
+
valid = @@server_url =~ /\A#{URI.regexp(%w(http https))}\z/
|
22
|
+
end
|
21
23
|
|
22
24
|
raise error unless valid
|
23
25
|
end
|