email_address 0.1.19 → 0.1.20

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
  SHA256:
3
- metadata.gz: adfafdd9c68cbc88c13f77175ab945fce253b0c67d93cbf92f27d95358d9286d
4
- data.tar.gz: 07ea20d4fddbc9a2626a870b40162fe5ecaedfd7f588ba56f8d9efffce9a4eac
3
+ metadata.gz: 89deebff7a17e3e90d1bfc92f8f22e1ab489d8c284c5d8070503e12b44345a72
4
+ data.tar.gz: 558ae5a8cff2abd326b1f6dddf6e6c01b4ef91bd0a94a55c44dea817696e4b31
5
5
  SHA512:
6
- metadata.gz: 45005aaae90329115140e038aa9f17325d66a939de376a2efc0fdda6542a1b47850ae40b80503fd69e1308f3cfe2fb5392904d2ca5ba0f997b00b6712e01ccb9
7
- data.tar.gz: e69900c156e676aac54f5f2d3ca395f08f08d07f768913df990d8b3c012e12e5cda678145f1dcdb0d141691ebf93d2beb85ba3b8dd654522fbb121962529585c
6
+ metadata.gz: 25850ded8a4ecb0ecb093e0f4583ee657fa134f93e976a2a44af829ab755487be9dd181fb15512af9e041854619dfa4c9cb8b0c009462cd6a7111d35808678ab
7
+ data.tar.gz: 26562889a56d1ddf32812c5f98948238672ba201072797db16e63b7f52ef03e022fe8b73a06096702a1f2a68905873f31420b17a457466da0e550f9cc3a168a0
@@ -102,9 +102,9 @@ module EmailAddress
102
102
  REDACTED_REGEX = /\A \{ [0-9a-f]{40} \} \z/x # {sha1}
103
103
 
104
104
  CONVENTIONAL_TAG_REGEX = # AZaz09_!'+-/=
105
- %r/^([\w\!\'\+\-\/\=]+)$/i.freeze
105
+ %r/^([\w\!\'\+\-\/\=\.]+)$/i.freeze
106
106
  RELAXED_TAG_REGEX = # AZaz09_!#$%&'*+-/=?^`{|}~
107
- %r/^([\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+)$/i.freeze
107
+ %r/^([\w\.\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+)$/i.freeze
108
108
 
109
109
  def initialize(local, config={}, host=nil)
110
110
  @config = config.is_a?(Hash) ? Config.new(config) : config
@@ -1,3 +1,3 @@
1
1
  module EmailAddress
2
- VERSION = "0.1.19"
2
+ VERSION = "0.1.20"
3
3
  end
@@ -105,4 +105,8 @@ class TestLocal < MiniTest::Test
105
105
  assert EmailAddress.valid?("username_____@gmail.com")
106
106
  end
107
107
 
108
+ def test_tag_punctuation
109
+ assert EmailAddress.valid?("first.last+foo.bar@gmail.com")
110
+ end
111
+
108
112
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_address
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Fair
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-21 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake