storefront 0.2.0 → 0.2.1

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.
data/Rakefile CHANGED
@@ -5,11 +5,11 @@ require 'rake/gempackagetask'
5
5
  spec = Gem::Specification.new do |s|
6
6
  s.name = "storefront"
7
7
  s.authors = ["Lance Pollard"]
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
+ s.description = "Semantic HTML5 for Rails"
9
10
  s.summary = "Semantic HTML5 for Rails"
10
11
  s.homepage = "http://github.com/viatropos/storefront"
11
12
  s.email = "lancejpollard@gmail.com"
12
- s.description = "DRY, SEO-friendly Rails Views"
13
13
  s.rubyforge_project = "storefront"
14
14
  s.platform = Gem::Platform::RUBY
15
15
  s.files = %w(Rakefile init.rb) + Dir["{lib,rails,test}/**/*"] - Dir["test/tmp"]
@@ -133,7 +133,11 @@ module Storefront
133
133
  end
134
134
 
135
135
  def number_input(key, attributes = {})
136
- base_input :string, key, attributes.merge(:class => "number", "data-type" => "number")
136
+ base_input :string, key, attributes.merge(:class => "numeric", "data-type" => "numeric")
137
+ end
138
+
139
+ def numeric_input(key, attributes = {})
140
+ base_input :string, key, attributes.merge(:class => "numeric", "data-type" => "numeric")
137
141
  end
138
142
 
139
143
  def search_input(key, attributes = {})
@@ -14,6 +14,7 @@ module Storefront
14
14
  end
15
15
 
16
16
  def html5_time(date_or_time)
17
+ return nil if date_or_time.blank?
17
18
  date_or_time.acts_like?(:time) ? date_or_time.xmlschema : date_or_time.rfc3339
18
19
  end
19
20
  end
File without changes
@@ -0,0 +1,15 @@
1
+ module Storefront
2
+ class Element
3
+ attr_accessor :label, :name, :id, :value, :url, :validations, :hint, :tip, :required, :disabled
4
+
5
+ def initialize(attributes = {})
6
+ attributes.each do |key, value|
7
+ send("#{key}=", value)
8
+ end
9
+ end
10
+
11
+ def to_json
12
+
13
+ end
14
+ end
15
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: storefront
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Lance Pollard
@@ -13,7 +13,7 @@ cert_chain: []
13
13
  date: 2011-05-29 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
- description: DRY, SEO-friendly Rails Views
16
+ description: Semantic HTML5 for Rails
17
17
  email: lancejpollard@gmail.com
18
18
  executables: []
19
19
 
@@ -71,6 +71,17 @@ files:
71
71
  - lib/storefront/microdata/person.rb
72
72
  - lib/storefront/microformat/event.rb
73
73
  - lib/storefront/microformat/person.rb
74
+ - lib/storefront/models/container.rb
75
+ - lib/storefront/models/element.rb
76
+ - lib/storefront/models/form.rb
77
+ - lib/storefront/models/form_element.rb
78
+ - lib/storefront/models/link.rb
79
+ - lib/storefront/models/list.rb
80
+ - lib/storefront/models/list_element.rb
81
+ - lib/storefront/models/table.rb
82
+ - lib/storefront/models/term.rb
83
+ - lib/storefront/models/term_list.rb
84
+ - lib/storefront/models/validation.rb
74
85
  - lib/storefront/railtie.rb
75
86
  - lib/storefront/table.rb
76
87
  - lib/storefront.rb