my_forum 0.0.1.beta30 → 0.0.1.beta31
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89a49dfc22a2a7a7fa487b91cecae40cdf307fc8
|
4
|
+
data.tar.gz: 5abd3ac661e60d046afa0a178884fcc7a96084ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 486084d8c05cd56ebda75b96a95830c13d51fc9e35659a7abac7c0fa08eb02d2bd5e5f9183bdedd777db9209f30100553bbebc414f11782f28ba8394def8dd8e
|
7
|
+
data.tar.gz: 6c4e438155220a21d763fbe9d5f5405fe7c697ba8bd7e819e69152ddf2cbb34b88c986e504d085281df3fe50475a501f083ca11aaa62098798f9fa5407f43232
|
@@ -41,6 +41,10 @@ module MyForum
|
|
41
41
|
#text.gsub!(/\[quote author=(.*?) link=(.*?) date=(.*?)\]/i) { bbquote(author: $1, date: $3) }
|
42
42
|
#text.gsub!(/\[\/quote\]/i, '</div>')
|
43
43
|
#text.gsub!(/\[quote(.*)\]/i, "<div class='bbqoute'>")
|
44
|
+
text.gsub!(/\[quote author=(?<autor>.*)\](?<text>.*)\[\/quote\]/m) do |match|
|
45
|
+
"<div class='bbqoute'> <div class='quote_info'>#{$~[:autor]} #{t('my_forum.bbquote.wrote')}:</div> #{$~[:text]} </div>"
|
46
|
+
end
|
47
|
+
|
44
48
|
text.gsub!(/(?<open>\[quote author=(?<autor>(.*?)) (.+)\](?<text>(.+))(?<close>\[\/quote\]))/i) do |match|
|
45
49
|
# "<div class='bbqoute'> <div class='quote_info'>#{$~[:autor]} #{t('my_forum.bbquote.wrote')} #{Time.now}:</div> #{$~[:text]} </div>"
|
46
50
|
"<div class='bbqoute'> <div class='quote_info'>#{$~[:autor]} #{t('my_forum.bbquote.wrote')}:</div> #{$~[:text]} </div>"
|
data/lib/my_forum/version.rb
CHANGED