html_gen 0.0.8 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/html_gen.gemspec +2 -2
- data/lib/html_gen/text_ele.rb +1 -1
- data/spec/html_gen_spec.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb23eaf1beeeb5185218fa5ff1ece26dcc1fc113
|
4
|
+
data.tar.gz: 0a2a3bd1ec7ba41097cb7b81ffd2016da5f14876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e28483112aec14975e32e89a17ecd51f625a366786414962affe3f726006a120c858dd0ed429df8586282690607974c71a501db9e9692902e8df41458d4dd10
|
7
|
+
data.tar.gz: b8c4814a4f6849da9d5efad5305b86cc5a921160b529d06a6f6b5bdabebbc40cc057f4cca3056b69b4f3c3b317ee5f0934f3f7ca0fc8c03b070c257545cdfe1c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
data/html_gen.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: html_gen 0.0.
|
5
|
+
# stub: html_gen 0.0.10 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "html_gen"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.10"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/html_gen/text_ele.rb
CHANGED
data/spec/html_gen_spec.rb
CHANGED
@@ -62,4 +62,11 @@ describe "HtmlGen" do
|
|
62
62
|
div_ele = HtmlGen::Element.new(:div, str: "Test", data: {deep: {nested: {test: "value", test_underscoe: "test"}}})
|
63
63
|
div_ele.html(pretty: false).should eq "<div data-deep-nested-test=\"value\" data-deep-nested-test-underscoe=\"test\">Test</div>"
|
64
64
|
end
|
65
|
+
|
66
|
+
it "supports text elements" do
|
67
|
+
div_ele = HtmlGen::Element.new(:div)
|
68
|
+
div_ele.add_str "test"
|
69
|
+
|
70
|
+
div_ele.html.should eq "<div>\n\ttest\n</div>\n"
|
71
|
+
end
|
65
72
|
end
|