ruby-bbcode-to-md 0.0.13 → 0.0.14

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.
@@ -80,18 +80,20 @@ module RubyBBCode
80
80
  end
81
81
 
82
82
  def inlay_inline_params!
83
- # Get list of paramaters to feed
84
- match_array = @node[:params][:tag_param].scan(@tag_definition[:tag_param])[0]
85
-
86
- # for each parameter to feed
87
- match_array.each.with_index do |match, i|
88
- if i < @tag_definition[:tag_param_tokens].length
89
-
90
- # Substitute the %param% keyword for the appropriate data specified
91
- @opening_html.gsub!("%#{@tag_definition[:tag_param_tokens][i][:token].to_s}%",
92
- @tag_definition[:tag_param_tokens][i][:prefix].to_s +
93
- match +
94
- @tag_definition[:tag_param_tokens][i][:postfix].to_s)
83
+ if !match_array.nil?
84
+ # Get list of paramaters to feed
85
+ match_array = @node[:params][:tag_param].scan(@tag_definition[:tag_param])[0]
86
+
87
+ # for each parameter to feed
88
+ match_array.each.with_index do |match, i|
89
+ if i < @tag_definition[:tag_param_tokens].length
90
+
91
+ # Substitute the %param% keyword for the appropriate data specified
92
+ @opening_html.gsub!("%#{@tag_definition[:tag_param_tokens][i][:token].to_s}%",
93
+ @tag_definition[:tag_param_tokens][i][:prefix].to_s +
94
+ match +
95
+ @tag_definition[:tag_param_tokens][i][:postfix].to_s)
96
+ end
95
97
  end
96
98
  end
97
99
  end
@@ -1,3 +1,3 @@
1
1
  module RubyBbcode
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-bbcode-to-md
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -108,7 +108,7 @@ rubyforge_project:
108
108
  rubygems_version: 1.8.23
109
109
  signing_key:
110
110
  specification_version: 3
111
- summary: ruby-bbcode-to-md-0.0.13
111
+ summary: ruby-bbcode-to-md-0.0.14
112
112
  test_files:
113
113
  - test/ruby_bbcode_test.rb
114
114
  - test/test_helper.rb