ruboty-sendmail 0.0.3 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d617e331904ddb0e665f8cd3d764d9f80f2cda59
4
- data.tar.gz: f493fec59ed57eb8f417b95491a40cbff70a2360
3
+ metadata.gz: 0f747cfcdb3e345c63b7ff8689394c24b8d827f7
4
+ data.tar.gz: 7a7fdc655250253b15bd32d6998dad3bd7ba3f33
5
5
  SHA512:
6
- metadata.gz: fd688b46cec8645d905c77d63ceedf593a424189ed5133f497dfe5e4aec67a4031157ebacc138ff9b4081f6f7b593ef321857611d84d4a25ea05568091823e57
7
- data.tar.gz: 1cfe5fbcd6760cadff99139cf2c80ac521cc1a17a24a2d6321221ed8a973b6ef9f6045f85eac6e1073d0d7a58df350a8d1b6e3e6b66a35b99f0d3b348bf1e12b
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>\w+[\w\.-]*@\w+[\w\.-]+)/)
52
- match_data[:address]
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)
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Sendmail
3
- VERSION = '0.0.3'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-sendmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaihar4