Skip to content

Instantly share code, notes, and snippets.

View sebareca's full-sized avatar

Sebastián Gustavo Reca sebareca

View GitHub Profile
@sebareca
sebareca / shoulda-3.0.0
Created April 23, 2012 22:52
Problems installing shoulda-3.0.0 with bundle install
Could not find shoulda-3.0.0 in any of the sources
@sebareca
sebareca / gist:2474510
Created April 23, 2012 23:25
foreman start
20:22:22 mondodb.1 | started with pid 7203
20:22:22 accounts.1 | started with pid 7207
20:22:22 contacts.1 | started with pid 7211
20:22:22 web.1 | started with pid 7217
20:22:22 mondodb.1 | /usr/local/mongodb/bin/mongod --help for help and startup options
20:22:22 mondodb.1 | Mon Apr 23 20:22:22 [initandlisten] MongoDB starting : pid=7203 port=27017 dbpath=/data/db/ 64-bit host=sebareca
20:22:22 mondodb.1 | Mon Apr 23 20:22:22 [initandlisten] db version v2.0.2, pdfile version 4.5
20:22:22 mondodb.1 | Mon Apr 23 20:22:22 [initandlisten] git version: 514b122d308928517f5841888ceaa4246a7f18e3
20:22:22 mondodb.1 | Mon Apr 23 20:22:22 [initandlisten] build info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
20:22:22 mondodb.1 | Mon Apr 23 20:22:22 [initandlisten] options: {}
@sebareca
sebareca / .gitignore
Created April 29, 2012 02:00 — forked from dwaynemac/.gitignore
Shell scripts to manage multiple projects with git
.idea/
@sebareca
sebareca / output
Created May 1, 2012 19:28
Bug running rspec crm-hub
/home/sebareca/.rvm/gems/ruby-1.9.2-p318/gems/factory_girl-2.6.1/lib/factory_girl/deprecated.rb:7:in `method_missing': undefined method `sequence' for Factory:Module (NoMethodError)
from /home/sebareca/code/work/crm-hub/spec/support/factories.rb:1:in `<top (required)>'
from /home/sebareca/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251:in `require'
from /home/sebareca/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251:in `block in require'
from /home/sebareca/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/sebareca/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251:in `require'
from /home/sebareca/code/work/crm-hub/spec/spec_helper.rb:11:in `block in <top (required)>'
from /home/sebareca/.rvm/gems/ruby-1.9.2-p318/gems/spork-1.0.0rc2/lib/spork.rb:24:in `prefork'
from /home/sebareca/code/work/crm-hub/spec/spec_he
@sebareca
sebareca / gist:2596463
Created May 4, 2012 17:43
Accounts Error
[2012-05-04 14:42:29] INFO WEBrick 1.3.1
[2012-05-04 14:42:29] INFO ruby 1.9.2 (2012-04-20) [x86_64-linux]
[2012-05-04 14:42:29] WARN TCPServer Error: Address already in use - bind(2)
Exiting
/home/sebareca/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
@sebareca
sebareca / merge_spec.rb
Created August 18, 2012 21:43
Merge spec
require File.dirname(__FILE__) + '/../spec_helper'
describe Merge do
it { should validate_presence_of :first_contact_id }
it { should validate_presence_of :second_contact_id }
describe "Creation" do
before do
@goku1 = Contact.make(:first_name => "Son", :last_name => "Goku", :level => "aspirante")
@sebareca
sebareca / contact.rb
Created August 27, 2012 19:36
Bug similar
contacts.delete_if do |c|
similar = true
c.identifications.each do |id|
if self.identifications.where(:category => id.category).excludes(:value => id.value).exists?
similar = false
end
end
!similar
end
@sebareca
sebareca / ethon_error
Created September 14, 2012 13:56
Ethon error uninitialized constant Ethon::Easies (NameError)
/Users/myusr/.rvm/gems/ruby-1.9.2-p290/gems/typhoeus-0.5.0.alpha/lib/typhoeus/responses/informations.rb:9:in `<module:Informations>': uninitialized constant Ethon::Easies (NameError)
from /Users/myusr/.rvm/gems/ruby-1.9.2-p290/gems/typhoeus-0.5.0.alpha/lib/typhoeus/responses/informations.rb:6:in `<module:Responses>'
from /Users/myusr/.rvm/gems/ruby-1.9.2-p290/gems/typhoeus-0.5.0.alpha/lib/typhoeus/responses/informations.rb:2:in `<module:Typhoeus>'
from /Users/myusr/.rvm/gems/ruby-1.9.2-p290/gems/typhoeus-0.5.0.alpha/lib/typhoeus/responses/informations.rb:1:in `<top (required)>'
from /Users/myusr/.rvm/gems/ruby-1.9.2-p290/gems/typhoeus-0.5.0.alpha/lib/typhoeus/response.rb:2:in `<top (required)>'
from /Users/myusr/.rvm/gems/ruby-1.9.2-p290/gems/typhoeus-0.5.0.alpha/lib/typhoeus.rb:9:in `<top (required)>'
from /Users/myusr/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.2.0/lib/bundler/runtime.rb:68:in `require'
from /Users/myusr/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.2.0/lib/bundler/runtime.rb:68:in `b