rails-multi_block_helpers 0.0.2 → 0.0.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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTU1ZTVhOTA4YzQwMjI2OGJjNmVlOWJlYzRlY2I0MWU1ZDA4MTZmZg==
5
- data.tar.gz: !binary |-
6
- ZGMyNzdjZDg0NmNjMjUyZjcyNjY5NjZkMmEwODdiMWY0MGU4ZTI1MA==
2
+ SHA1:
3
+ metadata.gz: 6edc6b3ce3ed6f7c17ce286acef5b1cd3e42a39c
4
+ data.tar.gz: 0cd8966da752cc6dd0b21e92da80edda68647b94
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YWFmNzliOTYwNTdiYmQxYmY0ZmYzYzhjNDA1NzEyNDIyMGRlOGM4MzU4Y2Vk
10
- OTllMWQwOTk3ZmRlMzU4NDY3ZTljNTAyMzM1ZWRmMjUwYjQ5NjY5ZDlkYmYw
11
- ZjI1OTk5NDkwZDM3NDFiN2I3OWM4Y2JjOTA1NTUwNDc3YmFlNzE=
12
- data.tar.gz: !binary |-
13
- Zjk5NzAzZDc5M2U0ZGI4MDcyYmI0NDhjYjEyMjUzOTg3NTc4NDU0ZjkzN2Rm
14
- NmJiZTg5ZjJjNTkwOTRhNzc5ZTk0ZDlkYzRjOGFiM2I4NDY1NmJhNjAwYWFk
15
- ZDkyNWY4Y2Y0NmQ3NzJkYzlmMDhmZTM4MGEwMzIwYzk5NDU5MTQ=
6
+ metadata.gz: 7da2f1efd9e3de9bffcaf7ab095439237f184fe6ce8fe56971e05859401dabab9505fbcd8edbe0059c74b56e60e5027b2a8be615ee49db5dcc55efea1cf602d1
7
+ data.tar.gz: ef16d533274df5b3a3880aaa3da2a8069b82ef981c77ca5657808dad0503accb6985ebded497d123c7eab9b07ebd92a5280b5165674c0dfb113491d9a3ffd44b
@@ -9,10 +9,15 @@ module Rails
9
9
 
10
10
  def capture_section(section, *args)
11
11
  value = nil
12
- buffer = with_output_buffer { value = yield it_to(section) }
13
- if string = buffer.presence || value and string.is_a?(String)
14
- ERB::Util.html_escape string
12
+ result = begin
13
+ buffer = with_output_buffer { value = yield it_to(section) }
14
+ if string = buffer.presence || value and string.is_a?(String)
15
+ string
16
+ end
17
+ rescue NoMethodError
18
+ ''
15
19
  end
20
+ result.html_safe
16
21
  end
17
22
  end
18
23
  end
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module MultiBlockHelpers
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-multi_block_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - stevo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-20 00:00:00.000000000 Z
11
+ date: 2014-07-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Gem allows defining helpers that accept multiple blocks
14
14
  email:
@@ -31,17 +31,17 @@ require_paths:
31
31
  - lib
32
32
  required_ruby_version: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ! '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
- rubyforge_project: ! '[none]'
44
- rubygems_version: 2.1.10
43
+ rubyforge_project: "[none]"
44
+ rubygems_version: 2.2.2
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: Gem allows defining helpers that accept multiple blocks