formula 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Formula
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -4,23 +4,15 @@
4
4
  <h1>Contacts</h1>
5
5
 
6
6
  <table>
7
- <tr>
8
- <th>Name</th>
9
- <th></th>
10
- <th></th>
11
- </tr>
12
-
13
- <% @contacts.each do |contact| %>
14
- <tr>
15
- <td><%= contact.name %></td>
16
- <td><%= link_to 'Edit', edit_contact_path(contact) %></td>
17
- <td><%= link_to 'Destroy', contact, :confirm => 'Are you sure?', :method => :delete %></td>
18
- </tr>
19
- <% end %>
7
+ <% @contacts.each do |contact| %>
8
+ <tr>
9
+ <td><%= contact.name %></td>
10
+ <td><%= link_to 'Edit', edit_contact_path(contact) %></td>
11
+ <td><%= link_to 'Destroy', contact, :confirm => 'Are you sure?', :method => :delete %></td>
12
+ </tr>
13
+ <% end %>
20
14
  </table>
21
15
 
22
- <br />
23
-
24
16
  <%= link_to 'New', new_contact_path %>
25
17
 
26
18
  </div>
@@ -3,4 +3,5 @@ Dummy::Application.routes.draw do
3
3
  root :to => "main#index"
4
4
 
5
5
  resources :contacts
6
+
6
7
  end
Binary file
@@ -54,3 +54,60 @@ Redirected to http://test.host/contacts
54
54
  Completed 302 Found in 9ms
55
55
  Processing by MainController#index as HTML
56
56
  Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
57
+ Fixture Delete (0.4ms) DELETE FROM "contacts"
58
+ Fixture Insert (0.2ms) 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/', '2011-10-23 06:28:37', '2011-10-23 06:28:37', 712064548, 637242267)
59
+ Fixture Delete (0.1ms) DELETE FROM "groups"
60
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Developer', '2011-10-23 06:28:37', '2011-10-23 06:28:37', 637242267)
61
+ Fixture Insert (0.0ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Designer', '2011-10-23 06:28:37', '2011-10-23 06:28:37', 866180701)
62
+
63
+
64
+ Started POST "/contacts" for 127.0.0.1 at 2011-10-22 23:28:37 -0700
65
+ Processing by ContactsController#create as HTML
66
+  (0.1ms) SAVEPOINT active_record_1
67
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
68
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
69
+ Rendered contacts/_form.html.erb (14.5ms)
70
+ Rendered contacts/new.html.erb within layouts/application (38.4ms)
71
+ Completed 200 OK in 172ms (Views: 40.1ms | ActiveRecord: 0.2ms)
72
+ Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
73
+  (0.1ms) SELECT COUNT(*) FROM "contacts"
74
+ Processing by ContactsController#create as HTML
75
+ Parameters: {"contact"=>{"id"=>"712064548", "group_id"=>"637242267", "name"=>"Kevin", "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"=>"2011-10-23 06:28:37 UTC", "updated_at"=>"2011-10-23 06:28:37 UTC"}}
76
+ WARNING: Can't mass-assign protected attributes: id
77
+  (0.1ms) SAVEPOINT active_record_1
78
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
79
+ [attached] save attached
80
+ SQL (1.3ms) INSERT INTO "contacts" ("avatar_extension", "avatar_identifier", "avatar_size", "created_at", "details", "email", "group_id", "name", "phone", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["avatar_extension", nil], ["avatar_identifier", nil], ["avatar_size", nil], ["created_at", Sun, 23 Oct 2011 06:28:37 UTC +00:00], ["details", "A Ruby on Rails and Cocoa developer..."], ["email", "email@address.com"], ["group_id", 637242267], ["name", "Kevin"], ["phone", "(555) 555-5555"], ["updated_at", Sun, 23 Oct 2011 06:28:37 UTC +00:00], ["url", "http://ksylvest.com/"]]
81
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82
+ Redirected to http://test.host/contacts
83
+ Completed 302 Found in 38ms
84
+  (0.1ms) SELECT COUNT(*) FROM "contacts" 
85
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
86
+ Processing by ContactsController#edit as HTML
87
+ Parameters: {"id"=>"712064548"}
88
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", "712064548"]]
89
+ Group Load (0.2ms) SELECT "groups".* FROM "groups"
90
+ Rendered contacts/_form.html.erb (7.9ms)
91
+ Completed 200 OK in 13ms (Views: 10.7ms | ActiveRecord: 0.3ms)
92
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
93
+ Processing by ContactsController#index as HTML
94
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts"
95
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
96
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
97
+ Processing by ContactsController#new as HTML
98
+ Group Load (0.1ms) SELECT "groups".* FROM "groups"
99
+ Rendered contacts/_form.html.erb (6.6ms)
100
+ Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.1ms)
101
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 712064548]]
102
+ Processing by ContactsController#update as HTML
103
+ Parameters: {"contact"=>{"id"=>"712064548", "group_id"=>"637242267", "name"=>"Kevin", "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"=>"2011-10-23 06:28:37 UTC", "updated_at"=>"2011-10-23 06:28:37 UTC"}, "id"=>"712064548"}
104
+ Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", "712064548"]]
105
+ WARNING: Can't mass-assign protected attributes: id
106
+  (0.1ms) SAVEPOINT active_record_1
107
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
108
+ [attached] save attached
109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110
+ Redirected to http://test.host/contacts
111
+ Completed 302 Found in 6ms
112
+ Processing by MainController#index as HTML
113
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
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.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70126021844360 !ruby/object:Gem::Requirement
16
+ requirement: &70129799362020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>'
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70126021844360
24
+ version_requirements: *70129799362020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &70126021843700 !ruby/object:Gem::Requirement
27
+ requirement: &70129799361100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70126021843700
35
+ version_requirements: *70129799361100
36
36
  description: Formula is a Rails form generator that generates simple clean markup.
37
37
  The project aims to let users create semantically beautiful forms without introducing
38
38
  too much syntax. The goal is to make integrating advanced layout systems as simple
@@ -116,7 +116,6 @@ files:
116
116
  - test/dummy/tmp/cache/assets/DA7/530/sprockets%2Fe36b8fcf5914a3a6bf058abfe7367b19
117
117
  - test/dummy/tmp/cache/assets/DAA/470/sprockets%2Faa2b19ddf75cee55d7f2822e3da55779
118
118
  - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
119
- - test/dummy/tmp/pids/server.pid
120
119
  - test/formula_test.rb
121
120
  - test/test_helper.rb
122
121
  homepage: http://github.com/ksylvest/formula
@@ -133,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
132
  version: '0'
134
133
  segments:
135
134
  - 0
136
- hash: -2932340427654427715
135
+ hash: -2742605594430236905
137
136
  required_rubygems_version: !ruby/object:Gem::Requirement
138
137
  none: false
139
138
  requirements:
@@ -142,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
141
  version: '0'
143
142
  segments:
144
143
  - 0
145
- hash: -2932340427654427715
144
+ hash: -2742605594430236905
146
145
  requirements: []
147
146
  rubyforge_project:
148
147
  rubygems_version: 1.8.11
@@ -217,6 +216,5 @@ test_files:
217
216
  - test/dummy/tmp/cache/assets/DA7/530/sprockets%2Fe36b8fcf5914a3a6bf058abfe7367b19
218
217
  - test/dummy/tmp/cache/assets/DAA/470/sprockets%2Faa2b19ddf75cee55d7f2822e3da55779
219
218
  - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
220
- - test/dummy/tmp/pids/server.pid
221
219
  - test/formula_test.rb
222
220
  - test/test_helper.rb
@@ -1 +0,0 @@
1
- 36436