formula 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -6,12 +6,13 @@ Formula is a Rails form helper that generates awesome markup. The project lets u
6
6
 
7
7
  The gem is tested with:
8
8
 
9
- * Ruby on Rails 3.1.1
10
- * Ruby (MRI) 1.9.3 (p0)
11
- * Ruby (MRI) 1.9.2 (p290)
12
- * Ruby (MRI) 1.8.7 (p352)
13
- * Ruby (REE) 1.8.7 (2011.03)
14
- * JRuby 1.6.5
9
+ * Ruby on Rails 3.1.8
10
+ * Ruby on Rails 3.2.9
11
+ * Ruby (MRI) 1.9.3
12
+ * Ruby (MRI) 1.9.2
13
+ * Ruby (MRI) 1.8.7
14
+ * Ruby (REE) 1.8.7
15
+ * JRuby 1.7.0
15
16
  * Rubinius 1.2.4
16
17
 
17
18
  == Installation
@@ -66,6 +67,8 @@ The gem is tested with:
66
67
  == Status
67
68
 
68
69
  {<img src="https://travis-ci.org/ksylvest/formula.png" />}[https://travis-ci.org/ksylvest/formula]
70
+ {<img src="https://codeclimate.com/badge.png"}[https://codeclimate.com/github/ksylvest/formula]
71
+
69
72
 
70
73
  == Copyright
71
74
 
@@ -1,3 +1,3 @@
1
1
  module Formula
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
Binary file
File without changes
@@ -24,14 +24,14 @@ ActiveRecord::Schema.define(:version => 20120226213733) do
24
24
  t.string "avatar_identifier"
25
25
  t.string "avatar_extension"
26
26
  t.integer "avatar_size"
27
- t.datetime "created_at"
28
- t.datetime "updated_at"
27
+ t.datetime "created_at", :null => false
28
+ t.datetime "updated_at", :null => false
29
29
  end
30
30
 
31
31
  create_table "groups", :force => true do |t|
32
32
  t.string "name"
33
- t.datetime "created_at"
34
- t.datetime "updated_at"
33
+ t.datetime "created_at", :null => false
34
+ t.datetime "updated_at", :null => false
35
35
  end
36
36
 
37
37
  create_table "users", :force => true do |t|
Binary file
@@ -0,0 +1,33 @@
1
+ Connecting to database specified by database.yml
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6
+ Migrating to CreateContacts (20110109175811)
7
+  (0.0ms) begin transaction
8
+  (0.6ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer, "name" varchar(255), "slug" varchar(255), "details" text, "phone" varchar(255), "email" varchar(255), "url" varchar(255), "avatar_identifier" varchar(255), "avatar_extension" varchar(255), "avatar_size" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
9
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110109175811')
10
+  (0.9ms) commit transaction
11
+ Migrating to CreateGroups (20110213001348)
12
+  (0.1ms) begin transaction
13
+  (0.4ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
14
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110213001348')
15
+  (0.8ms) commit transaction
16
+ Migrating to CreateUsers (20120226213733)
17
+  (0.0ms) begin transaction
18
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "password_digest" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
19
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120226213733')
20
+  (0.7ms) commit transaction
21
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
22
+ Connecting to database specified by database.yml
23
+  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
24
+  (0.2ms) select sqlite_version(*)
25
+  (1.4ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer, "name" varchar(255), "slug" varchar(255), "details" text, "phone" varchar(255), "email" varchar(255), "url" varchar(255), "avatar_identifier" varchar(255), "avatar_extension" varchar(255), "avatar_size" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
26
+  (0.9ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
27
+  (1.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "password_digest" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
28
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
29
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
+  (0.1ms) SELECT version FROM "schema_migrations"
31
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120226213733')
32
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20110109175811')
33
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110213001348')
@@ -0,0 +1,269 @@
1
+ Connecting to database specified by database.yml
2
+  (0.5ms) begin transaction
3
+  (0.1ms) rollback transaction
4
+  (0.1ms) begin transaction
5
+  (0.0ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+  (0.0ms) rollback transaction
8
+  (0.1ms) begin transaction
9
+  (0.0ms) rollback transaction
10
+  (0.1ms) begin transaction
11
+  (0.0ms) rollback transaction
12
+  (0.1ms) begin transaction
13
+  (0.0ms) rollback transaction
14
+  (0.1ms) begin transaction
15
+  (0.1ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ Processing by MainController#index as HTML
18
+ Completed 200 OK in 36ms (Views: 35.4ms | ActiveRecord: 0.0ms)
19
+  (0.1ms) rollback transaction
20
+ Connecting to database specified by database.yml
21
+  (0.6ms) begin transaction
22
+  (0.1ms) rollback transaction
23
+  (0.1ms) begin transaction
24
+  (0.0ms) rollback transaction
25
+  (0.1ms) begin transaction
26
+  (0.1ms) rollback transaction
27
+  (0.1ms) begin transaction
28
+  (0.0ms) rollback transaction
29
+  (0.1ms) begin transaction
30
+  (0.0ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+  (0.0ms) rollback transaction
33
+  (0.1ms) begin transaction
34
+  (0.1ms) rollback transaction
35
+  (0.1ms) begin transaction
36
+ Processing by MainController#index as HTML
37
+ Completed 200 OK in 96ms (Views: 95.1ms | ActiveRecord: 0.0ms)
38
+  (0.1ms) rollback transaction
39
+ Connecting to database specified by database.yml
40
+  (0.5ms) begin transaction
41
+ Fixture Delete (0.6ms) DELETE FROM "contacts"
42
+ Fixture Insert (0.7ms) INSERT INTO "contacts" ("name", "details", "phone", "email", "url", "created_at", "updated_at", "id", "group_id") VALUES ('Kevin', 'A Ruby on Rails and Cocoa developer...', '(555) 555-5555', 'email@address.com', 'http://ksylvest.com/', '2013-01-11 07:33:35', '2013-01-11 07:33:35', 712064548, 637242267)
43
+ Fixture Delete (0.4ms) DELETE FROM "groups"
44
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Developer', '2013-01-11 07:33:35', '2013-01-11 07:33:35', 637242267)
45
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Designer', '2013-01-11 07:33:35', '2013-01-11 07:33:35', 866180701)
46
+ Fixture Delete (0.3ms) DELETE FROM "users"
47
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2013-01-11 07:33:35', '2013-01-11 07:33:35', 980190962)
48
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2013-01-11 07:33:35', '2013-01-11 07:33:35', 298486374)
49
+  (0.8ms) commit transaction
50
+  (0.0ms) begin transaction
51
+ Started POST "/contacts" for 127.0.0.1 at 2013-01-10 23:33:35 -0800
52
+ Processing by ContactsController#create as HTML
53
+  (0.1ms) SAVEPOINT active_record_1
54
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
55
+ Group Load (0.3ms) SELECT "groups".* FROM "groups"
56
+ Rendered contacts/_form.html.haml (33.4ms)
57
+ Rendered contacts/new.html.haml within layouts/application (43.3ms)
58
+ Completed 200 OK in 177ms (Views: 54.9ms | ActiveRecord: 0.3ms)
59
+  (0.1ms) rollback transaction
60
+  (0.1ms) begin transaction
61
+ Contact Load (3.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
62
+  (0.2ms) SELECT COUNT(*) FROM "contacts"
63
+ Processing by ContactsController#create as HTML
64
+ Parameters: {"contact"=>{"id"=>"712064548", "group_id"=>"637242267", "name"=>"Kevin", "slug"=>nil, "details"=>"A Ruby on Rails and Cocoa developer...", "phone"=>"(555) 555-5555", "email"=>"email@address.com", "url"=>"http://ksylvest.com/", "avatar_identifier"=>nil, "avatar_extension"=>nil, "avatar_size"=>nil, "created_at"=>"2013-01-11 07:33:35 UTC", "updated_at"=>"2013-01-11 07:33:35 UTC"}}
65
+ WARNING: Can't mass-assign protected attributes: id
66
+  (0.1ms) SAVEPOINT active_record_1
67
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
68
+ [attached] save attached
69
+ SQL (1.0ms) INSERT INTO "contacts" ("avatar_extension", "avatar_identifier", "avatar_size", "created_at", "details", "email", "group_id", "name", "phone", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["avatar_extension", nil], ["avatar_identifier", nil], ["avatar_size", nil], ["created_at", Fri, 11 Jan 2013 07:33:35 UTC +00:00], ["details", "A Ruby on Rails and Cocoa developer..."], ["email", "email@address.com"], ["group_id", 637242267], ["name", "Kevin"], ["phone", "(555) 555-5555"], ["slug", nil], ["updated_at", Fri, 11 Jan 2013 07:33:35 UTC +00:00], ["url", "http://ksylvest.com/"]]
70
+  (0.1ms) RELEASE SAVEPOINT active_record_1
71
+ Redirected to http://test.host/contacts
72
+ Completed 302 Found in 26ms (ActiveRecord: 0.0ms)
73
+  (0.1ms) SELECT COUNT(*) FROM "contacts" 
74
+  (0.7ms) rollback transaction
75
+  (0.1ms) begin transaction
76
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
77
+ Processing by ContactsController#edit as HTML
78
+ Parameters: {"id"=>"712064548"}
79
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", "712064548"]]
80
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
81
+ Rendered contacts/_form.html.haml (18.6ms)
82
+ Completed 200 OK in 27ms (Views: 24.8ms | ActiveRecord: 0.3ms)
83
+  (0.1ms) rollback transaction
84
+  (0.0ms) begin transaction
85
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
86
+ Processing by ContactsController#index as HTML
87
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts"
88
+ Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.2ms)
89
+  (0.1ms) rollback transaction
90
+  (0.0ms) begin transaction
91
+ Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
92
+ Processing by ContactsController#new as HTML
93
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
94
+ Rendered contacts/_form.html.haml (19.5ms)
95
+ Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.2ms)
96
+  (0.1ms) rollback transaction
97
+  (0.1ms) begin transaction
98
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
99
+ Processing by ContactsController#update as HTML
100
+ Parameters: {"contact"=>{"id"=>"712064548", "group_id"=>"637242267", "name"=>"Kevin", "slug"=>nil, "details"=>"A Ruby on Rails and Cocoa developer...", "phone"=>"(555) 555-5555", "email"=>"email@address.com", "url"=>"http://ksylvest.com/", "avatar_identifier"=>nil, "avatar_extension"=>nil, "avatar_size"=>nil, "created_at"=>"2013-01-11 07:33:35 UTC", "updated_at"=>"2013-01-11 07:33:35 UTC"}, "id"=>"712064548"}
101
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", "712064548"]]
102
+ WARNING: Can't mass-assign protected attributes: id
103
+  (0.1ms) SAVEPOINT active_record_1
104
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
105
+ [attached] save attached
106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
107
+ Redirected to http://test.host/contacts
108
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
109
+  (0.1ms) rollback transaction
110
+  (0.1ms) begin transaction
111
+  (0.0ms) rollback transaction
112
+  (0.0ms) begin transaction
113
+ Processing by MainController#index as HTML
114
+ Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
115
+  (0.1ms) rollback transaction
116
+ Connecting to database specified by database.yml
117
+  (0.5ms) begin transaction
118
+ Fixture Delete (0.3ms) DELETE FROM "contacts"
119
+ Fixture Insert (0.3ms) INSERT INTO "contacts" ("name", "details", "phone", "email", "url", "created_at", "updated_at", "id", "group_id") VALUES ('Kevin', 'A Ruby on Rails and Cocoa developer...', '(555) 555-5555', 'email@address.com', 'http://ksylvest.com/', '2013-01-11 07:36:00', '2013-01-11 07:36:00', 712064548, 637242267)
120
+ Fixture Delete (0.1ms) DELETE FROM "groups"
121
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Developer', '2013-01-11 07:36:00', '2013-01-11 07:36:00', 637242267)
122
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Designer', '2013-01-11 07:36:00', '2013-01-11 07:36:00', 866180701)
123
+ Fixture Delete (0.2ms) DELETE FROM "users"
124
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2013-01-11 07:36:00', '2013-01-11 07:36:00', 980190962)
125
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2013-01-11 07:36:00', '2013-01-11 07:36:00', 298486374)
126
+  (0.6ms) commit transaction
127
+  (0.0ms) begin transaction
128
+ Started POST "/contacts" for 127.0.0.1 at 2013-01-10 23:36:00 -0800
129
+ Processing by ContactsController#create as HTML
130
+  (0.1ms) SAVEPOINT active_record_1
131
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
132
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
133
+ Rendered contacts/_form.html.haml (31.4ms)
134
+ Rendered contacts/new.html.haml within layouts/application (41.2ms)
135
+ Completed 200 OK in 156ms (Views: 53.2ms | ActiveRecord: 0.2ms)
136
+  (0.1ms) rollback transaction
137
+  (0.1ms) begin transaction
138
+ Contact Load (4.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
139
+  (0.2ms) SELECT COUNT(*) FROM "contacts"
140
+ Processing by ContactsController#create as HTML
141
+ Parameters: {"contact"=>{"id"=>"712064548", "group_id"=>"637242267", "name"=>"Kevin", "slug"=>nil, "details"=>"A Ruby on Rails and Cocoa developer...", "phone"=>"(555) 555-5555", "email"=>"email@address.com", "url"=>"http://ksylvest.com/", "avatar_identifier"=>nil, "avatar_extension"=>nil, "avatar_size"=>nil, "created_at"=>"2013-01-11 07:36:00 UTC", "updated_at"=>"2013-01-11 07:36:00 UTC"}}
142
+ WARNING: Can't mass-assign protected attributes: id
143
+  (0.1ms) SAVEPOINT active_record_1
144
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
145
+ [attached] save attached
146
+ SQL (0.7ms) INSERT INTO "contacts" ("avatar_extension", "avatar_identifier", "avatar_size", "created_at", "details", "email", "group_id", "name", "phone", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["avatar_extension", nil], ["avatar_identifier", nil], ["avatar_size", nil], ["created_at", Fri, 11 Jan 2013 07:36:00 UTC +00:00], ["details", "A Ruby on Rails and Cocoa developer..."], ["email", "email@address.com"], ["group_id", 637242267], ["name", "Kevin"], ["phone", "(555) 555-5555"], ["slug", nil], ["updated_at", Fri, 11 Jan 2013 07:36:00 UTC +00:00], ["url", "http://ksylvest.com/"]]
147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
148
+ Redirected to http://test.host/contacts
149
+ Completed 302 Found in 28ms (ActiveRecord: 0.0ms)
150
+  (0.1ms) SELECT COUNT(*) FROM "contacts" 
151
+  (0.5ms) rollback transaction
152
+  (0.1ms) begin transaction
153
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
154
+ Processing by ContactsController#edit as HTML
155
+ Parameters: {"id"=>"712064548"}
156
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", "712064548"]]
157
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
158
+ Rendered contacts/_form.html.haml (17.4ms)
159
+ Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.3ms)
160
+  (0.1ms) rollback transaction
161
+  (0.0ms) begin transaction
162
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
163
+ Processing by ContactsController#index as HTML
164
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts"
165
+ Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.2ms)
166
+  (0.1ms) rollback transaction
167
+  (0.0ms) begin transaction
168
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
169
+ Processing by ContactsController#new as HTML
170
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
171
+ Rendered contacts/_form.html.haml (18.1ms)
172
+ Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.2ms)
173
+  (0.1ms) rollback transaction
174
+  (0.1ms) begin transaction
175
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
176
+ Processing by ContactsController#update as HTML
177
+ Parameters: {"contact"=>{"id"=>"712064548", "group_id"=>"637242267", "name"=>"Kevin", "slug"=>nil, "details"=>"A Ruby on Rails and Cocoa developer...", "phone"=>"(555) 555-5555", "email"=>"email@address.com", "url"=>"http://ksylvest.com/", "avatar_identifier"=>nil, "avatar_extension"=>nil, "avatar_size"=>nil, "created_at"=>"2013-01-11 07:36:00 UTC", "updated_at"=>"2013-01-11 07:36:00 UTC"}, "id"=>"712064548"}
178
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", "712064548"]]
179
+ WARNING: Can't mass-assign protected attributes: id
180
+  (0.1ms) SAVEPOINT active_record_1
181
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
182
+ [attached] save attached
183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
184
+ Redirected to http://test.host/contacts
185
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
186
+  (0.1ms) rollback transaction
187
+  (0.1ms) begin transaction
188
+  (0.1ms) rollback transaction
189
+  (0.1ms) begin transaction
190
+ Processing by MainController#index as HTML
191
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
192
+  (0.1ms) rollback transaction
193
+ Connecting to database specified by database.yml
194
+  (0.5ms) begin transaction
195
+ Fixture Delete (0.7ms) DELETE FROM "contacts"
196
+ Fixture Insert (0.4ms) INSERT INTO "contacts" ("name", "details", "phone", "email", "url", "created_at", "updated_at", "id", "group_id") VALUES ('Kevin', 'A Ruby on Rails and Cocoa developer...', '(555) 555-5555', 'email@address.com', 'http://ksylvest.com/', '2013-01-11 07:38:58', '2013-01-11 07:38:58', 712064548, 637242267)
197
+ Fixture Delete (0.1ms) DELETE FROM "groups"
198
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Developer', '2013-01-11 07:38:58', '2013-01-11 07:38:58', 637242267)
199
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Designer', '2013-01-11 07:38:58', '2013-01-11 07:38:58', 866180701)
200
+ Fixture Delete (0.1ms) DELETE FROM "users"
201
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2013-01-11 07:38:58', '2013-01-11 07:38:58', 980190962)
202
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2013-01-11 07:38:58', '2013-01-11 07:38:58', 298486374)
203
+  (1.1ms) commit transaction
204
+  (0.1ms) begin transaction
205
+ Started POST "/contacts" for 127.0.0.1 at 2013-01-10 23:38:58 -0800
206
+ Processing by ContactsController#create as HTML
207
+  (0.1ms) SAVEPOINT active_record_1
208
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
209
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
210
+ Rendered contacts/_form.html.haml (27.9ms)
211
+ Rendered contacts/new.html.haml within layouts/application (37.3ms)
212
+ Completed 200 OK in 159ms (Views: 45.2ms | ActiveRecord: 0.2ms)
213
+  (0.1ms) rollback transaction
214
+  (0.1ms) begin transaction
215
+ Contact Load (4.9ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
216
+  (0.2ms) SELECT COUNT(*) FROM "contacts"
217
+ Processing by ContactsController#create as HTML
218
+ Parameters: {"contact"=>{"id"=>"712064548", "group_id"=>"637242267", "name"=>"Kevin", "slug"=>nil, "details"=>"A Ruby on Rails and Cocoa developer...", "phone"=>"(555) 555-5555", "email"=>"email@address.com", "url"=>"http://ksylvest.com/", "avatar_identifier"=>nil, "avatar_extension"=>nil, "avatar_size"=>nil, "created_at"=>"2013-01-11 07:38:58 UTC", "updated_at"=>"2013-01-11 07:38:58 UTC"}}
219
+ WARNING: Can't mass-assign protected attributes: id
220
+  (0.1ms) SAVEPOINT active_record_1
221
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
222
+ [attached] save attached
223
+ SQL (0.9ms) INSERT INTO "contacts" ("avatar_extension", "avatar_identifier", "avatar_size", "created_at", "details", "email", "group_id", "name", "phone", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["avatar_extension", nil], ["avatar_identifier", nil], ["avatar_size", nil], ["created_at", Fri, 11 Jan 2013 07:38:58 UTC +00:00], ["details", "A Ruby on Rails and Cocoa developer..."], ["email", "email@address.com"], ["group_id", 637242267], ["name", "Kevin"], ["phone", "(555) 555-5555"], ["slug", nil], ["updated_at", Fri, 11 Jan 2013 07:38:58 UTC +00:00], ["url", "http://ksylvest.com/"]]
224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
225
+ Redirected to http://test.host/contacts
226
+ Completed 302 Found in 31ms (ActiveRecord: 0.0ms)
227
+  (0.2ms) SELECT COUNT(*) FROM "contacts" 
228
+  (1.1ms) rollback transaction
229
+  (0.1ms) begin transaction
230
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
231
+ Processing by ContactsController#edit as HTML
232
+ Parameters: {"id"=>"712064548"}
233
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", "712064548"]]
234
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
235
+ Rendered contacts/_form.html.haml (21.9ms)
236
+ Completed 200 OK in 32ms (Views: 29.7ms | ActiveRecord: 0.3ms)
237
+  (0.1ms) rollback transaction
238
+  (0.1ms) begin transaction
239
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
240
+ Processing by ContactsController#index as HTML
241
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts"
242
+ Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.2ms)
243
+  (0.1ms) rollback transaction
244
+  (0.1ms) begin transaction
245
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
246
+ Processing by ContactsController#new as HTML
247
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
248
+ Rendered contacts/_form.html.haml (43.9ms)
249
+ Completed 200 OK in 50ms (Views: 48.3ms | ActiveRecord: 0.2ms)
250
+  (0.1ms) rollback transaction
251
+  (0.1ms) begin transaction
252
+ Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
253
+ Processing by ContactsController#update as HTML
254
+ Parameters: {"contact"=>{"id"=>"712064548", "group_id"=>"637242267", "name"=>"Kevin", "slug"=>nil, "details"=>"A Ruby on Rails and Cocoa developer...", "phone"=>"(555) 555-5555", "email"=>"email@address.com", "url"=>"http://ksylvest.com/", "avatar_identifier"=>nil, "avatar_extension"=>nil, "avatar_size"=>nil, "created_at"=>"2013-01-11 07:38:58 UTC", "updated_at"=>"2013-01-11 07:38:58 UTC"}, "id"=>"712064548"}
255
+ Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", "712064548"]]
256
+ WARNING: Can't mass-assign protected attributes: id
257
+  (0.1ms) SAVEPOINT active_record_1
258
+ Group Load (0.4ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
259
+ [attached] save attached
260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
261
+ Redirected to http://test.host/contacts
262
+ Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
263
+  (0.1ms) rollback transaction
264
+  (0.1ms) begin transaction
265
+  (0.1ms) rollback transaction
266
+  (0.1ms) begin transaction
267
+ Processing by MainController#index as HTML
268
+ Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)
269
+  (0.1ms) rollback transaction
@@ -16,7 +16,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
16
16
  end
17
17
  assert_select("label", "Details")
18
18
  assert_select(".hint", "a detailed description")
19
- assert_select(".error", "can't be blank")
19
+ assert_select(".error", "can&#x27;t be blank")
20
20
  end
21
21
 
22
22
  assert_select(".block.name") do
@@ -25,7 +25,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
25
25
  end
26
26
  assert_select("label", "Name")
27
27
  assert_select(".hint", "first and last name")
28
- assert_select(".error", "can't be blank")
28
+ assert_select(".error", "can&#x27;t be blank")
29
29
  end
30
30
 
31
31
  assert_select(".block.email") do
@@ -34,7 +34,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
34
34
  end
35
35
  assert_select("label", "Email")
36
36
  assert_select(".hint", "sample@example.com")
37
- assert_select(".error", "can't be blank and is not valid")
37
+ assert_select(".error", "can&#x27;t be blank and is not valid")
38
38
  end
39
39
 
40
40
  assert_select(".block.phone") do
@@ -43,7 +43,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
43
43
  end
44
44
  assert_select("label", "Phone")
45
45
  assert_select(".hint", "+01 (555) 555-5555")
46
- assert_select(".error", "can't be blank and is not valid")
46
+ assert_select(".error", "can&#x27;t be blank and is not valid")
47
47
  end
48
48
 
49
49
  assert_select(".block.url") do
@@ -52,7 +52,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
52
52
  end
53
53
  assert_select("label", "Website")
54
54
  assert_select(".hint", "http://example.com/")
55
- assert_select(".error", "can't be blank")
55
+ assert_select(".error", "can&#x27;t be blank")
56
56
  end
57
57
 
58
58
  assert_select(".block.avatar") do
@@ -69,7 +69,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
69
69
  assert_select("option", "Developer")
70
70
  end
71
71
  end
72
- assert_select(".error", "can't be blank")
72
+ assert_select(".error", "can&#x27;t be blank")
73
73
  assert_select("label", "Group")
74
74
  end
75
75
 
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.7
4
+ version: 0.3.8
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: 2012-11-14 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -43,22 +43,6 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: sqlite3
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
46
  description: Formula is a Rails form generator that generates simple clean markup.
63
47
  The project aims to let users create semantically beautiful forms without introducing
64
48
  too much syntax. The goal is to make integrating advanced layout systems as simple
@@ -124,10 +108,15 @@ files:
124
108
  - test/dummy/config/locales/en.yml
125
109
  - test/dummy/config/routes.rb
126
110
  - test/dummy/config.ru
111
+ - test/dummy/db/development.sqlite3
127
112
  - test/dummy/db/migrate/20110109175811_create_contacts.rb
128
113
  - test/dummy/db/migrate/20110213001348_create_groups.rb
129
114
  - test/dummy/db/migrate/20120226213733_create_users.rb
115
+ - test/dummy/db/production.sqlite3
130
116
  - test/dummy/db/schema.rb
117
+ - test/dummy/db/test.sqlite3
118
+ - test/dummy/log/development.log
119
+ - test/dummy/log/test.log
131
120
  - test/dummy/public/favicon.ico
132
121
  - test/dummy/Rakefile
133
122
  - test/dummy/script/rails
@@ -161,21 +150,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
150
  - - ! '>='
162
151
  - !ruby/object:Gem::Version
163
152
  version: '0'
164
- segments:
165
- - 0
166
- hash: 2114089855751508861
167
153
  required_rubygems_version: !ruby/object:Gem::Requirement
168
154
  none: false
169
155
  requirements:
170
156
  - - ! '>='
171
157
  - !ruby/object:Gem::Version
172
158
  version: '0'
173
- segments:
174
- - 0
175
- hash: 2114089855751508861
176
159
  requirements: []
177
160
  rubyforge_project:
178
- rubygems_version: 1.8.24
161
+ rubygems_version: 1.8.23
179
162
  signing_key:
180
163
  specification_version: 3
181
164
  summary: A great way to simplify complex forms
@@ -228,10 +211,15 @@ test_files:
228
211
  - test/dummy/config/locales/en.yml
229
212
  - test/dummy/config/routes.rb
230
213
  - test/dummy/config.ru
214
+ - test/dummy/db/development.sqlite3
231
215
  - test/dummy/db/migrate/20110109175811_create_contacts.rb
232
216
  - test/dummy/db/migrate/20110213001348_create_groups.rb
233
217
  - test/dummy/db/migrate/20120226213733_create_users.rb
218
+ - test/dummy/db/production.sqlite3
234
219
  - test/dummy/db/schema.rb
220
+ - test/dummy/db/test.sqlite3
221
+ - test/dummy/log/development.log
222
+ - test/dummy/log/test.log
235
223
  - test/dummy/public/favicon.ico
236
224
  - test/dummy/Rakefile
237
225
  - test/dummy/script/rails