my_forum 0.0.1.beta58 → 0.0.1.beta59
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/my_forum/posts_helper.rb +3 -2
- data/lib/my_forum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33cb921ec39477353de8563a342d5fafeb5d0327
|
4
|
+
data.tar.gz: 97e8d02057ad1bc47ad474640d6ce54544defa89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c0cba0f3e36cee68fa2570261d99c1aa6ebc618b0312d31562e0dad6e2e2741c690449621e1ff38ded96732feb1c8e71aad91c1f7d12186e35e0d74290345f7
|
7
|
+
data.tar.gz: ffd958912bb2bc66f0422d8c813c5c87b95ced6a727938c1020d32e40e7e5414f0cb7bc376348ac52f2cb56ff99f0e1320c22bcb2dd007d2a00d3e590fc2b09a
|
@@ -57,8 +57,9 @@ module MyForum
|
|
57
57
|
end
|
58
58
|
|
59
59
|
# Link
|
60
|
-
|
61
|
-
text.gsub!(
|
60
|
+
# ActionController::Base.helpers.... - this method uses in controller, which don`t know link_to
|
61
|
+
text.gsub!(/\[url=(.*?)\](.*?)\[\/url\]/i) { ActionController::Base.helpers.link_to($2, $1, target: '_blank') }
|
62
|
+
text.gsub!(/(http:\/\/[\S]+|www:\/\/[\S]+)/i) { ActionController::Base.helpers.link_to($1, $1, target: '_blank') }
|
62
63
|
|
63
64
|
text.html_safe
|
64
65
|
end
|
data/lib/my_forum/version.rb
CHANGED