mail_address 1.2.10 → 1.2.11

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: c59f3af0de6a57910e691f12c2f5023077081f04
4
- data.tar.gz: 109a3c2434e09e90485263c03b30ffbc60a1a3b4
3
+ metadata.gz: d67fc9dcb029713e9f3ab3f7062f62caed4b326a
4
+ data.tar.gz: 41beda1941bba712ecfeb33e6a4563227dfdf0e7
5
5
  SHA512:
6
- metadata.gz: 90c04d523dad4c2a132c7f287c2fb26ee5d795241ca713a74e470b4dccc8eb7a65855f2d34c9ded4667c91e5fee340cd9d2175f6cf7575f0d6371330c71a3f5f
7
- data.tar.gz: 8ea6e8a1b9f06e818af3c613566df0e3ff8014384078a3871c46f8379900801cfbee9e28cb252de2ac56f53eba79538f3519b8a71fc6ba7f08055754a7dd704b
6
+ metadata.gz: a9ac723394f3a5ae59910286573190cf31048ef999e000e386abcf4d88338e33e2b2264449ba0babab2a7e7b8ce1d4894991376fe3cb789f64230f4a2aa2c5f2
7
+ data.tar.gz: 44d8258acc2f77c92bae134a19b315b762709e8763123acc63316f130bfc665d4811c4935ae381f25ba1c27b798f0e3aee13b03f09933913ed7d2b743d3559f6
@@ -65,8 +65,8 @@ module MailAddress
65
65
 
66
66
  def quoted_address
67
67
  if @address
68
- if self.user.include?('..') || self.user.end_with?('.')
69
- local_part = self.user.gsub(/(\A"|"\z)/, '')
68
+ local_part = self.user.gsub(/(\A"|"\z)/, '')
69
+ if local_part.include?('..') || local_part.end_with?('.')
70
70
  return "\"#{local_part}\"@#{self.host}"
71
71
  end
72
72
  end
@@ -1,3 +1,3 @@
1
1
  module MailAddress
2
- VERSION = "1.2.10"
2
+ VERSION = "1.2.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_address
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.10
4
+ version: 1.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kizashi Nagata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-02 00:00:00.000000000 Z
11
+ date: 2016-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler