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