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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ca7ca82d9a45a1dc1208d8635acfa91f4a3d950
4
- data.tar.gz: 16ffb22120f4dc9eae6e81f265bd27ecc00694c1
3
+ metadata.gz: cb23eaf1beeeb5185218fa5ff1ece26dcc1fc113
4
+ data.tar.gz: 0a2a3bd1ec7ba41097cb7b81ffd2016da5f14876
5
5
  SHA512:
6
- metadata.gz: 67e9f9a315d26e6c85c938e7ce6eba41855592c5c4b48d8d17b163bb6cbcf1eb6010974e32e1d1a35e458733e7d59e8418dd4b0c0e8bae88d3ef01411a618940
7
- data.tar.gz: 540ea4bb36340410039276fef5251c0edd83ba7ea545a8294655a0ae32cf344f6a9cbcccefc33575faea5c89c20bbb032e4b5b0a04971eff49a98839206fb134
6
+ metadata.gz: 7e28483112aec14975e32e89a17ecd51f625a366786414962affe3f726006a120c858dd0ed429df8586282690607974c71a501db9e9692902e8df41458d4dd10
7
+ data.tar.gz: b8c4814a4f6849da9d5efad5305b86cc5a921160b529d06a6f6b5bdabebbc40cc057f4cca3056b69b4f3c3b317ee5f0934f3f7ca0fc8c03b070c257545cdfe1c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.10
@@ -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.8 ruby lib
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.8"
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"]
@@ -26,7 +26,7 @@ private
26
26
  !args.key?(:pretty) || args[:pretty]
27
27
  end
28
28
 
29
- def level
29
+ def level(args)
30
30
  if args[:level]
31
31
  args[:level]
32
32
  else
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen