Skip to content

Instantly share code, notes, and snippets.

View bartocc's full-sized avatar

Julien Palmas bartocc

View GitHub Profile
define_index do
# fields
indexes corporate_name, :sortable => true, :as => :rs
indexes id, :as => :newid
indexes external_id, :as => :oldid
indexes usual_corporate_name, :as => :rsu
indexes [contacts.first_name, contacts.last_name], :as => :nom_contact
indexes contacts.role, :as => :role_contact
indexes categories.label, :as => :categorie
[julien@mbp-crux] ~/Projects/leadex (master) $ rvm install 1.9.2-preview3 --trace
install 1.9.2-preview3 --trace
rvm 0.1.32 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
+ [[ -z install ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
# 1.9.2 only (did not try 1.9.1)
puts "foo"
.upcase
.downcase
gem 'sunspot_rails', :require => 'sunspot/rails'
Before("~@search") do
Sunspot.session = Sunspot::Rails::StubSessionProxy.new(Sunspot.session)
end
# make sure that pickle calls #index! on our appropriate models
require File.join(File.dirname(__FILE__), 'pickle')
module Pickle
module Session
scope '//table[@id = 'admins']//*[position() = 2 and self::tr]' not found on page (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^\"]*)"(?: within "([^\"]*)")?$/'
features/manage_admins.feature:27:in `Then I should see "admin@foo.com" within "table#admins tr[2]"'
Around("~@search") do |s, block|
original_ss_session = Sunspot.session
Sunspot.session = Sunspot::Rails::StubSessionProxy.new(Sunspot.session)
block.call
Sunspot.session = original_ss_session
end
Using PROJECTS=/Users/julien/Projects/bhu-stuff/perl/src/../..
Using /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795 as temp subfolder
Chdir'ing to /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795
Copying DTD
Exec: /bin/cp /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/etc/bhu_index.dtd /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795
Exec: /bin/cp /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/etc/bhu_strategy.dtd /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795
Exec: /Users/julien/Projects/bhu-stuff/perl/src/../../perl/src/aruna_services_to_xml.pl --output /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795/aruna-services.xml
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thr
Working on #4055 (ZOULAI SAID)
Working on #8049 (ZOULIKHA)
Working on #1715 (ZOUZOU AMEL)
Working on #7511 (ZYRIAB VOYAGES)
Exec: /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/c/bin/bhu_indexer --strategy /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/aruna/aruna_services_strategy.xml --input /Users/julien/Projects/bhu-stuff/data/temp-20100907_171114-61784/aruna-services.xml --output /Users/julien/Projects/bhu-stuff/data/temp-20100907_171114-61784/aruna-services-index.xml
FATAL ERROR: xmlEncodeEntitiesReentrant does not encode '"' properly, patch your libxml2 library
Exec: /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/c/bin/bhu_indexer --strategy /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/aruna/aruna_exhibitions_strategy.xml --input /Users/julien/Projects/bhu-stuff/data/temp-20100907_171114-61784/aruna-exhibitions.xml --output /Users/julien/Projects/bhu-stuff/data/temp-20100907_171114-61784/aruna-exhibitions-index.xml
FATAL ERROR: xmlEncodeEntitiesReentrant does not encode '"' proper
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /Users/julien/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to rougecardinal.fr [91.121.19.147] port 22.
debug1: Connection established.
debug1: identity file /Users/julien/.ssh/identity type -1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /Users/julien/.ssh/id_rsa type 1