ruby_extensions 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
data/lib/m_string.rb
CHANGED
@@ -154,9 +154,15 @@ class String
|
|
154
154
|
if longword =~ textile_regex #if the longword is a textile link...ignore and recheck for the link text only
|
155
155
|
textile_link = textile_regex.match(longword)[0]
|
156
156
|
link_text = textile_regex.match(longword)[1]
|
157
|
-
|
157
|
+
|
158
|
+
if link_text[0].to_i == 34 #adds the double quote back if missing from above regex
|
159
|
+
longword = link_text
|
160
|
+
else
|
161
|
+
textile_link = "\"" + textile_link
|
162
|
+
longword = "\"" + link_text
|
163
|
+
end
|
164
|
+
|
158
165
|
if longword =~ long_regex #link text is long...allow break
|
159
|
-
textile_link = '"' + textile_link unless textile_link[0].to_i == 34 #adds the double quote back if missing from above regex
|
160
166
|
textile_link.scan(/.{1,#{every}}/).join("<wbr/>")
|
161
167
|
else
|
162
168
|
textile_link #the url is what triggered the match...so leave it alone
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markbates
|
@@ -22,7 +22,7 @@ autorequire:
|
|
22
22
|
bindir: bin
|
23
23
|
cert_chain: []
|
24
24
|
|
25
|
-
date: 2008-05-
|
25
|
+
date: 2008-05-20 00:00:00 -04:00
|
26
26
|
default_executable:
|
27
27
|
dependencies: []
|
28
28
|
|
@@ -50,7 +50,7 @@ files:
|
|
50
50
|
- lib/method_not_implemented.rb
|
51
51
|
- lib/ruby_extensions.rb
|
52
52
|
- lib/tasks/rubyforge_config.yml
|
53
|
-
- ruby_extensions-1.0.
|
53
|
+
- ruby_extensions-1.0.14.gem
|
54
54
|
has_rdoc: false
|
55
55
|
homepage:
|
56
56
|
post_install_message:
|