foundation_scaffold 0.0.3 → 0.0.4

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: 1312308156acb855a585e8b13d453e1a9d7fdfc1
4
- data.tar.gz: 1dd03b3f85d00e87dbcf4055d24098349c3e54fb
3
+ metadata.gz: 7798a1c6311b7e2ab59276760b7405ccca701e5b
4
+ data.tar.gz: 0827623f43eea4f6ef36b627d78e9799b246335b
5
5
  SHA512:
6
- metadata.gz: e69f067951242587995f6bc3abd4bed2df9cd0b1472bdde8f4acb021420bb0d76fb836ef0546ab27e58a36c32265701127f6083af41db654340ebf65cface638
7
- data.tar.gz: f9582e0004a9a47248c2f676447c3f891a242f4c954650bb4092b8d08793fba927d8f1a4ecbc641e5ea21349dc611166ee1ea4361ef047471cb1d8fec50c1930
6
+ metadata.gz: eef56446de555dfca1bd55d2c83f0003e192baacbf2f3a8ee1147ed3a4621a1f113940b43974ba414812fd6651e95cbafa524995c665009b92127e442e1573d7
7
+ data.tar.gz: ec667743a4021684b40dd7a2a363cecd8e9de8f1eae1d45b71011fa3faf0c39309b52ee780fe097dbabfc33cbc744fc3027702c6e965c53e9ce3b118666be454
@@ -1,28 +1,30 @@
1
1
  module FoundationHelper
2
- {
3
- one: 1,
4
- two: 2,
5
- three: 3,
6
- four: 4,
7
- five: 5,
8
- six: 6,
9
- seven: 7,
10
- eight: 8,
11
- nine: 9,
12
- ten: 10,
13
- eleven: 11,
14
- twelve: 12
15
- }.each do |w,n|
16
- define_method("#{w}_block".to_sym) do |content=nil, options={}, &block|
17
- klass = "large-#{options[:large] || n} small-#{options[:small] || n} columns"
18
- klass << " #{options[:class]}" if options[:class].present?
19
- content_tag(options[:tag] || :div, content || options[:content] || capture("".html_safe,&block), class: klass)
20
- end
21
- end
2
+ {
3
+ one: 1,
4
+ two: 2,
5
+ three: 3,
6
+ four: 4,
7
+ five: 5,
8
+ six: 6,
9
+ seven: 7,
10
+ eight: 8,
11
+ nine: 9,
12
+ ten: 10,
13
+ eleven: 11,
14
+ twelve: 12
15
+ }.each do |w,n|
16
+ define_method("#{w}_block".to_sym) do |content=nil, options={}, &block|
17
+ klass = "large-#{options[:large] || n} small-#{options[:small] || n} columns"
18
+ klass << " #{options[:class]}" if options[:class].present?
19
+ options[:class] = klass
20
+ content_tag(options[:tag] || :div, content || options[:content] || capture("".html_safe,&block), options)
21
+ end
22
+ end
22
23
 
23
- def row(options={}, &block)
24
- klass = "row"
25
- klass << " #{options[:class]}" if options[:class].present?
26
- content_tag(:div, capture("".html_safe, &block), class: klass)
27
- end
24
+ def row(options={}, &block)
25
+ klass = "row"
26
+ klass << " #{options[:class]}" if options[:class].present?
27
+ options[:class] = klass
28
+ content_tag(:div, capture("".html_safe, &block), options)
29
+ end
28
30
  end
@@ -3,11 +3,11 @@ root = File.join(File.dirname(__FILE__))
3
3
  require "#{root}/foundation_scaffold/version"
4
4
 
5
5
  if defined?(Rails::Generators::Base) and defined?(Foundation)
6
- require "#{root}/foundation/generators/scaffold_generator"
7
- #require "#{root}/foundation/generators/scaffold_views_generator"
6
+ require "#{root}/foundation/generators/scaffold_generator"
7
+ #require "#{root}/foundation/generators/scaffold_views_generator"
8
8
  end
9
9
 
10
10
  if defined?(ActionView::Base)
11
- require 'foundation_helper'
12
- ActionView::Base.send :include, FoundationHelper
11
+ require 'foundation_helper'
12
+ ActionView::Base.send :include, FoundationHelper
13
13
  end
@@ -1,6 +1,6 @@
1
1
  module Foundation
2
- module Scaffold
3
- VERSION = '0.0.3'
4
- end
2
+ module Scaffold
3
+ VERSION = '0.0.4'
4
+ end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foundation_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Evan Shreve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-25 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zurb-foundation