Skip to content

Instantly share code, notes, and snippets.

View mvidaurre's full-sized avatar

Manuel Vidaurre mvidaurre

View GitHub Profile
@mvidaurre
mvidaurre / Questions
Created July 18, 2011 19:24
Magma Rails Give-away
Day Job: Developer - http://about.me/manuel.vidaurre
Open Source contribution (if any): Smalls contributions in different projects you can reviewed them in Github
Tell me about your experience with Ruby/Rails: http://workingwithrails.com/person/12895-manuel-vidaurre
How do you use GitHub: For collaboration and communication. To see trends. For reading good code. For meeting developers
Favorite luchador(es): When I was a kid my uncle use to sell mask in the arena coliseo in my Hometown Guadalajara and I was a fan of the Santo
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.0.beta4)
actionpack (3.0.0.beta4)
activemodel (3.0.0.beta4)
activerecord (3.0.0.beta4)
activeresource (3.0.0.beta4)
activesupport (3.0.0.beta4, 2.3.8)
==> Downloading http://mirror.rabbitmq.com/releases/rabbitmq-server/v1.8.0/rabbitmq-server-1.8.
File already downloaded and cached to /Users/manuelvidaurre/Library/Caches/Homebrew
==> Downloading patches
==> Patching
patching file Makefile
==> make
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /usr/local/bin/xsltproc
Reason: image not found
/bin/sh: line 1: 5998 Trace/BPT trap xsltproc --stringparam modulename "`basename src/rabbit_ctl_usage.erl .erl`" docs/usage.xsl docs/rabbitmqctl.1.xml > src/rabbit_ctl_usage.erl.tmp
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin10.4.0
checking host system type... i386-apple-darwin10.4.0
brew install libgcrypt -vd (06-30 21:53)
==> Build Environment
CC: /usr/bin/cc
CXX: /usr/bin/c++
LD: /usr/bin/cc
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
MAKEFLAGS: -j2
PATH: /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Library/Frameworks/Python.framework/Versions/3.1/bin:/Users/manuelvidaurre/bin:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin:/usr/local/sbin:/usr/local/mysql/bin:/Library/Frameworks/Python.framework/Versions/3.1/bin:/Users/manuelvidaurre/bin:/usr/local/git/bin:/opt/local/bin:/Applications/liftweb-1.0.1/apache-maven/bin:/Applications/liftweb-1.0.1/apache-maven/bin
==> Downloading ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.4.5.tar.bz2
HOMEBREW_VERSION: 0.6
HEAD:
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_CACHE: /Users/manuelvidaurre/Library/Caches/Homebrew
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.6.3
Kernel Architecture: i386
<% @body_id = 'signup' %>
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @user } %>
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><%= Spree.t(:new_distributor) %></h3>
</div>
<div id="new-customer" class="panel-body" data-hook="login">
<%= form_for resource, :as => :spree_user, :url => "/afiliarse" do |f| %>
class Spree::DistributorRegistrationsController < Devise::RegistrationsController
helper 'spree/base', 'spree/store'
if Spree::Auth::Engine.dash_available?
helper 'spree/analytics'
end
include Spree::Core::ControllerHelpers::Auth
include Spree::Core::ControllerHelpers::Common
include Spree::Core::ControllerHelpers::Order
Spree::User.class_eval do
scope :distributor, -> { includes(:spree_roles).where("#{Role.table_name}.name" => "distributor") }
def distributor?
has_spree_role?('distributor')
end
end
@mvidaurre
mvidaurre / Gemfile.lock
Created January 23, 2015 00:15
Gemfile.lock for Spree 3.0.0.beta used to report issue: Wrong tax rate labels when show_rate_in_label. (Seems this was introduce after #5785 refactoring)
GIT
remote: git://github.com/AgilTec/spree_admin_roles_and_access.git
revision: 7b70317041ea9091964e445d4eb8a8cda517d213
branch: 3.0.0.beta
specs:
spree_admin_roles_and_access (1.2.3)
spree_auth_devise
spree_core (~> 3.0.0.beta)
GIT