storefront 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/lib/storefront/form/inputs.rb +5 -1
- data/lib/storefront/helpers/time_helper.rb +1 -0
- data/lib/storefront/models/container.rb +0 -0
- data/lib/storefront/models/element.rb +15 -0
- data/lib/storefront/models/form.rb +0 -0
- data/lib/storefront/models/form_element.rb +0 -0
- data/lib/storefront/models/link.rb +0 -0
- data/lib/storefront/models/list.rb +0 -0
- data/lib/storefront/models/list_element.rb +0 -0
- data/lib/storefront/models/table.rb +0 -0
- data/lib/storefront/models/term.rb +0 -0
- data/lib/storefront/models/term_list.rb +0 -0
- data/lib/storefront/models/validation.rb +0 -0
- metadata +13 -2
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.
|
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 => "
|
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 = {})
|
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.
|
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:
|
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
|