bbcode-rails 0.8.0 → 0.8.1

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: 6e3a03c9829b29ae970341a6869350c6d81a63e6
4
- data.tar.gz: 1075e5565218f39b55b224764911b19b419f30da
3
+ metadata.gz: 61e780627ba8f115e444b25e619ef2a6171f17c8
4
+ data.tar.gz: bf9f249930246a6833f0dad50df793c89a0a4868
5
5
  SHA512:
6
- metadata.gz: 0a8313ca29126829b91a2338647b00adf318223ef4de44f7649dba819198070b5045ec211cf977094aa8024da3bf2b1bbfe66c24ae4dbcf1e28ad8d9a4cdfcde
7
- data.tar.gz: f5cc8b2ae3c5dcc509c8275599b8d4c1a366c7b6a476773f300492fd1137a7860801b43e0d43ebb172ac5cf2d4138d9b48335ec660bece20045cef174f6ccdc7
6
+ metadata.gz: 4a012a1a33a55487d615ce18a1c638a493f7097d3be34827ede12f255b0b2113403d85cf27caa8eee108e6ebde8f090d4d030704e469c3cecd034579f8182113
7
+ data.tar.gz: 09c52a20b460d55e1c76247b5b71aa2a01243d0433b2ebc87f111e7cb0a4fc7ba83b56f442bb8e2d4c2a07bfef967f85a83fbdefc2d34871e5fbf30c6cdef86e
data/lib/bbcode-rails.rb CHANGED
@@ -12,7 +12,7 @@ module BBCode
12
12
  def self.get_tag_by_name name
13
13
  if defined?(Rails) && Rails.env.development?
14
14
  begin
15
- "#{p}_tag".camelize.constantize
15
+ "#{name}_tag".camelize.constantize
16
16
  rescue NameError
17
17
  end
18
18
  end
@@ -167,8 +167,8 @@ module BBCode
167
167
  end
168
168
 
169
169
  class String
170
- def bbcode_to_html
171
- BBCode.parse(self)
170
+ def bbcode_to_html raise_error = false
171
+ BBCode.parse(self, raise_error)
172
172
  end
173
173
  end
174
174
 
@@ -1,3 +1,3 @@
1
1
  module BBCode
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbcode-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Müller