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.
@@ -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.0
1
+ 2.6.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "blocks"
8
- s.version = "2.6.0"
8
+ s.version = "2.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Hunter"]
@@ -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.0
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: -4078634663971351405
153
+ hash: 4219206689856184029
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  none: false
156
156
  requirements: