maxemail_api 2.0.8 → 2.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f19c87348dbe9c80cb5c91fb2778c8119d8292a59dd12afd6c57e908cdc15901
4
- data.tar.gz: de7abb4b8d1ddeecf2f55b8cbcb96b0d91a8b1c280132f9fbc3ff6a66ee38cc5
3
+ metadata.gz: 7941f7ff173d55a6965aaa901bcfa13e59eacd279c4acedd60549d5a4f890e4a
4
+ data.tar.gz: 016e369eb54cbb3cc8d4b543507ad46ec1655692c6e68005e415cd8741ff6737
5
5
  SHA512:
6
- metadata.gz: 7be4009b3d9e5e01e9e99ed0e2ee9ed796a32dcdb3925641697c98f86f458272b72e2033a5e9950da7ba9bce20e521e4b7f9d3100fabc3d368a623d9998b1045
7
- data.tar.gz: facc02714d7d10c1f681aab87f2aff7ca463f6d9eb9900a0d33384e36eec3ab6919d0c49ea0cbac39d8426ea000bb776bd063b397b643ec05891e7d8663924b5
6
+ metadata.gz: d5e0b8513e789c20d2d626ced63a0dbf1b8cd66a3dadb7cb17cf3bba26bb65d3571ee65cf51bdc047cbc4d4f3fa6b2583b2c65a0073d95690721f6b3d7cbdb57
7
+ data.tar.gz: c97dc5ab678d1cbd7536df882cf96a89f233c53cad82379d480da6c01d53b9e007941257cd42dae5b5caf5d595875c7035db59d836a89e437834bb6d25f7d7ac
@@ -81,8 +81,7 @@ module MaxemailApiTriggered
81
81
  end
82
82
 
83
83
  def valid_email?(email_address)
84
- valid = '[A-Za-z\d.+-]+'
85
- (email_address =~ /#{valid}@#{valid}\.#{valid}/).zero?
84
+ email_address.match(URI::MailTo::EMAIL_REGEXP).present?
86
85
  rescue StandardError
87
86
  false
88
87
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxemail_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Murray Catto