[2012-02-12 15:10:45] ====> 2 Instant Gratification [2012-02-12 15:10:45] RAILS demo1 [2012-02-12 15:10:48] CMD bundle install [2012-02-12 15:10:49] CMD ls -p [2012-02-12 15:10:49] CMD rails generate controller Say hello goodbye [2012-02-12 15:10:53] EDIT app/controllers/say_controller.rb [2012-02-12 15:10:53] CMD ruby script/server [2012-02-12 15:10:56] INFO WEBrick 1.3.1 [2012-02-12 15:10:56] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:10:56] INFO WEBrick::HTTPServer#start: pid=19738 port=3000 [2012-02-12 15:10:57] GET /say/hello [2012-02-12 15:10:58] EDIT app/views/say/hello.html.erb [2012-02-12 15:10:58] GET /say/hello [2012-02-12 15:10:59] EDIT app/views/say/hello.html.erb [2012-02-12 15:10:59] GET /say/hello [2012-02-12 15:10:59] EDIT app/controllers/say_controller.rb [2012-02-12 15:11:00] EDIT app/views/say/hello.html.erb [2012-02-12 15:11:00] GET /say/hello [2012-02-12 15:11:00] EDIT app/views/say/goodbye.html.erb [2012-02-12 15:11:00] GET /say/goodbye [2012-02-12 15:11:01] EDIT app/views/say/hello.html.erb [2012-02-12 15:11:01] GET /say/hello [2012-02-12 15:11:01] EDIT app/views/say/goodbye.html.erb [2012-02-12 15:11:01] GET /say/goodbye [2012-02-12 15:11:01] ====> 6.1 Iteration A1: Creating the Products Maintenance Application [2012-02-12 15:11:04] RAILS depot [2012-02-12 15:11:07] CMD bundle install [2012-02-12 15:11:08] CMD ls -p [2012-02-12 15:11:08] CMD rails generate scaffold Product title:string description:text image_url:string price:decimal [2012-02-12 15:11:13] EDIT app/controllers/products_controller.rb [2012-02-12 15:11:13] EDIT app/views/products/index.html.erb [2012-02-12 15:11:13] EDIT db/migrate/20120212201112_create_products.rb [2012-02-12 15:11:13] CMD rake db:migrate [2012-02-12 15:11:17] SERVER restart [2012-02-12 15:11:17] INFO going to shutdown ... [2012-02-12 15:11:17] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:11:20] INFO WEBrick 1.3.1 [2012-02-12 15:11:20] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:11:20] INFO WEBrick::HTTPServer#start: pid=19918 port=3000 [2012-02-12 15:11:21] GET /products [2012-02-12 15:11:23] EDIT app/views/products/_form.html.erb [2012-02-12 15:11:23] POST /products [2012-02-12 15:11:23] GET /products [2012-02-12 15:11:23] CMD rake test [2012-02-12 15:11:39] ====> 6.2 Iteration A2: Making Prettier Listings [2012-02-12 15:11:39] CMD cp -v /home/rubys/git/awdwr/edition4/data/assets/* app/assets/images/ [2012-02-12 15:11:39] EDIT app/assets/stylesheets/products.css.scss [2012-02-12 15:11:39] EDIT db/seeds.rb [2012-02-12 15:11:39] CMD rake db:seed [2012-02-12 15:11:43] EDIT app/views/layouts/application.html.erb [2012-02-12 15:11:43] EDIT app/views/products/index.html.erb [2012-02-12 15:11:43] GET /products [2012-02-12 15:11:43] ====> 6.3 Playtime [2012-02-12 15:11:43] CMD git repo-config --get-regexp user.* [2012-02-12 15:11:43] CMD cat .gitignore [2012-02-12 15:11:43] CMD git init [2012-02-12 15:11:43] CMD git add . [2012-02-12 15:11:44] CMD git commit -m "Depot Scaffold" [2012-02-12 15:11:44] ====> 7.1 Iteration B1: Validation and Unit Testing [2012-02-12 15:11:44] EDIT app/models/product.rb [2012-02-12 15:11:44] POST /products [2012-02-12 15:11:44] POST /products [2012-02-12 15:11:45] EDIT app/models/product.rb [2012-02-12 15:11:45] CMD rake test [2012-02-12 15:12:00] EDIT test/functional/products_controller_test.rb [2012-02-12 15:12:00] CMD rake test [2012-02-12 15:12:16] ====> 7.2 Iteration B2: Unit Testing [2012-02-12 15:12:16] CMD ls test/unit [2012-02-12 15:12:16] EDIT test/unit/product_test.rb [2012-02-12 15:12:16] EDIT test/fixtures/products.yml [2012-02-12 15:12:17] EDIT test/fixtures/products.yml [2012-02-12 15:12:17] CMD rake test:units [2012-02-12 15:12:26] ====> 7.3 Playtime [2012-02-12 15:12:26] CMD git status [2012-02-12 15:12:26] CMD git commit -a -m 'Validation!' [2012-02-12 15:12:26] EDIT app/models/product.rb [2012-02-12 15:12:26] ====> 8.1 Iteration C1: Create the Catalog Listing [2012-02-12 15:12:26] CMD rails generate controller Store index [2012-02-12 15:12:30] EDIT config/routes.rb [2012-02-12 15:12:30] CMD rm public/index.html [2012-02-12 15:12:30] GET / [2012-02-12 15:12:30] EDIT app/controllers/store_controller.rb [2012-02-12 15:12:30] EDIT app/views/store/index.html.erb [2012-02-12 15:12:30] EDIT app/assets/stylesheets/store.css.scss [2012-02-12 15:12:30] GET / [2012-02-12 15:12:30] ====> 8.2 Iteration C2: Add a Page Layout [2012-02-12 15:12:30] EDIT app/views/layouts/application.html.erb [2012-02-12 15:12:30] CMD mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss [2012-02-12 15:12:30] EDIT app/assets/stylesheets/application.css.scss [2012-02-12 15:12:30] GET / [2012-02-12 15:12:30] ====> 8.3 Iteration C3: Use a Helper to Format the Price [2012-02-12 15:12:31] EDIT app/views/store/index.html.erb [2012-02-12 15:12:31] GET / [2012-02-12 15:12:31] ====> 8.4 Iteration C4: Functional Testing [2012-02-12 15:12:31] CMD rake test [2012-02-12 15:12:47] EDIT test/functional/store_controller_test.rb [2012-02-12 15:12:47] EDIT test/fixtures/products.yml [2012-02-12 15:12:47] CMD rake test:functionals [2012-02-12 15:12:57] ====> 8.5 Playtime [2012-02-12 15:12:57] CMD git tag iteration-b [2012-02-12 15:12:57] CMD git commit -a -m "Prettier listings" [2012-02-12 15:12:57] CMD git tag iteration-c [2012-02-12 15:12:57] ====> 9.1 Iteration D1: Finding a Cart [2012-02-12 15:12:57] CMD rails generate scaffold Cart [2012-02-12 15:13:01] CMD rake db:migrate [2012-02-12 15:13:05] EDIT app/controllers/application_controller.rb [2012-02-12 15:13:05] ====> 9.2 Iteration D2: Connecting Products to Carts [2012-02-12 15:13:05] CMD rails generate scaffold LineItem product_id:integer cart_id:integer [2012-02-12 15:13:09] CMD rake db:migrate [2012-02-12 15:13:13] EDIT app/models/cart.rb [2012-02-12 15:13:13] EDIT app/models/product.rb [2012-02-12 15:13:13] EDIT app/models/line_item.rb [2012-02-12 15:13:13] ====> 9.3 Iteration D3: Adding a button [2012-02-12 15:13:13] EDIT app/views/store/index.html.erb [2012-02-12 15:13:13] EDIT app/assets/stylesheets/store.css.scss [2012-02-12 15:13:13] GET / [2012-02-12 15:13:14] EDIT app/controllers/line_items_controller.rb [2012-02-12 15:13:15] POST /line_items?product_id=3 [2012-02-12 15:13:15] EDIT app/views/carts/show.html.erb [2012-02-12 15:13:15] POST /line_items?product_id=3 [2012-02-12 15:13:16] ====> 9.4 Playtime [2012-02-12 15:13:16] CMD rake test [2012-02-12 15:13:33] EDIT test/functional/line_items_controller_test.rb [2012-02-12 15:13:33] CMD rake test [2012-02-12 15:13:50] ====> 10.1 Iteration E1: Creating a Smarter Cart [2012-02-12 15:13:50] CMD rails generate migration add_quantity_to_line_items quantity:integer [2012-02-12 15:13:55] EDIT db/migrate/20120212201354_add_quantity_to_line_items.rb [2012-02-12 15:13:55] CMD rake db:migrate [2012-02-12 15:13:59] EDIT app/models/cart.rb [2012-02-12 15:13:59] EDIT app/controllers/line_items_controller.rb [2012-02-12 15:13:59] EDIT app/views/carts/show.html.erb [2012-02-12 15:13:59] GET /carts/1 [2012-02-12 15:13:59] CMD rails generate migration combine_items_in_cart [2012-02-12 15:14:04] EDIT db/migrate/20120212201403_combine_items_in_cart.rb [2012-02-12 15:14:04] CMD rake db:migrate [2012-02-12 15:14:08] GET /carts/1 [2012-02-12 15:14:08] EDIT db/migrate/20110711000005_combine_items_in_cart.rb [2012-02-12 15:14:08] CMD rake db:rollback [2012-02-12 15:14:12] GET /carts/1 [2012-02-12 15:14:12] CMD rake db:migrate [2012-02-12 15:14:17] POST /line_items?product_id=2 [2012-02-12 15:14:17] POST /line_items?product_id=3 [2012-02-12 15:14:17] GET /carts/wibble [2012-02-12 15:14:18] ====> 10.2 Iteration E2: Handling Errors [2012-02-12 15:14:18] EDIT app/controllers/carts_controller.rb [2012-02-12 15:14:18] GET /carts/wibble [2012-02-12 15:14:18] CMD tail -25 log/development.log [2012-02-12 15:14:18] ====> 10.3 Iteration E3: Finishing the Cart [2012-02-12 15:14:18] EDIT app/views/carts/show.html.erb [2012-02-12 15:14:19] EDIT app/controllers/carts_controller.rb [2012-02-12 15:14:19] POST /carts/1 [2012-02-12 15:14:19] EDIT app/controllers/line_items_controller.rb [2012-02-12 15:14:19] EDIT app/views/carts/show.html.erb [2012-02-12 15:14:19] EDIT app/models/line_item.rb [2012-02-12 15:14:19] EDIT app/models/cart.rb [2012-02-12 15:14:19] EDIT app/assets/stylesheets/carts.css.scss [2012-02-12 15:14:20] POST /line_items?product_id=2 [2012-02-12 15:14:20] POST /line_items?product_id=2 [2012-02-12 15:14:21] POST /line_items?product_id=3 [2012-02-12 15:14:21] ====> 10.4 Playtime [2012-02-12 15:14:21] CMD rake test [2012-02-12 15:14:38] EDIT test/fixtures/line_items.yml [2012-02-12 15:14:38] EDIT test/functional/carts_controller_test.rb [2012-02-12 15:14:38] EDIT test/unit/cart_test.rb [2012-02-12 15:14:38] CMD ruby -I test test/unit/cart_test.rb [2012-02-12 15:14:44] EDIT test/unit/cart_test.rb [2012-02-12 15:14:44] CMD ruby -I test test/unit/cart_test.rb [2012-02-12 15:14:49] CMD rake test [2012-02-12 15:15:06] EDIT test/functional/products_controller_test.rb [2012-02-12 15:15:06] CMD rake test [2012-02-12 15:15:23] CMD rails generate migration add_price_to_line_item price:decimal [2012-02-12 15:15:28] EDIT db/migrate/20120212201527_add_price_to_line_item.rb [2012-02-12 15:15:28] CMD rake db:migrate [2012-02-12 15:15:32] EDIT app/models/cart.rb [2012-02-12 15:15:32] CMD git commit -a -m "Adding a Cart" [2012-02-12 15:15:32] CMD git tag iteration-d [2012-02-12 15:15:32] ====> 11.1 Iteration F1: Moving the Cart [2012-02-12 15:15:32] EDIT app/views/line_items/_line_item.html.erb [2012-02-12 15:15:32] EDIT app/views/carts/show.html.erb [2012-02-12 15:15:32] CMD cp app/views/carts/show.html.erb app/views/carts/_cart.html.erb [2012-02-12 15:15:33] EDIT app/views/carts/_cart.html.erb [2012-02-12 15:15:33] EDIT app/views/carts/show.html.erb [2012-02-12 15:15:33] EDIT app/views/layouts/application.html.erb [2012-02-12 15:15:33] EDIT app/controllers/store_controller.rb [2012-02-12 15:15:33] EDIT app/assets/stylesheets/carts.css.scss [2012-02-12 15:15:33] EDIT app/assets/stylesheets/application.css.scss [2012-02-12 15:15:33] EDIT app/controllers/line_items_controller.rb [2012-02-12 15:15:33] POST /line_items?product_id=3 [2012-02-12 15:15:34] ====> 11.2 Iteration F2: Creating an AJAX-Based Cart [2012-02-12 15:15:34] EDIT app/views/store/index.html.erb [2012-02-12 15:15:34] EDIT app/controllers/line_items_controller.rb [2012-02-12 15:15:34] EDIT app/views/line_items/create.js.erb [2012-02-12 15:15:34] ====> 11.3 Iteration F3: Highlighting Changes [2012-02-12 15:15:35] EDIT app/controllers/line_items_controller.rb [2012-02-12 15:15:35] EDIT app/views/line_items/_line_item.html.erb [2012-02-12 15:15:35] EDIT app/views/line_items/create.js.erb [2012-02-12 15:15:35] EDIT app/assets/javascripts/application.js [2012-02-12 15:15:35] ====> 11.4 Iteration F4: Hide an Empty Cart [2012-02-12 15:15:36] EDIT app/views/line_items/create.js.erb [2012-02-12 15:15:36] CMD ls -p app [2012-02-12 15:15:36] CMD ls -p app/helpers [2012-02-12 15:15:36] EDIT app/views/layouts/application.html.erb [2012-02-12 15:15:36] EDIT app/helpers/application_helper.rb [2012-02-12 15:15:36] EDIT app/controllers/carts_controller.rb [2012-02-12 15:15:36] POST /carts/2 [2012-02-12 15:15:37] POST /line_items?product_id=2 [2012-02-12 15:15:37] ====> 11.5 Iteration F5: Making Images Clickable [2012-02-12 15:15:37] EDIT app/views/store/index.html.erb [2012-02-12 15:15:37] EDIT app/assets/javascripts/store.js.coffee [2012-02-12 15:15:37] GET / [2012-02-12 15:15:38] CMD rake test [2012-02-12 15:15:56] ====> 11.6 Iteration F6: Testing AJAX changes [2012-02-12 15:15:56] GET /products [2012-02-12 15:15:56] EDIT app/views/layouts/application.html.erb [2012-02-12 15:15:56] EDIT test/functional/line_items_controller_test.rb [2012-02-12 15:15:57] EDIT test/functional/line_items_controller_test.rb [2012-02-12 15:15:57] EDIT test/functional/store_controller_test.rb [2012-02-12 15:15:57] CMD rake test [2012-02-12 15:16:14] CMD git commit -a -m "AJAX" [2012-02-12 15:16:14] CMD git tag iteration-f [2012-02-12 15:16:14] ====> 12.1 Iteration G1: Capturing an Order [2012-02-12 15:16:14] CMD rails generate scaffold Order name:string address:text email:string pay_type:string [2012-02-12 15:16:18] CMD rails generate migration add_order_id_to_line_item order_id:integer [2012-02-12 15:16:22] CMD rake db:migrate [2012-02-12 15:16:26] EDIT app/views/carts/_cart.html.erb [2012-02-12 15:16:26] EDIT app/controllers/orders_controller.rb [2012-02-12 15:16:26] EDIT test/functional/orders_controller_test.rb [2012-02-12 15:16:26] EDIT app/views/orders/new.html.erb [2012-02-12 15:16:26] EDIT app/views/orders/_form.html.erb [2012-02-12 15:16:26] EDIT app/models/order.rb [2012-02-12 15:16:26] EDIT app/assets/stylesheets/application.css.scss [2012-02-12 15:16:27] EDIT app/models/order.rb [2012-02-12 15:16:27] EDIT test/fixtures/orders.yml [2012-02-12 15:16:27] EDIT test/fixtures/line_items.yml [2012-02-12 15:16:27] EDIT app/models/line_item.rb [2012-02-12 15:16:27] EDIT app/models/order.rb [2012-02-12 15:16:27] EDIT app/controllers/orders_controller.rb [2012-02-12 15:16:28] EDIT app/models/order.rb [2012-02-12 15:16:28] EDIT test/functional/orders_controller_test.rb [2012-02-12 15:16:28] POST /orders [2012-02-12 15:16:29] POST /orders [2012-02-12 15:16:30] DB select * from orders [2012-02-12 15:16:30] DB select * from line_items [2012-02-12 15:16:30] EDIT app/views/line_items/create.js.erb [2012-02-12 15:16:30] ====> 12.2 Iteration G2: Atom Feeds [2012-02-12 15:16:30] EDIT app/controllers/products_controller.rb [2012-02-12 15:16:30] EDIT app/views/products/who_bought.atom.builder [2012-02-12 15:16:30] EDIT app/models/product.rb [2012-02-12 15:16:30] EDIT config/routes.rb [2012-02-12 15:16:30] CMD curl --silent --user dave:secret http://localhost:3000/products/2/who_bought.atom [2012-02-12 15:16:30] ====> 12.3 Iteration G3: Pagination [2012-02-12 15:16:30] EDIT Gemfile [2012-02-12 15:16:35] SERVER restart [2012-02-12 15:16:35] INFO going to shutdown ... [2012-02-12 15:16:35] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:16:38] INFO WEBrick 1.3.1 [2012-02-12 15:16:38] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:16:38] INFO WEBrick::HTTPServer#start: pid=21606 port=3000 [2012-02-12 15:16:41] CMD bundle show [2012-02-12 15:16:42] EDIT script/load_orders.rb [2012-02-12 15:16:42] CMD rails runner script/load_orders.rb [2012-02-12 15:16:46] EDIT app/controllers/orders_controller.rb [2012-02-12 15:16:46] EDIT app/views/orders/index.html.erb [2012-02-12 15:16:46] GET /orders [2012-02-12 15:16:47] ====> 12.4 Playtime [2012-02-12 15:16:47] EDIT app/controllers/products_controller.rb [2012-02-12 15:16:47] CMD curl --silent --user dave:secret http://localhost:3000/products/2/who_bought.atom [2012-02-12 15:16:48] EDIT app/controllers/products_controller.rb [2012-02-12 15:16:48] CMD curl --silent --user dave:secret http://localhost:3000/products/2/who_bought.xml [2012-02-12 15:16:48] EDIT app/views/products/who_bought.html.erb [2012-02-12 15:16:48] EDIT app/controllers/products_controller.rb [2012-02-12 15:16:48] CMD curl --silent --user dave:secret http://localhost:3000/products/2/who_bought [2012-02-12 15:16:49] EDIT app/controllers/products_controller.rb [2012-02-12 15:16:49] CMD curl --silent --user dave:secret http://localhost:3000/products/2/who_bought.json [2012-02-12 15:16:49] EDIT app/views/products/who_bought.xml.builder [2012-02-12 15:16:49] EDIT app/controllers/products_controller.rb [2012-02-12 15:16:49] CMD curl --silent --user dave:secret http://localhost:3000/products/2/who_bought.xml [2012-02-12 15:16:49] CMD rake test [2012-02-12 15:17:07] CMD git commit -a -m "Orders" [2012-02-12 15:17:07] CMD git tag iteration-g [2012-02-12 15:17:08] ====> 13.1 Iteration H1: Email Notifications [2012-02-12 15:17:08] CMD rails generate mailer OrderNotifier received shipped [2012-02-12 15:17:11] EDIT config/environments/development.rb [2012-02-12 15:17:12] EDIT app/mailers/order_notifier.rb [2012-02-12 15:17:12] EDIT app/views/order_notifier/received.text.erb [2012-02-12 15:17:12] EDIT app/views/line_items/_line_item.text.erb [2012-02-12 15:17:12] EDIT app/mailers/order_notifier.rb [2012-02-12 15:17:12] EDIT app/controllers/orders_controller.rb [2012-02-12 15:17:12] EDIT app/views/order_notifier/shipped.html.erb [2012-02-12 15:17:12] EDIT app/views/line_items/_line_item.html.erb [2012-02-12 15:17:12] EDIT test/functional/order_notifier_test.rb [2012-02-12 15:17:12] CMD rake db:test:load [2012-02-12 15:17:17] CMD ruby -I test test/functional/order_notifier_test.rb [2012-02-12 15:17:23] ====> 13.2 Iteration H2: Integration Tests [2012-02-12 15:17:23] CMD rails generate integration_test user_stories [2012-02-12 15:17:27] EDIT test/integration/user_stories_test.rb [2012-02-12 15:17:27] CMD rake test:integration [2012-02-12 15:17:39] CMD rails generate integration_test user_stories [2012-02-12 15:17:42] EDIT test/integration/dsl_user_stories_test.rb [2012-02-12 15:17:42] CMD rake test:integration [2012-02-12 15:17:54] ====> 13.3 Playtime [2012-02-12 15:17:54] CMD git commit -a -m "formats" [2012-02-12 15:17:54] CMD git tag iteration-h [2012-02-12 15:17:54] ====> 14.1 Iteration I1: Adding Users [2012-02-12 15:17:54] CMD rails generate scaffold User name:string password_digest:string [2012-02-12 15:17:58] EDIT Gemfile [2012-02-12 15:17:58] SERVER restart [2012-02-12 15:17:58] INFO going to shutdown ... [2012-02-12 15:17:58] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:18:02] INFO WEBrick 1.3.1 [2012-02-12 15:18:02] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:18:02] INFO WEBrick::HTTPServer#start: pid=22049 port=3000 [2012-02-12 15:18:05] CMD rake db:migrate [2012-02-12 15:18:09] EDIT app/models/user.rb [2012-02-12 15:18:09] EDIT app/controllers/users_controller.rb [2012-02-12 15:18:10] EDIT app/controllers/users_controller.rb [2012-02-12 15:18:11] EDIT app/controllers/users_controller.rb [2012-02-12 15:18:11] EDIT app/views/users/index.html.erb [2012-02-12 15:18:11] EDIT app/views/users/_form.html.erb [2012-02-12 15:18:11] GET /users [2012-02-12 15:18:11] POST /users [2012-02-12 15:18:11] DB select * from users [2012-02-12 15:18:11] EDIT test/functional/users_controller_test.rb [2012-02-12 15:18:11] ====> 14.2 Iteration I2: Authenticating Users [2012-02-12 15:18:11] CMD rails generate controller Sessions new create destroy [2012-02-12 15:18:15] CMD rails generate controller Admin index [2012-02-12 15:18:18] EDIT app/controllers/sessions_controller.rb [2012-02-12 15:18:18] EDIT app/views/sessions/new.html.erb [2012-02-12 15:18:19] EDIT app/views/admin/index.html.erb [2012-02-12 15:18:19] EDIT app/controllers/admin_controller.rb [2012-02-12 15:18:19] EDIT config/routes.rb [2012-02-12 15:18:19] POST /login [2012-02-12 15:18:20] EDIT test/functional/sessions_controller_test.rb [2012-02-12 15:18:20] EDIT test/fixtures/users.yml [2012-02-12 15:18:20] CMD rake test [2012-02-12 15:18:48] ====> 14.3 Iteration I3: Limiting Access [2012-02-12 15:18:48] EDIT app/controllers/application_controller.rb [2012-02-12 15:18:48] EDIT app/controllers/sessions_controller.rb [2012-02-12 15:18:48] EDIT app/controllers/store_controller.rb [2012-02-12 15:18:48] EDIT app/controllers/carts_controller.rb [2012-02-12 15:18:48] EDIT app/controllers/line_items_controller.rb [2012-02-12 15:18:48] EDIT app/controllers/orders_controller.rb [2012-02-12 15:18:48] EDIT test/test_helper.rb [2012-02-12 15:18:48] CMD rake test [2012-02-12 15:19:17] ====> 14.4 Iteration I4: Adding a Sidebar [2012-02-12 15:19:17] EDIT app/views/layouts/application.html.erb [2012-02-12 15:19:17] POST /logout [2012-02-12 15:19:17] GET / [2012-02-12 15:19:18] GET /products [2012-02-12 15:19:18] POST /login [2012-02-12 15:19:18] GET /products [2012-02-12 15:19:18] GET /users [2012-02-12 15:19:19] CMD rake test [2012-02-12 15:19:47] EDIT app/models/user.rb [2012-02-12 15:19:47] EDIT app/controllers/users_controller.rb [2012-02-12 15:19:47] ====> 14.5 Playtime [2012-02-12 15:19:47] EDIT test/functional/products_controller_test.rb [2012-02-12 15:19:47] CMD rake test:functionals [2012-02-12 15:20:01] CMD sqlite3 db/development.sqlite3 .schema [2012-02-12 15:20:01] CMD curl --silent http://localhost:3000/products/2/who_bought.xml [2012-02-12 15:20:01] ISSUE Is this the best way to detect request format? [2012-02-12 15:20:01] EDIT app/controllers/application_controller.rb [2012-02-12 15:20:01] CMD curl --silent --user dave:secret http://localhost:3000/products/2/who_bought.xml [2012-02-12 15:20:01] ====> 15.1 Task J1: Selecting the locale [2012-02-12 15:20:01] EDIT config/initializers/i18n.rb [2012-02-12 15:20:01] SERVER restart [2012-02-12 15:20:01] INFO going to shutdown ... [2012-02-12 15:20:01] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:20:05] INFO WEBrick 1.3.1 [2012-02-12 15:20:05] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:20:05] INFO WEBrick::HTTPServer#start: pid=22553 port=3000 [2012-02-12 15:20:07] EDIT config/routes.rb [2012-02-12 15:20:07] EDIT app/controllers/application_controller.rb [2012-02-12 15:20:07] GET /en [2012-02-12 15:20:08] GET /es [2012-02-12 15:20:08] ====> 15.2 Task J2: translating the store front [2012-02-12 15:20:08] EDIT app/views/layouts/application.html.erb [2012-02-12 15:20:08] CMD cp -r /home/rubys/git/awdwr/edition4/data/i18n/*.yml config/locales [2012-02-12 15:20:09] EDIT config/locales/en.yml [2012-02-12 15:20:09] EDIT config/locales/es.yml [2012-02-12 15:20:09] SERVER restart [2012-02-12 15:20:09] INFO going to shutdown ... [2012-02-12 15:20:09] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:20:12] INFO WEBrick 1.3.1 [2012-02-12 15:20:12] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:20:12] INFO WEBrick::HTTPServer#start: pid=22585 port=3000 [2012-02-12 15:20:15] GET /es [2012-02-12 15:20:15] EDIT app/views/store/index.html.erb [2012-02-12 15:20:15] EDIT config/locales/en.yml [2012-02-12 15:20:15] EDIT config/locales/es.yml [2012-02-12 15:20:15] GET /es [2012-02-12 15:20:15] EDIT app/views/carts/_cart.html.erb [2012-02-12 15:20:16] EDIT config/locales/en.yml [2012-02-12 15:20:16] EDIT config/locales/es.yml [2012-02-12 15:20:16] EDIT config/locales/es.yml [2012-02-12 15:20:16] POST /es/line_items?product_id=2 [2012-02-12 15:20:17] ====> 15.3 Task J3: Translating Checkout [2012-02-12 15:20:17] EDIT app/views/orders/new.html.erb [2012-02-12 15:20:17] EDIT app/views/orders/_form.html.erb [2012-02-12 15:20:17] EDIT config/locales/en.yml [2012-02-12 15:20:17] EDIT config/locales/es.yml [2012-02-12 15:20:17] POST /es/line_items?product_id=2 [2012-02-12 15:20:18] POST /es/orders [2012-02-12 15:20:18] EDIT config/locales/es.yml [2012-02-12 15:20:18] EDIT app/views/orders/_form.html.erb [2012-02-12 15:20:19] EDIT config/locales/es.yml [2012-02-12 15:20:19] POST /es/orders [2012-02-12 15:20:19] EDIT app/controllers/orders_controller.rb [2012-02-12 15:20:19] EDIT config/locales/en.yml [2012-02-12 15:20:19] EDIT config/locales/es.yml [2012-02-12 15:20:20] POST /es/orders [2012-02-12 15:20:22] ====> 15.4 Task J4: Add a locale switcher. [2012-02-12 15:20:22] EDIT app/assets/stylesheets/application.css.scss [2012-02-12 15:20:22] EDIT app/controllers/store_controller.rb [2012-02-12 15:20:22] EDIT app/views/layouts/application.html.erb [2012-02-12 15:20:22] POST /en [2012-02-12 15:20:23] CMD rake test [2012-02-12 15:20:51] ====> 16 Deployment [2012-02-12 15:20:51] CMD git add . [2012-02-12 15:20:51] CMD git commit -a -m "save work" [2012-02-12 15:20:51] EDIT config/database.yml [2012-02-12 15:20:51] EDIT Gemfile [2012-02-12 15:20:51] CMD bundle install [2012-02-12 15:20:52] CMD rake db:setup RAILS_ENV=production [2012-02-12 15:20:58] CMD bundle pack [2012-02-12 15:20:59] CMD capify . [2012-02-12 15:21:01] EDIT config/deploy.rb [2012-02-12 15:21:01] EDIT Capfile [2012-02-12 15:21:01] CMD rake assets:precompile [2012-02-12 15:21:31] CMD ls public/assets [2012-02-12 15:21:31] EDIT config/environments/production.rb [2012-02-12 15:21:31] CMD echo "Depot::Application.configure { paths['log'].first }" | IRBRC=tmp/irbrc rails console production [2012-02-12 15:21:37] CMD git st [2012-02-12 15:21:37] ====> 17 Retrospective [2012-02-12 15:21:37] EDIT doc/README_FOR_APP [2012-02-12 15:21:37] CMD rake doc:app [2012-02-12 15:21:41] CMD rake stats [2012-02-12 15:21:44] ====> 18 Finding Your Way Around [2012-02-12 15:21:44] CMD rake db:version [2012-02-12 15:21:49] EDIT lib/tasks/db_schema_migrations.rake [2012-02-12 15:21:49] CMD rake db:schema_migrations [2012-02-12 15:21:54] CMD ls log [2012-02-12 15:21:54] CMD find script -type f [2012-02-12 15:21:54] CMD echo "puts $:" | IRBRC=tmp/irbrc rails console [2012-02-12 15:21:59] ====> 19 Active Record [2012-02-12 15:21:59] EDIT config/initializers/inflections.rb [2012-02-12 15:21:59] ====> 20.1 Testing Routes [2012-02-12 15:21:59] EDIT test/unit/routing_test.rb [2012-02-12 15:21:59] CMD rake test:units [2012-02-12 15:22:13] ====> 21.1 Views [2012-02-12 15:22:13] EDIT app/views/products/index.xml.builder [2012-02-12 15:22:13] EDIT app/controllers/products_controller.rb [2012-02-12 15:22:13] CMD curl --silent --user dave:secret http://localhost:3000/products.xml [2012-02-12 15:22:14] IRB helpers/date.rb [2012-02-12 15:22:15] IRB helpers/number.rb [2012-02-12 15:22:17] ====> 21.2 Form Helpers [2012-02-12 15:22:17] RAILS views [2012-02-12 15:22:21] CMD bundle install [2012-02-12 15:22:22] CMD rails generate model model input:string address:text color:string ketchup:boolean mustard:boolean mayonnaise:boolean start:date alarm:time [2012-02-12 15:22:26] CMD rails generate controller Form input [2012-02-12 15:22:29] CMD rake db:migrate [2012-02-12 15:22:33] SERVER restart [2012-02-12 15:22:33] INFO going to shutdown ... [2012-02-12 15:22:33] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:22:37] INFO WEBrick 1.3.1 [2012-02-12 15:22:37] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:22:37] INFO WEBrick::HTTPServer#start: pid=23360 port=3000 [2012-02-12 15:22:38] EDIT app/views/form/input.html.erb [2012-02-12 15:22:38] GET /form/input [2012-02-12 15:22:39] ====> 22 Caching [2012-02-12 15:22:39] SERVER restart [2012-02-12 15:22:39] INFO going to shutdown ... [2012-02-12 15:22:39] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:22:43] INFO WEBrick 1.3.1 [2012-02-12 15:22:43] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:22:43] INFO WEBrick::HTTPServer#start: pid=23541 port=3000 [2012-02-12 15:22:48] CMD curl --silent --head http://localhost:3000/ [2012-02-12 15:22:48] EDIT app/models/product.rb [2012-02-12 15:22:48] EDIT app/controllers/store_controller.rb [2012-02-12 15:22:48] CMD curl --silent --head http://localhost:3000/ [2012-02-12 15:22:48] CMD curl --silent --head http://localhost:3000/ -H 'If-None-Match: "b671938684ee715b4646b3d1098566a4"' [2012-02-12 15:22:48] CMD curl --silent --head http://localhost:3000/ -H 'If-Modified-Since: Sun, 12 Feb 2012 20:11:43 GMT' [2012-02-12 15:22:48] EDIT config/environments/development.rb [2012-02-12 15:22:49] SERVER restart [2012-02-12 15:22:49] INFO going to shutdown ... [2012-02-12 15:22:49] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:22:53] INFO WEBrick 1.3.1 [2012-02-12 15:22:53] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:22:53] INFO WEBrick::HTTPServer#start: pid=23630 port=3000 cache: [GET /] miss, store [2012-02-12 15:22:56] CMD curl --silent --head http://localhost:3000/ cache: [HEAD /] fresh cache: [GET /] fresh [2012-02-12 15:22:56] CMD curl --silent --head http://localhost:3000/ -H 'If-None-Match: "b671938684ee715b4646b3d1098566a4"' cache: [HEAD /] fresh [2012-02-12 15:22:56] ====> 24.3 Active Resources [2012-02-12 15:22:56] RAILS depot_client [2012-02-12 15:22:59] CMD bundle install [2012-02-12 15:23:00] EDIT app/models/product.rb [2012-02-12 15:23:00] CMD echo "Product.find(2).title" | IRBRC=tmp/irbrc rails console cache: [GET /products/2.json] miss [2012-02-12 15:23:05] EDIT app/controllers/line_items_controller.rb [2012-02-12 15:23:05] EDIT config/routes.rb [2012-02-12 15:23:05] CMD echo "Product.find(2).title" | IRBRC=tmp/irbrc rails console cache: [GET /products/2.json] miss [2012-02-12 15:23:09] CMD echo "p = Product.find(2)\\nputs p.price\\np.price = BigDecimal.new(p.price)-5\\np.save" | IRBRC=tmp/irbrc rails console cache: [GET /products/2.json] miss cache: [PUT /products/2.json] invalidate, pass [2012-02-12 15:23:14] CMD rm -rf /home/rubys/git/awdwr/edition4/work-200/depot/tmp/cache [2012-02-12 15:23:14] GET / cache: [GET /] miss, store cache: [GET /login] miss [2012-02-12 15:23:14] POST /login?locale=en cache: [POST /login?locale=en] invalidate, pass cache: [GET /admin?locale=en] miss [2012-02-12 15:23:15] GET /products/2 cache: [GET /products/2] miss [2012-02-12 15:23:15] EDIT app/models/order.rb [2012-02-12 15:23:15] CMD echo "Order.find(1).name\\nOrder.find(1).line_items\\n" | IRBRC=tmp/irbrc rails console cache: [GET /orders/1.json] miss cache: [GET /orders/1.json] miss [2012-02-12 15:23:19] EDIT app/models/line_item.rb cache: [GET /admin] miss [2012-02-12 15:23:19] POST /logout?locale=en cache: [POST /logout?locale=en] invalidate, pass cache: [GET /en] miss, store [2012-02-12 15:23:20] CMD echo "LineItem.find(:all, :params => {:order_id=>1})" | IRBRC=tmp/irbrc rails console cache: [GET /orders/1/line_items.json] miss [2012-02-12 15:23:24] GET /orders/1/line_items.json cache: [GET /orders/1/line_items.json] miss [2012-02-12 15:23:24] EDIT app/controllers/line_items_controller.rb [2012-02-12 15:23:24] GET /orders/1/line_items.xml cache: [GET /orders/1/line_items.xml] miss [2012-02-12 15:23:24] CMD echo "LineItem.format = :xml\\nli = LineItem.find(:all, :params => {:order_id=>1}).first\\nputs li.price\\nli.price *= 0.8\\nli.save" | IRBRC=tmp/irbrc rails console cache: [GET /orders/1/line_items.xml] miss cache: [PUT /orders/1/line_items/10.xml] invalidate, pass [2012-02-12 15:23:29] CMD echo "li2 = LineItem.new(:order_id=>1, :product_id=>2, :quantity=>1, :price=>0.0)\\nli2.save" | IRBRC=tmp/irbrc rails console cache: [POST /orders/1/line_items.json] invalidate, pass [2012-02-12 15:23:33] ====> 25.1 rack [2012-02-12 15:23:33] EDIT store.ru [2012-02-12 15:23:33] EDIT app/store.rb [2012-02-12 15:23:33] EDIT config/routes.rb [2012-02-12 15:23:33] GET /store cache: [GET /store] miss [2012-02-12 15:23:33] ====> 25.2 rake [2012-02-12 15:23:33] EDIT lib/tasks/db_backup.rake [2012-02-12 15:23:33] CMD rake db:backup [2012-02-12 15:23:38] EDIT app/views/store/index.html.erb [2012-02-12 15:23:38] EDIT app/store.rb [2012-02-12 15:23:38] ====> 26.1 Active Merchant [2012-02-12 15:23:38] EDIT Gemfile [2012-02-12 15:23:38] CMD bundle install [2012-02-12 15:23:40] EDIT script/creditcard.rb [2012-02-12 15:23:40] CMD rails runner script/creditcard.rb [2012-02-12 15:23:50] ====> 26.3 HAML [2012-02-12 15:23:50] EDIT Gemfile [2012-02-12 15:23:50] CMD bundle install [2012-02-12 15:23:51] CMD rails runner "require 'haml'" [2012-02-12 15:24:02] SERVER restart [2012-02-12 15:24:02] INFO going to shutdown ... [2012-02-12 15:24:02] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:24:07] INFO WEBrick 1.3.1 [2012-02-12 15:24:07] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:24:07] INFO WEBrick::HTTPServer#start: pid=24192 port=3000 cache: [GET /] fresh [2012-02-12 15:24:07] CMD cat app/views/store/index.html.erb [2012-02-12 15:24:08] CMD rm app/views/store/index.html.erb [2012-02-12 15:24:08] EDIT app/views/store/index.html.haml [2012-02-12 15:24:08] GET / cache: [GET /] fresh [2012-02-12 15:24:08] ====> 99 cleanup [2012-02-12 15:24:08] EDIT config/environments/development.rb [2012-02-12 15:24:08] CMD rm -f public/assets/* [2012-02-12 15:24:08] CMD rm -rf tmp/*cache/* [2012-02-12 15:24:08] SERVER restart [2012-02-12 15:24:08] INFO going to shutdown ... [2012-02-12 15:24:08] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:24:13] INFO WEBrick 1.3.1 [2012-02-12 15:24:13] INFO ruby 2.0.0 (2012-02-12) [x86_64-linux] [2012-02-12 15:24:13] INFO WEBrick::HTTPServer#start: pid=24238 port=3000 [2012-02-12 15:24:18] INFO going to shutdown ... [2012-02-12 15:24:18] INFO WEBrick::HTTPServer#start done. [2012-02-12 15:24:18] CMD echo $PATH [2012-02-12 15:24:18] CMD node -v [2012-02-12 15:24:18] CMD /home/rubys/.rvm/rubies/ruby-head-n34575/bin/ruby -v [2012-02-12 15:24:18] CMD gem -v [2012-02-12 15:24:19] CMD bundle show [2012-02-12 15:24:20] CMD rake about [2012-02-12 15:24:26] CMD git log -1 [2012-02-12 15:24:26] WRITE work-200/makedepot.html [2012-02-12 15:24:26] CHECK makedepot.html Loaded suite DepotTest Started ............................................ Finished in 2.219017886 seconds. 44 tests, 137 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed 19.83 tests/s, 61.74 assertions/s