I hereby claim:
- I am trappist on github.
- I am trappist (https://keybase.io/trappist) on keybase.
- I have a public key ASDunj4asLbxBUugGXYZpex-Z3RhgzOhzXiiUeU0N0e85Ao
To claim this, I am signing this object:
Started POST "/populate.json" for 76.255.177.25 at 2013-04-03 01:36:50 +0000 | |
Processing by Spree::OrdersController#populate as JSON | |
Parameters: {"variant_id"=>"158273"} | |
Spree::User Load (45.6ms) SELECT `spree_users`.* FROM `spree_users` WHERE `spree_users`.`id` = 365604 LIMIT 1 | |
Spree::Order Load (4.2ms) SELECT `spree_orders`.* FROM `spree_orders` WHERE `spree_orders`.`user_id` = 365604 AND `spree_orders`.`completed_at` IS NULL ORDER BY created_at ASC LIMIT 1 | |
Spree::Order Load (4.3ms) SELECT `spree_orders`.* FROM `spree_orders` WHERE `spree_orders`.`id` = 509291 LIMIT 1 | |
Spree::Adjustment Load (4.6ms) SELECT `spree_adjustments`.* FROM `spree_adjustments` WHERE `spree_adjustments`.`adjustable_type` = 'Spree::Order' AND `spree_adjustments`.`adjustable_id` IN (509291) ORDER BY created_at ASC | |
Spree::Order Load (4.1ms) SELECT `spree_orders`.* FROM `spree_orders` WHERE `spree_orders`.`number` IS NULL LIMIT 1 | |
(3.9ms) SELECT COUNT(*) FROM `spree_roles` INNER JOIN `spree_roles_users` ON `spree_roles |
I hereby claim:
To claim this, I am signing this object:
Spree::Order.class_eval do | |
checkout_flow do | |
#go_to_state :cart | |
go_to_state :address, if: ->(order) { order.delivery_required? } | |
go_to_state :delivery, if: ->(order) { order.delivery_required? } | |
go_to_state :payment, if: ->(order) { order.payment_required? } | |
go_to_state :confirm, if: Proc.new { Spree::Gateway.current && Spree::Gateway.current.payment_profiles_supported? } | |
go_to_state :complete | |
remove_transition :from => :delivery, :to => :confirm |
Toggle obsession: | |
POST /obsessions/obsess_over_variant | |
JSON payload: {:id => flash_sale_variant_id, :auth_token => auth_token} | |
Returns: {:obsessed => bool} | |
Sign up: | |
POST /api/signup | |
JSON payload: {:user => {:email => email, :password => password, :password_confirmation => password}} | |
Fetch designers |
{ | |
:payment_source => { | |
1 => { | |
:first_name => "Bob", | |
:last_name => "Jones", | |
:number => "4111111111111111", | |
:month => "12", | |
:year => "2015", | |
:verification_value => "123" | |
} |
{ | |
:state => "address", | |
:auth_token => auth_token, { | |
:order => { | |
:ship_address_attributes => { | |
:firstname => "Bob", | |
:lastname => "Jones", | |
:address1 => "123 Main Street", | |
:address2 => "", | |
:city => "Spreeville", |
mac:~/projects/real-server(json_api)$ ./script/api_client post /api/login email:rocco@railsdog.com password:railsdog | |
{"success"=>true, | |
"auth_token"=>"TjIcHa-fsG-OM58LJeBd", | |
"email"=>"rocco@railsdog.com"} | |
mac:~/projects/real-server(json_api)$ ./script/api_client get /flash_sales | |
/Users/trappist/.rvm/gems/ruby-1.9.3-p327@trr/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!': 401 Unauthorized (RestClient::Unauthorized) | |
from /Users/trappist/.rvm/gems/ruby-1.9.3-p327@trr/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result' | |
from /Users/trappist/.rvm/gems/ruby-1.9.3-p327@trr/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit' |
NoMethodError in Spree::CheckoutController#update | |
undefined method `purchase!' for #<Spree::Payment:0x007fab4287a060> | |
Rails.root: /Users/trappist/projects/fantree | |
Application Trace | Framework Trace | Full Trace | |
activemodel (3.2.8) lib/active_model/attribute_methods.rb:407:in `method_missing' | |
activerecord (3.2.8) lib/active_record/attribute_methods.rb:149:in `method_missing' | |
app/models/payment_decorator.rb:11:in `process!' | |
/Users/trappist/.rvm/gems/ruby-1.9.2-p320@fantree/bundler/gems/spree-f2f98aa8dacb/core/app/models/spree/order.rb:419:in `block in process_payments!' |
Spree::Payment.class_eval do | |
Processing.module_eval do | |
def process! | |
if payment_method && payment_method.source_required? | |
if source | |
if !processing? | |
if Spree::Config[:auto_capture] | |
purchase! | |
else | |
if order.ready_to_process? |
Started PUT "/admin/products/apache-baseball-jersey" for 76.255.177.25 at 2012-11-02 21:20:42 +0000 | |
Processing by Spree::Admin::ProductsController#update as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Rz/axJlekFfzI20D0Ai5OyfNbp974VKV7J0/Hkpyu3I=", "product"=>{"name"=>"Apache Baseball Jersey", "permalink"=>"apache-baseball-jersey", "description"=>"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat. Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam. Proin varius, lacus vitae suscipit varius, ipsum eros convallis nisi, sit amet sodales lectus pede non est. Duis augue. Suspendisse hendrerit pharetra metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio. Suspendisse vel libero. Nullam volutpat magna vel ligula. Suspe |