bbcode-rails 0.8.1 → 0.8.2

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: 61e780627ba8f115e444b25e619ef2a6171f17c8
4
- data.tar.gz: bf9f249930246a6833f0dad50df793c89a0a4868
3
+ metadata.gz: 109c94d320f0111ad525b254f3e99cd37fc7bf0a
4
+ data.tar.gz: ac7b790975f2600fb5aca83a3a9d156e141c5e04
5
5
  SHA512:
6
- metadata.gz: 4a012a1a33a55487d615ce18a1c638a493f7097d3be34827ede12f255b0b2113403d85cf27caa8eee108e6ebde8f090d4d030704e469c3cecd034579f8182113
7
- data.tar.gz: 09c52a20b460d55e1c76247b5b71aa2a01243d0433b2ebc87f111e7cb0a4fc7ba83b56f442bb8e2d4c2a07bfef967f85a83fbdefc2d34871e5fbf30c6cdef86e
6
+ metadata.gz: 13deaddccdc0de9f4a56b9343be41840e66c1615b2a0077a689c87d3ac4aa9431df3ac8c43e792118ce5dcd7e669326fee72c851fb12055f83fed10084210a90
7
+ data.tar.gz: 7cfd4b55921031d91b79c292d77a1fd21d0fbf8a78bbf45bd6e4d5e4ba6aab42c2b30b5ad6d2447da7ad0c9fea2770d4d4cf0527b141a12448afecdf3cc11452
@@ -6,6 +6,7 @@ else
6
6
  end
7
7
  end
8
8
 
9
+
9
10
  class BBCode::Tag
10
11
  if defined?(Rails)
11
12
  include AbstractController::Rendering
@@ -54,13 +55,13 @@ class BBCode::Tag
54
55
  result = @content.map(&:to_s).join('')
55
56
  end
56
57
  if has_option(:content) and has_option(:argument)
57
- get_block.call(@argument, result)
58
+ self.instance_exec(@argument, result, &get_block)
58
59
  elsif has_option :content
59
- get_block.call(result)
60
+ self.instance_exec(result, &get_block)
60
61
  elsif has_option :argument
61
- get_block.call(@argument)
62
+ self.instance_exec(@argument, &get_block)
62
63
  else
63
- get_block.call
64
+ self.instance_exec(&get_block)
64
65
  end
65
66
  end
66
67
 
@@ -1,3 +1,3 @@
1
1
  module BBCode
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
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.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Müller