Skip to content

Instantly share code, notes, and snippets.

6405: Fixes #721 when creating a comment (ajax) the link to your own profile is fucked up and instead it linked to the user id
--
28584: Specifying bson version to avoid whatever is fucking up in 1.0.6, we can move to it later
--
36776: fuck
--
38121: in the shit
omg/wtf/ohai! (-ohaibbq)
module HasPersonProxy
module ClassMethods
def always_has_person
self.instance_eval do
include InstanceMethods
alias_method_chain :person, :proxy
end
end
end
Administrator@SARAH-25AAA95F6 ~/Desktop/diaspora (master)
$ gem install eventmachine
Temporarily enhancing PATH to include DevKit...
Successfully installed eventmachine-0.12.10-x86-mswin32-60
1 gem installed
Installing ri documentation for eventmachine-0.12.10-x86-mswin32-60...
Installing RDoc documentation for eventmachine-0.12.10-x86-mswin32-60...
#!/bin/bash
echo "*************************************************************************************************" &&
echo "* ruby 1.8.7 REE build *" &&
echo "*************************************************************************************************" &&
echo "" &&
source /usr/local/rvm/scripts/rvm &&
rvm use ree@diaspora --create &&
bundle install &&
bundle exec rake cruise
namespace :cruise do
desc "Run all specs and features"
task :cruise => :environment do
puts "Starting virtual display..."
`sh -e /etc/init.d/xvfb start`
puts "Starting specs..."
system('export DISPLAY=:99.0 && export SELENIUM_SERVER_PORT=53809 && bundle exec rake')
exit_status = $?.exitstatus
puts "Stopping virtual display..."
`sh -e /etc/init.d/xvfb stop`
Xvfb :99 -ac -screen 0 1024x768x16
sudo aptitude install xubuntu-desktop
sudo aptitude install exaile
sudo aptitude install gconf2
sudo aptitude install xvfb
sudo aptitude install firefox
XVFB=/usr/bin/Xvfb
XVFBARGS=":99 -ac -screen 0 1024x768x16"
PIDFILE=/root/cucumber_xvfb_99.pid
case "$1" in
start)
echo -n "Starting virtual X frame buffer: Xvfb"
/sbin/start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS
echo "."
;;
stop)
run("echo gem \'rake\' >> Gemfile")
run("echo group :test, :development do >> Gemfile")
run("echo gem \'rspec-rails\', \'2.0.0.beta.22\' >> Gemfile")
run("echo gem \'capybara\' >> Gemfile")
run("echo gem \'database_cleaner\' >> Gemfile")
run("echo gem \'cucumber-rails\' >> Gemfile")
run("echo gem \'cucumber\' >> Gemfile")
run("echo gem \'launchy\' >> Gemfile")
run("echo gem \'win32console\' >> Gemfile")
#run("echo gem \'sqlite3-ruby\', :require \=\">\" \'sqlite3\' >> Gemfile")
run("echo group :test, :development do >> Gemfile;")
run("echo gem \\'rspec-rails\\', \\'\\>\\= 2.0.0.beta.22\\' >> Gemfile;")
run("echo gem \\'capybara\\' >> Gemfile;")
run("echo gem \\'database_cleaner\\' >> Gemfile;")
run("echo gem \\'cucumber-rails\\' >> Gemfile;")
run("echo gem \\'cucumber\\' >> Gemfile;")
run("echo gem \\'spork\\' >> Gemfile;")
run("echo gem \\'launchy\\' >> Gemfile;")
run("echo end >> Gemfile;")