Skip to content

Instantly share code, notes, and snippets.

View bourroush's full-sized avatar

Guillaume Bourrousse bourroush

View GitHub Profile
<!DOCTYPE html>
<html>
<!--[if IE 7]> <html class="ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="ie8 oldie" lang="en"> <![endif]-->
<head>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1' name='viewport'>
<title>Bluesound - HiFi for a wireless generation</title>
<link href="//fast.fonts.com/cssapi/eb441a1c-269a-43d2-a398-34eb6a34ddfc.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/assets/MyFontsWebfontsKit.css" media="screen" rel="stylesheet" type="text/css" />
Pending:
Spree::ShippingMethod gift cards only gift cards in order should only return electronic shipping methods for gift card only orders
# Implemented, but requires test coverage
# ./spec/models/spree/shipping_method_spec.rb:12
AddToCartFormWidget receiving an :add_to_cart event reveals the mini-cart
# implemented, but lacking test coverage
# ./spec/widgets/add_to_cart_form_widget_spec.rb:137
AddToCartFormWidget rendering the widget does not reveal the mini-cart
# implemented, but lacking test coverage
# ./spec/widgets/add_to_cart_form_widget_spec.rb:27
Installing bourbon (1.3.6)
Installing bcrypt-ruby (3.0.1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/opt/boxen/rbenv/versions/1.9.2-p320/bin/ruby extconf.rb
creating Makefile
make
/opt/boxen/homebrew/bin/gcc-4.2 -I. -I/opt/boxen/rbenv/versions/1.9.2-p320/include/ruby-1.9.1/x86_64-darwin12.2.0 -I/opt/boxen/rbenv/versions/1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/opt/boxen/rbenv/versions/1.9.2-p320/include/ruby-1.9.1 -I. -I'/opt/boxen/rbenv/versions/1.9.2-p320/include' -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -o bcrypt_ext.o -c bcrypt_ext.c
make: /opt/boxen/homebrew/bin/gcc-4.2: No such file or directory
Last login: Mon Jan 13 17:03:09 on ttys000
➜ ~ cd Sites/modcloth-demo
➜ modcloth-demo git:(master) bundle
Fetching source index from https://rubygems.org/
Using rake (10.0.4)
Using i18n (0.6.1)
Using multi_json (1.7.2)
Using activesupport (3.2.13)
Using builder (3.0.4)
Using activemodel (3.2.13)
namespace :maintenance do
desc "Switches the home page for a page with a given slug"
task :switch_home_page, [:site_code, :slug] => [:environment] do |t, args|
def main(args)
@args = args
switch_slugs(classic_page, original_home_page)
assign_new_home_page(classic_page)
➜ tarkett-sports-cms git:(hotfix/switch-home-page-task-fix) rake "maintenance:switch_home_page['beynon','beynon-homepage']" --trace
** Invoke maintenance:switch_home_page (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute maintenance:switch_home_page
rake aborted!
undefined method `contents' for nil:NilClass
/Users/boris/Sites/tarkett-sports-cms/lib/tasks/maintenance/switch_home_page.rake:48:in `classic_page'
/Users/boris/Sites/tarkett-sports-cms/lib/tasks/maintenance/switch_home_page.rake:9:in `main'
/Users/boris/Sites/tarkett-sports-cms/lib/tasks/maintenance/switch_home_page.rake:59:in `block (2 levels) in <top (required)>'
-> 0.0030s
-- initialize_schema_migrations_table()
-> 0.0028s
Email: |[email protected]| Password: |123456|
First Name: |Admin|
Last Name: |User|
rake aborted!
unknown attribute: account_type
/Users/boris/src/zweet/.bundle/ruby/2.0.0/gems/activerecord-4.0.3/lib/active_record/attribute_assignment.rb:47:in `rescue in _assign_attribute'
/Users/boris/src/zweet/.bundle/ruby/2.0.0/gems/activerecord-4.0.3/lib/active_record/attribute_assignment.rb:42:in `_assign_attribute'
➜ zweet git:(features/mturk-mvp) ✗ mkdir -p tmp/psql
➜ zweet git:(features/mturk-mvp) ✗ script/bootstrap
Would you like to (re)initialize the database? (y/n) n
Would you like to retrieve a database snapshot from staging? (y/n) y
Creating database snapshot...
Restoring database snapshot...
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2275; 1259 25142 INDEX index_receipts_on_chain_id u89yid
pg_restore: [archiver (db)] could not execute query: ERROR: index "index_receipts_on_chain_id" does not exist
Command was: DROP INDEX public.index_receipts_on_chain_id;
➜ zweet git:(features/mturk-mvp) ✗ script/bootstrap
Would you like to (re)initialize the database? (y/n) n
Would you like to retrieve a database snapshot from staging? (y/n) y
Creating database snapshot...
Restoring database snapshot...
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2428; 2606 17793 CONSTRAINT withdrawals_pkey uji7vm
pg_restore: [archiver (db)] could not execute query: ERROR: constraint "withdrawals_pkey" of relation "withdrawals" does not exist
Command was: ALTER TABLE ONLY public.withdrawals DROP CONSTRAINT withdrawals_pkey;
var to = payload.order.email;
var params = payload.parameters;
var email = {};
var template = null;
for (var i = 0; i < payload.parameters.length; i++) {
if (payload.parameters[i].name === 'mandrill.order_confirmation.template') {
template = payload.parameters[i].value;
}
}