rudsl 1.0.1 → 1.0.2

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5395ffbc5ac117d8cd1410c514cd10fe3d3566c3
4
- data.tar.gz: 85b4f54f78346c5043d2d93f8f3300a0386b93ce
3
+ metadata.gz: da1fdd97ceab98e9a6fe328186871aaacffbd0ba
4
+ data.tar.gz: 77e6d2b682e3525459f52ca7244078fe9b2211f7
5
5
  SHA512:
6
- metadata.gz: 48c59eeb5ca7028af6a5edd8439b061e153e5225c33a87fcbf2fb21dd6203f398aa3e6e5e641ac34f0a4bc8ab5df0dce3b7c44c13e228f0237e1a55f92eefcf1
7
- data.tar.gz: c2abf36f7f66bce4a888954aa1a19c4a3d2182a28a1fc27580003d0e282d98ecb72dd3c449554bcaf828a85a06835aee36738acbf27a39f65c6c77e758b45dd7
6
+ metadata.gz: 8434b4029deb861b417e8ee4c287e8c430302a1abfff24292abb8d22d6e79063985e1403d5736a7ac55023b92bef2df92bcf49d0ef521b3ac602588c83a91f95
7
+ data.tar.gz: 1727e77798d92c403b24e23e3a4b695273d5d42bf722cab37b85a759777246885dbe3365c7c9daaefd08b2d674565da04e7ddbd65c840056816ba1d6fc9a9ae1
data/README.md CHANGED
@@ -39,7 +39,7 @@ node.to_s # will return "<div class="list-container"><ul><li>Hello</li><li>world
39
39
 
40
40
  ## Contributing
41
41
 
42
- 1. Fork it ( https://github.com/[my-github-username]/rudsl/fork )
42
+ 1. Fork it ( https://github.com/sparkymat/rudsl/fork )
43
43
  2. Create your feature branch (`git checkout -b my-new-feature`)
44
44
  3. Commit your changes (`git commit -am 'Add some feature'`)
45
45
  4. Push to the branch (`git push origin my-new-feature`)
data/lib/rudsl.rb CHANGED
@@ -20,7 +20,8 @@ module Rudsl
20
20
 
21
21
  if !block.nil?
22
22
  @_node_stack << node
23
- block.call
23
+ value = block.call
24
+ node.children << value if value.is_a?(String)
24
25
  @_node_stack.pop
25
26
  end
26
27
 
data/lib/rudsl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rudsl
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ajith Hussain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-04 00:00:00.000000000 Z
11
+ date: 2015-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler