goat 0.3.16 → 0.3.17

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.
Files changed (3) hide show
  1. data/goat.gemspec +1 -1
  2. data/lib/goat.rb +7 -2
  3. metadata +4 -4
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'goat'
3
- s.version = '0.3.16'
3
+ s.version = '0.3.17'
4
4
  s.summary = 'Pre-release beta version of Goat'
5
5
  s.author = 'Patrick Collison'
6
6
  s.email = 'patrick@collison.ie'
@@ -1309,8 +1309,13 @@ module Goat
1309
1309
  end
1310
1310
 
1311
1311
  def component(body)
1312
- [:div, {:id => id, :class => component_name_hierarchy.join(' ')},
1313
- body]
1312
+ attrs = {:id => id, :class => component_name_hierarchy.join(' ')}
1313
+
1314
+ if body.kind_of?(Array) && body.first == :tbody
1315
+ [:tbody, attrs, body[1..-1]]
1316
+ else
1317
+ [:div, attrs, body]
1318
+ end
1314
1319
  end
1315
1320
 
1316
1321
  def expanded_dom
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 16
10
- version: 0.3.16
9
+ - 17
10
+ version: 0.3.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Collison
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-24 00:00:00 +00:00
18
+ date: 2010-11-27 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies: []
21
21