ruboty-sendmail 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/handlers/sendmail.rb +5 -2
- data/lib/ruboty/sendmail/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: 0f747cfcdb3e345c63b7ff8689394c24b8d827f7
|
4
|
+
data.tar.gz: 7a7fdc655250253b15bd32d6998dad3bd7ba3f33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00ecb208cb8bb523d9878cab9bf5e831e103f9e66204cd1c2dfb62914321ccbe1d5fd02b8b9e6883a666e63eda83ffc710bc1046b2eb56f07d915876653e33c9
|
7
|
+
data.tar.gz: 43a854f92cc0e2acb3a427e36f4dbe476c02d39392f18d72b7b75223b22fca49742a10f3596e9c3f5057f9db19b380b9970e85802cd8010a75f63872bc1f4d33
|
@@ -48,8 +48,11 @@ module Ruboty
|
|
48
48
|
private
|
49
49
|
|
50
50
|
def trim_address(string)
|
51
|
-
match_data = string.match(/(?<address
|
52
|
-
|
51
|
+
if match_data = string.match(/(?<address>[a-zA-Z0-9]+[\w\.-]*@[a-zA-Z0-9]+[\w\.-]+)/)
|
52
|
+
match_data[:address]
|
53
|
+
else
|
54
|
+
nil
|
55
|
+
end
|
53
56
|
end
|
54
57
|
|
55
58
|
def symbolize_keys(hash)
|