rfc822 0.1.2 → 0.1.4
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.
- data/README.rdoc +9 -1
- data/Rakefile +1 -1
- data/lib/rfc822.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -61,7 +61,7 @@ Then you can install the gem as follows:
|
|
61
61
|
|
62
62
|
Add to your Gemfile:
|
63
63
|
|
64
|
-
gem "rfc822"
|
64
|
+
gem "rfc822"
|
65
65
|
|
66
66
|
and then type:
|
67
67
|
|
@@ -74,6 +74,14 @@ You can either clone the git repository or download a tarball or zip file.
|
|
74
74
|
Once you have the source, you can unpack it and use from wherever you downloaded.
|
75
75
|
|
76
76
|
= ChangeLog
|
77
|
+
=== 0.1.4
|
78
|
+
|
79
|
+
* Fixed regression introduced in 0.1.3 that caused EMAIL_REGEXP_WHOLE to stop working properly.
|
80
|
+
|
81
|
+
=== 0.1.3 (yanked)
|
82
|
+
|
83
|
+
* [security] Updated regular expressions to use \A and \z instead of ^ and $ operators.
|
84
|
+
|
77
85
|
=== 0.1.2
|
78
86
|
|
79
87
|
* Updated license
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'jeweler'
|
4
4
|
Jeweler::Tasks.new do |s|
|
5
5
|
s.name = "rfc822"
|
6
|
-
s.version = '0.1.
|
6
|
+
s.version = '0.1.4'
|
7
7
|
s.authors = ["Marcin Lewandowski"]
|
8
8
|
s.email = ["marcin@saepia.net"]
|
9
9
|
s.summary = %q{This is a simple gem for Ruby that simplifies validating email addresses.}
|
data/lib/rfc822.rb
CHANGED
@@ -13,7 +13,7 @@ module RFC822
|
|
13
13
|
LOCAL_PART = "#{WORD}(?:\\x2e#{WORD})*"
|
14
14
|
ADDR_SPEC = "#{LOCAL_PART}\\x40#{DOMAIN}"
|
15
15
|
|
16
|
-
EMAIL_REGEXP_WHOLE = Regexp.new("
|
16
|
+
EMAIL_REGEXP_WHOLE = Regexp.new("\\A#{ADDR_SPEC}\\z", nil, 'n')
|
17
17
|
EMAIL_REGEXP_PART = Regexp.new("#{ADDR_SPEC}", nil, 'n')
|
18
18
|
end
|
19
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rfc822
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: This is a simple gem for Ruby that simplifies validating email addresses.
|
15
15
|
It provides clean methods like String#is_email? and provides you valid RFC2822 regexp
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
46
|
version: '0'
|
47
47
|
requirements: []
|
48
48
|
rubyforge_project:
|
49
|
-
rubygems_version: 1.8.
|
49
|
+
rubygems_version: 1.8.25
|
50
50
|
signing_key:
|
51
51
|
specification_version: 3
|
52
52
|
summary: This is a simple gem for Ruby that simplifies validating email addresses.
|