formula 0.3.4 → 0.3.5
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 +2 -0
- data/lib/formula.rb +40 -12
- data/lib/formula/version.rb +1 -1
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/models/contact.rb +2 -0
- data/test/dummy/app/views/contacts/_form.html.erb +3 -1
- data/test/dummy/db/migrate/20110109175811_create_contacts.rb +1 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +726 -0
- data/test/dummy/log/test.log +585 -0
- data/test/dummy/test/integration/contact_form_test.rb +10 -4
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +171 -6
- metadata +18 -7
@@ -6,7 +6,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
|
|
6
6
|
|
7
7
|
test "contact form" do
|
8
8
|
|
9
|
-
post_via_redirect
|
9
|
+
post_via_redirect contacts_path
|
10
10
|
|
11
11
|
assert_response :success
|
12
12
|
|
@@ -36,7 +36,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
|
|
36
36
|
assert_select(".hint", "sample@example.com")
|
37
37
|
assert_select(".error", "can't be blank and is not valid")
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
assert_select(".block.phone") do
|
41
41
|
assert_select(".input.phone") do
|
42
42
|
assert_select("input[type=tel]")
|
@@ -54,14 +54,14 @@ class ContactFormTest < ActionDispatch::IntegrationTest
|
|
54
54
|
assert_select(".hint", "http://example.com/")
|
55
55
|
assert_select(".error", "can't be blank")
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
58
|
assert_select(".block.avatar") do
|
59
59
|
assert_select(".input.file") do
|
60
60
|
assert_select("input[type=file]")
|
61
61
|
end
|
62
62
|
assert_select("label", "Avatar")
|
63
63
|
end
|
64
|
-
|
64
|
+
|
65
65
|
assert_select(".block.group") do
|
66
66
|
assert_select(".association.select") do
|
67
67
|
assert_select("select") do
|
@@ -73,6 +73,12 @@ class ContactFormTest < ActionDispatch::IntegrationTest
|
|
73
73
|
assert_select("label", "Group")
|
74
74
|
end
|
75
75
|
|
76
|
+
assert_select(".block.errors.name", true, 'Name block should have "errors" class')
|
77
|
+
assert_select(".block.errors.details", true, 'Details block should have "errors" class')
|
78
|
+
|
79
|
+
assert_select('#contact_secret', true, 'There should be hidden field')
|
80
|
+
assert_select('.block > #contact_secret', false, 'The hidden field should not be wrapped with a block')
|
81
|
+
|
76
82
|
end
|
77
83
|
|
78
84
|
end
|
Binary file
|
@@ -1,12 +1,177 @@
|
|
1
|
-
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf
|
2
|
-
F"%
|
3
|
-
FI"
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1325148439.837643:@value{ I"length:EFi"I"digest;
|
2
|
+
F"%e7ff2330bd16ca89c95fe98ce34a806cI"source;
|
3
|
+
FI""/*
|
4
4
|
*/
|
5
5
|
|
6
|
+
/* global */
|
6
7
|
|
7
|
-
body { padding: 60px inherit !important; }
|
8
8
|
|
9
|
-
|
9
|
+
html, body
|
10
|
+
{
|
11
|
+
font-family: Helvetica, Verdana, Arial, sans-serif;
|
12
|
+
font-style: normal;
|
13
|
+
font-weight: normal;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* grid */
|
17
|
+
|
18
|
+
.container
|
19
|
+
{
|
20
|
+
width: 960px;
|
21
|
+
margin-left: auto;
|
22
|
+
margin-right: auto;
|
23
|
+
}
|
24
|
+
|
25
|
+
.grid-01, .grid-02, .grid-03, .grid-04, .grid-05, .grid-06, .grid-07, .grid-08, .grid-09, .grid-10, .grid-11, .grid-12
|
26
|
+
{
|
27
|
+
float: left;
|
28
|
+
display: inline;
|
29
|
+
position: relative;
|
30
|
+
margin-left: 10px;
|
31
|
+
margin-right: 10px;
|
32
|
+
}
|
33
|
+
|
34
|
+
.alpha { margin-left: 0px; }
|
35
|
+
.omega { margin-right: 0px; }
|
36
|
+
|
37
|
+
.grid-01 { width: 60px; }
|
38
|
+
.grid-02 { width: 140px; }
|
39
|
+
.grid-03 { width: 220px; }
|
40
|
+
.grid-04 { width: 300px; }
|
41
|
+
.grid-05 { width: 380px; }
|
42
|
+
.grid-06 { width: 460px; }
|
43
|
+
.grid-07 { width: 540px; }
|
44
|
+
.grid-08 { width: 620px; }
|
45
|
+
.grid-09 { width: 700px; }
|
46
|
+
.grid-10 { width: 780px; }
|
47
|
+
.grid-11 { width: 860px; }
|
48
|
+
.grid-12 { width: 940px; }
|
49
|
+
|
50
|
+
.prefix-01 { padding-left: 80px; }
|
51
|
+
.suffix-01 { padding-right: 80px; }
|
52
|
+
.prefix-02 { padding-left: 160px; }
|
53
|
+
.suffix-02 { padding-right: 160px; }
|
54
|
+
.prefix-03 { padding-left: 240px; }
|
55
|
+
.suffix-03 { padding-right: 240px; }
|
56
|
+
.prefix-04 { padding-left: 320px; }
|
57
|
+
.suffix-04 { padding-right: 320px; }
|
58
|
+
.prefix-05 { padding-left: 400px; }
|
59
|
+
.suffix-05 { padding-right: 400px; }
|
60
|
+
.prefix-06 { padding-left: 480px; }
|
61
|
+
.suffix-06 { padding-right: 480px; }
|
62
|
+
.prefix-07 { padding-left: 560px; }
|
63
|
+
.suffix-07 { padding-right: 560px; }
|
64
|
+
.prefix-08 { padding-left: 640px; }
|
65
|
+
.suffix-08 { padding-right: 640px; }
|
66
|
+
.prefix-09 { padding-left: 720px; }
|
67
|
+
.suffix-09 { padding-right: 720px; }
|
68
|
+
.prefix-10 { padding-left: 800px; }
|
69
|
+
.suffix-10 { padding-right: 800px; }
|
70
|
+
.prefix-11 { padding-left: 880px; }
|
71
|
+
.suffix-11 { padding-right: 880px; }
|
72
|
+
|
73
|
+
.left { float: left; }
|
74
|
+
.right { float: right; }
|
75
|
+
|
76
|
+
.center { text-align: center; }
|
77
|
+
.justify { text-align: justify; }
|
78
|
+
|
79
|
+
.clear
|
80
|
+
{
|
81
|
+
clear: both;
|
82
|
+
overflow: hidden;
|
83
|
+
visibility: hidden;
|
84
|
+
height: 0px;
|
85
|
+
width: 0px;
|
86
|
+
}
|
87
|
+
|
88
|
+
/* form */
|
89
|
+
|
90
|
+
.field_with_errors
|
91
|
+
{
|
92
|
+
display: inline;
|
93
|
+
}
|
94
|
+
|
95
|
+
.input
|
96
|
+
{
|
97
|
+
padding: 0px;
|
98
|
+
}
|
99
|
+
|
100
|
+
.input.url, .input.text, .input.email, .input.string, .input.phone, .input.password
|
101
|
+
{
|
102
|
+
padding: 0px 20px 0px 0px;
|
103
|
+
}
|
104
|
+
|
105
|
+
.block
|
106
|
+
{
|
107
|
+
padding: 4px 0px;
|
108
|
+
}
|
109
|
+
|
110
|
+
.hint
|
111
|
+
{
|
112
|
+
display: block;
|
113
|
+
color: #888;
|
114
|
+
margin: 2px 0px;
|
115
|
+
padding: 0px;
|
116
|
+
font-size: 12px;
|
117
|
+
font-weight: normal;
|
118
|
+
}
|
119
|
+
|
120
|
+
.error
|
121
|
+
{
|
122
|
+
display: block;
|
123
|
+
color: #C22;
|
124
|
+
margin: 2px 0px;
|
125
|
+
padding: 0px;
|
126
|
+
font-size: 12px;
|
127
|
+
font-weight: bolder;
|
128
|
+
}
|
129
|
+
|
130
|
+
.errors label
|
131
|
+
{
|
132
|
+
color: #A00;
|
133
|
+
}
|
134
|
+
|
135
|
+
.errors .hint
|
136
|
+
{
|
137
|
+
color: #A00;
|
138
|
+
}
|
139
|
+
|
140
|
+
.errors .error
|
141
|
+
{
|
142
|
+
color: #A00;
|
143
|
+
}
|
144
|
+
|
145
|
+
label
|
146
|
+
{
|
147
|
+
display: inline;
|
148
|
+
color: #444;
|
149
|
+
margin: 2px 0px;
|
150
|
+
padding: 0px;
|
151
|
+
font-size: 14px;
|
152
|
+
font-weight: normal;
|
153
|
+
}
|
154
|
+
|
155
|
+
input[type="url"],
|
156
|
+
input[type="tel"],
|
157
|
+
input[type="text"],
|
158
|
+
input[type="email"],
|
159
|
+
input[type="password"],
|
160
|
+
textarea
|
161
|
+
{
|
162
|
+
width: 100%;
|
163
|
+
padding: 8px;
|
164
|
+
font-size: 16px;
|
165
|
+
font-weight: normal;
|
166
|
+
}
|
167
|
+
|
168
|
+
textarea
|
169
|
+
{
|
170
|
+
width: 100%;
|
171
|
+
padding: 8px;
|
172
|
+
font-size: 16px;
|
173
|
+
font-weight: normal;d
|
174
|
+
}
|
10
175
|
;
|
11
176
|
FI"
|
12
|
-
F"%
|
177
|
+
F"%a94703028d16e6aa43ce0095dff43bf7
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70103473064640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>'
|
@@ -21,10 +21,21 @@ dependencies:
|
|
21
21
|
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70103473064640
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: appraisal
|
27
|
+
requirement: &70103473063980 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70103473063980
|
25
36
|
- !ruby/object:Gem::Dependency
|
26
37
|
name: sqlite3
|
27
|
-
requirement: &
|
38
|
+
requirement: &70103473063500 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
40
|
requirements:
|
30
41
|
- - ! '>='
|
@@ -32,7 +43,7 @@ dependencies:
|
|
32
43
|
version: '0'
|
33
44
|
type: :development
|
34
45
|
prerelease: false
|
35
|
-
version_requirements: *
|
46
|
+
version_requirements: *70103473063500
|
36
47
|
description: Formula is a Rails form generator that generates simple clean markup.
|
37
48
|
The project aims to let users create semantically beautiful forms without introducing
|
38
49
|
too much syntax. The goal is to make integrating advanced layout systems as simple
|
@@ -142,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
153
|
version: '0'
|
143
154
|
requirements: []
|
144
155
|
rubyforge_project:
|
145
|
-
rubygems_version: 1.8.
|
156
|
+
rubygems_version: 1.8.15
|
146
157
|
signing_key:
|
147
158
|
specification_version: 3
|
148
159
|
summary: A great way to simplify complex forms
|