Skip to content

Instantly share code, notes, and snippets.

@BrianTheCoder
BrianTheCoder / 4.1
Created Mar 14, 2015
Using bower-rails in 4.1 vs 4.2
View 4.1
#= require jquery
#= require jQuery-Mask-Plugin
#= require moment
#= require angular
#= require angular-animate
#= require angular-google-staticmaps
#= require angular-moment
#= require angular-payment
#= require angular-resource
#= require angular-route
View gist:cec21d4a34d5b5c87e2c
rake aborted!
LoadError: cannot load such file -- spree/sample
/Users/brianthecoder/Dropbox/code/20jeans/spree/core/lib/spree/testing_support/common_rake.rb:11:in `require'
/Users/brianthecoder/Dropbox/code/20jeans/spree/core/lib/spree/testing_support/common_rake.rb:11:in `block (2 levels) in <top (required)>'
/Users/brianthecoder/Dropbox/code/20jeans/spree/sample/Rakefile:23:in `block in <top (required)>'
/Users/brianthecoder/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval'
/Users/brianthecoder/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => common:test_app
(See full trace by running task with --trace)
View gist:fc8cc6fafd4364fc6549
Instance method "open" is already defined in Object, use generic helper instead or set StateMachine::Machine.ignore_method_conflicts = true.
........................................................................................................................................................F................[object Object]
.........F.....F.....F.............................................................................*.......DEPRECATION WARNING: Passing a Variant ID is deprecated, and will be removed in Spree 3. Please pass a variant instance instead. (called from move at /Users/brianthecoder/Dropbox/code/20jeans/spree/core/app/models/spree/stock_location.rb:84)
DEPRECATION WARNING: Passing a Variant ID is deprecated, and will be removed in Spree 3. Please pass a variant instance instead. (called from move at /Users/brianthecoder/Dropbox/code/20jeans/spree/core/app/models/spree/stock_location.rb:84)
.FF..........................................................
Pending:
Promotion Adjustments coupon prom
View admin_taxonomies_edit.rb
Deface::Override.new({
virtual_path: "spree/admin/taxonomies/edit",
name: "admin_taxonomies_edit",
replace: 'script',
partial: "spree/admin/taxonomies/taxon_tree_fix",
disabled: false
})
View gist:dead0d07a6e44d2029a7
Started GET "/admin/taxonomies/2/&/" for 127.0.0.1 at 2015-01-16 18:10:42 -0800
ActionController::RoutingError (No route matches [GET] "/admin/taxonomies/2/&"):
actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
newrelic_rpm (3.9.9.275) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
newrelic_rpm (3.9.9.275) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged'
View gist:54c89581e08349fcb51e
source 'https://rubygems.org'
gem 'active_model_serializers', '0.9.0'
gem 'acts-as-taggable-on'
gem 'ahoy_matey'
gem 'airbrake'
gem 'braintree'
gem 'breach-mitigation-rails'
gem 'browser'
gem 'dalli'
View gist:848f3a96785228c2ddbe
Updating responders
ERROR: Error installing responders:
Unresolved dependency found during sorting - rack (>= 1.0) (requested by rack-test-0.6.2)
View directive
@SocialGallery = ->
restrict: 'E'
templateUrl: '/templates/products/social_gallery'
controller: ($scope, Product)->
$scope.columnCount = 2
$scope.columns = [[],[]]
$scope.product.$promise.then (product)->
Product.social_gallery slug: product.slug, (images)->
_.each images, (img, index)->
$scope.columns[index % $scope.columnCount].push(img)
View gist:a0637c2811ee79844938
[09/30@15:02] brianthecoder:dstld (master)‽ bundle outdated --local
Updating git@github.com:20jeans/newgistics.git
Updating http://github.com/spree/spree_active_shipping
Updating git://github.com/binaryphile/spree_advanced_reporting.git
Updating http://github.com/BrianTheCoder/active_shipping
Updating http://github.com/spree/spree_gateway
Updating git://github.com/20jeans/spree_local_tax.git
Updating git://github.com/20jeans/better_spree_paypal_express.git
Updating git://github.com/20jeans/spree_store_credits.git
Resolving dependencies...
View sadface
sass-rails (>= 0) ruby depends on
sprockets-rails (~> 2.0.0) ruby
rails (>= 0) ruby depends on
sprockets-rails (2.1.3)