formula 0.3.2 → 0.3.3
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/lib/formula/version.rb
    CHANGED
    
    
| 
         @@ -4,23 +4,15 @@ 
     | 
|
| 
       4 
4 
     | 
    
         
             
                <h1>Contacts</h1>
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
                <table>
         
     | 
| 
       7 
     | 
    
         
            -
                   
     | 
| 
       8 
     | 
    
         
            -
                    < 
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       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>
         
     | 
    
        data/test/dummy/config/routes.rb
    CHANGED
    
    
    
        data/test/dummy/db/test.sqlite3
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/test/dummy/log/test.log
    CHANGED
    
    | 
         @@ -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 
     | 
    
         
            +
              [1m[36mFixture Delete (0.4ms)[0m  [1mDELETE FROM "contacts"[0m
         
     | 
| 
      
 58 
     | 
    
         
            +
              [1m[35mFixture Insert (0.2ms)[0m  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 
     | 
    
         
            +
              [1m[36mFixture Delete (0.1ms)[0m  [1mDELETE FROM "groups"[0m
         
     | 
| 
      
 60 
     | 
    
         
            +
              [1m[35mFixture Insert (0.1ms)[0m  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 
     | 
    
         
            +
              [1m[36mFixture Insert (0.0ms)[0m  [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Designer', '2011-10-23 06:28:37', '2011-10-23 06:28:37', 866180701)[0m
         
     | 
| 
      
 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 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 67 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK TO SAVEPOINT active_record_1[0m
         
     | 
| 
      
 68 
     | 
    
         
            +
              [1m[35mGroup Load (0.2ms)[0m  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 
     | 
    
         
            +
              [1m[36mContact Load (0.3ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1[0m  [["id", 712064548]]
         
     | 
| 
      
 73 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  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 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 78 
     | 
    
         
            +
              [1m[35mGroup Load (0.2ms)[0m  SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
         
     | 
| 
      
 79 
     | 
    
         
            +
            [attached] save attached
         
     | 
| 
      
 80 
     | 
    
         
            +
              [1m[36mSQL (1.3ms)[0m  [1mINSERT INTO "contacts" ("avatar_extension", "avatar_identifier", "avatar_size", "created_at", "details", "email", "group_id", "name", "phone", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m  [["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 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 82 
     | 
    
         
            +
            Redirected to http://test.host/contacts
         
     | 
| 
      
 83 
     | 
    
         
            +
            Completed 302 Found in 38ms
         
     | 
| 
      
 84 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSELECT COUNT(*) FROM "contacts" [0m
         
     | 
| 
      
 85 
     | 
    
         
            +
              [1m[35mContact Load (0.1ms)[0m  SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1  [["id", 712064548]]
         
     | 
| 
      
 86 
     | 
    
         
            +
              Processing by ContactsController#edit as HTML
         
     | 
| 
      
 87 
     | 
    
         
            +
              Parameters: {"id"=>"712064548"}
         
     | 
| 
      
 88 
     | 
    
         
            +
              [1m[36mContact Load (0.1ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1[0m  [["id", "712064548"]]
         
     | 
| 
      
 89 
     | 
    
         
            +
              [1m[35mGroup Load (0.2ms)[0m  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 
     | 
    
         
            +
              [1m[36mContact Load (0.1ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1[0m  [["id", 712064548]]
         
     | 
| 
      
 93 
     | 
    
         
            +
              Processing by ContactsController#index as HTML
         
     | 
| 
      
 94 
     | 
    
         
            +
              [1m[35mContact Load (0.1ms)[0m  SELECT "contacts".* FROM "contacts" 
         
     | 
| 
      
 95 
     | 
    
         
            +
            Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
         
     | 
| 
      
 96 
     | 
    
         
            +
              [1m[36mContact Load (0.1ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1[0m  [["id", 712064548]]
         
     | 
| 
      
 97 
     | 
    
         
            +
              Processing by ContactsController#new as HTML
         
     | 
| 
      
 98 
     | 
    
         
            +
              [1m[35mGroup Load (0.1ms)[0m  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 
     | 
    
         
            +
              [1m[36mContact Load (0.1ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1[0m  [["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 
     | 
    
         
            +
              [1m[35mContact Load (0.1ms)[0m  SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1  [["id", "712064548"]]
         
     | 
| 
      
 105 
     | 
    
         
            +
            WARNING: Can't mass-assign protected attributes: id
         
     | 
| 
      
 106 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 107 
     | 
    
         
            +
              [1m[35mGroup Load (0.1ms)[0m  SELECT "groups".* FROM "groups" WHERE "groups"."id" = 637242267 LIMIT 1
         
     | 
| 
      
 108 
     | 
    
         
            +
            [attached] save attached
         
     | 
| 
      
 109 
     | 
    
         
            +
              [1m[36m (0.0ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 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. 
     | 
| 
      
 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: & 
     | 
| 
      
 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: * 
     | 
| 
      
 24 
     | 
    
         
            +
              version_requirements: *70129799362020
         
     | 
| 
       25 
25 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       26 
26 
     | 
    
         
             
              name: sqlite3
         
     | 
| 
       27 
     | 
    
         
            -
              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: * 
     | 
| 
      
 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: - 
     | 
| 
      
 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: - 
     | 
| 
      
 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
         
     |