ubbparser 0.0.7 → 0.0.8
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/lib/ubbparser.rb +2 -3
- metadata +2 -2
data/lib/ubbparser.rb
CHANGED
@@ -156,7 +156,6 @@ module UBBParser
|
|
156
156
|
items = inner_text.split(/\n/)
|
157
157
|
items.delete_if { | item | item.strip == "" }
|
158
158
|
items.map! { | item | "<li>" + self.parse(item, parse_options) + "</li>" }
|
159
|
-
return (items.empty?) ? "" : "<ul class='#{parse_options[:class_bullets].to_s.strip}'>" + items.join("") + "</ul>"
|
160
159
|
end
|
161
160
|
|
162
161
|
# Centers the inner_text.
|
@@ -345,7 +344,7 @@ module UBBParser
|
|
345
344
|
items = inner_text.split(/\n/)
|
346
345
|
items.delete_if { | item | item.strip == "" }
|
347
346
|
items.map! { | item | "<li>" + self.parse(item, parse_options) + "</li>" }
|
348
|
-
return (items.empty?) ? "" : "<
|
347
|
+
return (items.empty?) ? "" : "<ol class='#{parse_options[:class_list].to_s.strip}'>" + items.join("") + "</ol>"
|
349
348
|
end
|
350
349
|
|
351
350
|
# Renders the inner_text as a paragraph. Use the :class_p parse option to define html classes.
|
@@ -456,7 +455,7 @@ module UBBParser
|
|
456
455
|
# :category: Render methods
|
457
456
|
def self.render_zideo(inner_text, attributes = {}, parse_options = {})
|
458
457
|
attributes[:width] ||= 480
|
459
|
-
attributes[:height] ||=
|
458
|
+
attributes[:height] ||= auto
|
460
459
|
attributes[:class] += " " + parse_options[:class_zideo]
|
461
460
|
attributes[:skip_class] = true
|
462
461
|
videoid = !inner_text.match(/^\w+$/).nil? ? inner_text : (inner_text.scan(/playzideo\/(\w+)/).to_a)[1].to_s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ubbparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
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: 2013-
|
12
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A simple and flexibel ubb parser.
|
15
15
|
email: info@osingasoftware.nl
|