filters 1.1.0 → 1.1.1
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/History.rdoc +11 -0
- data/filters.gemspec +1 -1
- data/lib/filters/email.rb +1 -2
- data/lib/filters/version.rb +1 -1
- data/spec/filter_email_spec.rb +6 -0
- metadata +1 -1
data/History.rdoc
CHANGED
@@ -1,4 +1,15 @@
|
|
1
1
|
|
2
|
+
=== 1.1.1 / 2009-11-23
|
3
|
+
|
4
|
+
* Fix email addresses regex according to RFC
|
5
|
+
|
6
|
+
=== 1.1.0 / 2009-11-23
|
7
|
+
|
8
|
+
* Added bang! versions of all filters for mutative use
|
9
|
+
* Added autoloading of filters
|
10
|
+
* Changed; using ::URI.regexp for uri filter
|
11
|
+
* Fixed; all filters are non-mutative by default
|
12
|
+
|
2
13
|
=== 1.0.1 / 2009-10-23
|
3
14
|
|
4
15
|
* Fixed mini markup language headings
|
data/filters.gemspec
CHANGED
data/lib/filters/email.rb
CHANGED
data/lib/filters/version.rb
CHANGED
data/spec/filter_email_spec.rb
CHANGED
@@ -29,4 +29,10 @@ describe Filter::Email do
|
|
29
29
|
it "should return the string untouched when no emails are present" do
|
30
30
|
Filter::Email('foo bar').should == 'foo bar'
|
31
31
|
end
|
32
|
+
|
33
|
+
it "should accept valid email addresse" do
|
34
|
+
string = 'This is valid: hello.k+t-ty{!}@example.com (see rfc 3696)'
|
35
|
+
Filter::Email(string).
|
36
|
+
should == 'This is valid: <a href="mailto:hello.k+t-ty{!}@example.com">hello.k+t-ty{!}@example.com</a> (see rfc 3696)'
|
37
|
+
end
|
32
38
|
end
|