ubbparser 0.1.4 → 0.1.5

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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/ubbparser.rb +6 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjIzZDRkMzFhMTE1YzdjN2EzMzhhZjYwMzBkNDQzZWFjNGQ3OGU1Zg==
4
+ ZjdmNWE2MDQwZjNlM2M0ZTFkZjgxZjIxMTZlNGFiMTY5NDg3NDYyMQ==
5
5
  data.tar.gz: !binary |-
6
- NmIyNzE0ZTA1NWZiNzliOTE2YWQ1ODQ3Zjk0ODI0OWIzZTRjM2Y2NQ==
6
+ MTFhZGIyOTU5ZDlmYjU2ZGE5ZGVmMTI0OWMzNzBjZTNiNjViMWIxMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjVjNWZlMDM1YTczMGE5ZWNmMGY2M2RiN2Y4ZTFlZDk0YjU3YTliMzZiNThk
10
- ZjRhYTdkNzQyNzc2ZTgxNDE3YWYyMjg4M2JlZGQ2MzRkZDMyMmUyNjQyZWJk
11
- MTZkYzY5NWQ1Y2Y1YzE2YzY2OTAyNDI5YWI1ZjYxNjIyZWIzNzU=
9
+ YmMzNjQyMzg1NzE4ODE1MWIzMjRjNWU2OWQwMjBmMjIwYmFhOGUxNWViMzdi
10
+ ODg2YjBhMTYxMTc0YzJiMDQyNGI0YjhkNmZjMjExNTFmNjc2YTYzNjJmNWI5
11
+ ZTczMzUyOGQ5YzQ3ZTM3YzlhNDljODhmODQwNjA4ZWEyZTAxZjU=
12
12
  data.tar.gz: !binary |-
13
- ZjdmOTA2NzA5Y2MwM2MzNzk0MjJmMjI3Y2YzODJkN2I4Yjc3YmI4YTI3NTI3
14
- YzY2NmNmZTI1MDM5NDRkNzMwZmI1Y2ZkZTk2MzQ2MmQ4ODZlMjUyYzRhOGU0
15
- ZDhjMDJlYTRlODQ5OWE1MzNmNzE0NzVmZDc3ZGI3MTY4YTFlODM=
13
+ OTY2NzBlNjQwN2I1ZTMzZTQ1OGMzYjc1MGNjOGFjZWNhNDg3YmMyZDQzYzQ1
14
+ YmYwMzJjNTdlODk1ODk1NDNhNzRmZWE2NTQ3NDBkZDA3NGYxMzU2MGQ3NDFm
15
+ NDI3NTU1YmNlM2VkYjg2YTIzNmU5NjNhZGY2YzQ5YzNiNTllZjY=
data/lib/ubbparser.rb CHANGED
@@ -180,7 +180,7 @@ module UBBParser
180
180
  # Assures the inner_text is rendered below floating elements.
181
181
  # :category: Render methods
182
182
  def self.render_class(inner_text, attributes = {}, parse_options = {})
183
- classes = attributes[:original_attrib_str].gsub(/'/, "\\'")
183
+ classes = attributes[:class_attrib_str].to_s.gsub(/'/, "\\'")
184
184
  "<div class='#{classes}'>#{self.parse(inner_text, parse_options)}</div>"
185
185
  end
186
186
 
@@ -294,19 +294,19 @@ module UBBParser
294
294
 
295
295
  # Renders the inner_text in a H4 heading.
296
296
  # :category: Render methods
297
- def self.render_h3(inner_text, attributes = {}, parse_options = {})
297
+ def self.render_h4(inner_text, attributes = {}, parse_options = {})
298
298
  "<h4>#{self.parse(inner_text, parse_options)}</h4>"
299
299
  end
300
300
 
301
301
  # Renders the inner_text in a H5 heading.
302
302
  # :category: Render methods
303
- def self.render_h3(inner_text, attributes = {}, parse_options = {})
304
- "<h3>#{self.parse(inner_text, parse_options)}</h5>"
303
+ def self.render_h5(inner_text, attributes = {}, parse_options = {})
304
+ "<h5>#{self.parse(inner_text, parse_options)}</h5>"
305
305
  end
306
306
 
307
307
  # Renders the inner_text in a H6 heading.
308
308
  # :category: Render methods
309
- def self.render_h3(inner_text, attributes = {}, parse_options = {})
309
+ def self.render_h6(inner_text, attributes = {}, parse_options = {})
310
310
  "<h6>#{self.parse(inner_text, parse_options)}</h6>"
311
311
  end
312
312
 
@@ -408,7 +408,7 @@ module UBBParser
408
408
  # [style color: red; border: 1px solid green]...[/style]
409
409
  # :category: Render methods
410
410
  def self.render_style(inner_text, attributes = {}, parse_options = {})
411
- styles = attributes[:original_attrib_str].gsub(/'/, "\\'")
411
+ styles = attributes[:class_attrib_str].to_s.gsub(/'/, "\\'")
412
412
  "<div style='#{styles}'>#{self.parse(inner_text, parse_options)}</div>"
413
413
  end
414
414
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ubbparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taco Jan Osinga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-13 00:00:00.000000000 Z
11
+ date: 2014-02-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple and flexibel ubb parser.
14
14
  email: info@osingasoftware.nl