blocks 2.6.0 → 2.6.3
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/CHANGELOG.rdoc +7 -0
- data/VERSION +1 -1
- data/blocks.gemspec +1 -1
- data/lib/blocks/base.rb +8 -8
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
2.6.1 (November 4, 2013)
|
2
|
+
* Made content_tag_with_block a public method in Blocks::Base so that it can be used in table-for gem.
|
3
|
+
|
4
|
+
2.6.0 (November 4, 2013)
|
5
|
+
* Internally changed how configuration works (externally, it should feel the same, with the exception of the fact that templates_folder was changed to partials_folder... this will likely change again in the coming days)
|
6
|
+
* Started cleaning up and rewriting some of the tests
|
7
|
+
|
1
8
|
2.5.1 (October 17, 2013)
|
2
9
|
* Changed Blocks.wrap_with_surrounds_before_and_after_blocks to Blocks.wrap_before_and_after_blocks
|
3
10
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.
|
1
|
+
2.6.3
|
data/blocks.gemspec
CHANGED
data/lib/blocks/base.rb
CHANGED
@@ -404,6 +404,14 @@ module Blocks
|
|
404
404
|
nil
|
405
405
|
end
|
406
406
|
|
407
|
+
def content_tag_with_block(tag, tag_html, *args, &block)
|
408
|
+
if tag
|
409
|
+
view.content_tag(tag, view.capture(&block), call_each_hash_value_with_params(tag_html, *args))
|
410
|
+
else
|
411
|
+
view.capture(&block)
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
407
415
|
protected
|
408
416
|
|
409
417
|
def initialize(view, options={})
|
@@ -552,13 +560,5 @@ module Blocks
|
|
552
560
|
blocks[block_container.name] = block_container if blocks[block_container.name].nil? && block_given?
|
553
561
|
block_container
|
554
562
|
end
|
555
|
-
|
556
|
-
def content_tag_with_block(tag, tag_html, *args, &block)
|
557
|
-
if tag
|
558
|
-
view.content_tag(tag, view.capture(&block), call_each_hash_value_with_params(tag_html, *args))
|
559
|
-
else
|
560
|
-
view.capture(&block)
|
561
|
-
end
|
562
|
-
end
|
563
563
|
end
|
564
564
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
segments:
|
152
152
|
- 0
|
153
|
-
hash:
|
153
|
+
hash: 4219206689856184029
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
155
|
none: false
|
156
156
|
requirements:
|