foundation-helper 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/foundation_helper.rb +2 -3
  2. metadata +4 -4
@@ -48,8 +48,6 @@ module Foundation
48
48
 
49
49
  class Column
50
50
 
51
- WIDTHS = { 1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five', 6 => 'six', 7 => 'seven', 8 => 'eight', 9 => 'nine', 10 => 'ten', 11 => 'eleven', 12 => 'twelve' }
52
-
53
51
  attr_reader :width
54
52
  def initialize(*args, &block)
55
53
  @content, @classes, @width = [], args.select { |arg| !arg.is_a? Fixnum }, args.find{ |arg| arg.is_a? Fixnum }
@@ -71,7 +69,8 @@ module Foundation
71
69
 
72
70
  def render(depth=0, w=nil)
73
71
  out = (" " * depth)
74
- out += "<div class='#{[WIDTHS[(width || w || 12).i!], 'columns', *@classes].join(' ')}'>\n"
72
+ wval = (width || w || 12).i!
73
+ out += "<div class='#{["small-#{wval} large-#{wval}", 'columns', *@classes].join(' ')}'>\n"
75
74
  @content.each do |content|
76
75
  if content.is_a?(Foundation::Row)
77
76
  out += content.render(depth + 1)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foundation-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-04 00:00:00.000000000 Z
12
+ date: 2013-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mobj
@@ -59,7 +59,7 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- description: Helper for building foundation 3 grids more cleanly, in ruby
62
+ description: Helper for building foundation 4 grids more cleanly, in ruby
63
63
  email: foundation.helper@chipped.net
64
64
  executables: []
65
65
  extensions: []
@@ -90,5 +90,5 @@ rubyforge_project:
90
90
  rubygems_version: 1.8.25
91
91
  signing_key:
92
92
  specification_version: 3
93
- summary: Helper for building foundation 3 grids more cleanly, in ruby
93
+ summary: Helper for building foundation 4 grids more cleanly, in ruby
94
94
  test_files: []