cells-erb 0.0.5 → 0.0.6
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 +4 -4
- data/CHANGES.md +4 -0
- data/lib/cell/erb/template.rb +6 -2
- data/lib/cell/erb/version.rb +1 -1
- data/test/dummy/app/cells/song/with_form_tag_and_content_tag.erb +1 -1
- data/test/erb_test.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71447b55d01719ad8654f41a4efa377848653c51
|
4
|
+
data.tar.gz: 15ca9881197f5ab748ae08c2e442477d95d697ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd53c5c1b61267d2f52e8dac11dac8fc24f74b16fedb5a1264735d0da64c6112300d6ae531c3c7a05400bae553322122e767ac27c3201e1779916b810644fe43
|
7
|
+
data.tar.gz: 4a1a0f42796af6165751ae7a1b11c58ee590f4a1f86a34bd601fc2444294b488b285d7a7e1aa24756860bb9b2f6afff8b350ae6849c75f73ec410936e759f499
|
data/CHANGES.md
CHANGED
data/lib/cell/erb/template.rb
CHANGED
@@ -15,8 +15,6 @@ module Cell
|
|
15
15
|
def template_options_for(options)
|
16
16
|
{
|
17
17
|
template_class: ::Cell::Erb::Template,
|
18
|
-
escape_html: false,
|
19
|
-
escape_attrs: false,
|
20
18
|
suffix: "erb"
|
21
19
|
}
|
22
20
|
end
|
@@ -45,6 +43,12 @@ module Cell
|
|
45
43
|
super
|
46
44
|
end
|
47
45
|
|
46
|
+
# We do statically set escape=true since attributes are double-quoted strings, so we have
|
47
|
+
# to escape (default in Rails).
|
48
|
+
def tag_options(options, escape = true)
|
49
|
+
super(options, true)
|
50
|
+
end
|
51
|
+
|
48
52
|
def form_tag_with_body(html_options, content)
|
49
53
|
"#{form_tag_html(html_options)}" << content.to_s << "</form>"
|
50
54
|
end
|
data/lib/cell/erb/version.rb
CHANGED
data/test/erb_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cells-erb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-06-
|
12
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cells
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.4.8
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Tilt binding for Erbse.
|