This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Keynote Speakers | |
We are super excited to announce our two EuRuKo keynote speakers | |
* Yukihiro Matsumoto (Matz) | |
* Paul Campbell | |
Having the creator of the Ruby language as a speaker is a great honor for us. His regular appearance at the EuRuKo speaks of his dedication to the community while his humble and inspiring talks always left a lasting impression. Matz’s presentation at last year’s EuRuKo was one of the highlights and his “We are Blave” slide became legendary. | |
Paul is an amazingly talented speaker and his slide style make his talks even more exceptional. He has impressed us where ever we saw him speaking throughout the last year and we are anxious to see what he has prepared for us this time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## steps | |
Before do | |
Client::Config.backend_uri.values.each do |uri| | |
begin | |
HTTParty.post("#{uri}dev/purge_db", :body => {}) | |
rescue Errno::ECONNREFUSED | |
p "could not reach #{uri}" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to run rails 3.0 with 1.9.2 you can use the 1.9.2 beta stack like this | |
heroku create --stack bamboo-mri-1.9.2 --remote trybamboo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We have discovered the cause of [bug], and it is both simple and surprising. | |
Upon investigation, we were stunned to find that the [function] is totally wrong. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def patiently(&block) | |
cycles = 0 | |
begin | |
yield | |
rescue => e | |
cycles += 1 | |
sleep 0.1 | |
if cycles < 10 | |
retry | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rubygems DNS is temporarily down, put this into your /etc/hosts to install gems, | |
# but don't forget to remove the entries once their DNS is back up again | |
72.4.120.124 rubygems.org | |
207.171.181.231 production.s3.rubygems.org | |
216.137.45.24 production.cf.rubygems.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /^I visit subdomain "(.+)"$/ do |sub| | |
#host! "#{sub}.example.com" #for webrat | |
Capybara.default_host = "#{sub}.example.com" #for Rack::Test | |
Capybara.app_host = "http://#{sub}.example.com:9887" if Capybara.current_driver == :culerity | |
################################################################################ | |
# As far as I know, you have to put all the {sub}.example.com entries that you're | |
# using in your /etc/hosts file for the Culerity tests. This didn't seem to be | |
# required for Rack::Test | |
################################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -ex | |
dir="$TEMP_FILES_DIR/disk" | |
dmg="$BUILT_PRODUCTS_DIR/$PROJECT_NAME.dmg" | |
dmg_options="-imagekey zlib-level=9 -format UDZO" | |
rm -rf "$dir" | |
mkdir "$dir" | |
cp -R "$BUILT_PRODUCTS_DIR/$PROJECT_NAME.app" "$dir" | |
chmod -Rf go-w "$dir" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install gem_with_executable --format-executable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fixes deserialization from xml with nested associations | |
# based on http://www.xcombinator.com/2008/08/11/activerecord-from_xml-and-from_json-part-2/ | |
module ActiveRecord #:nodoc: | |
module Serialization | |
def from_hash( hash ) | |
h = hash.dup | |
h.each do |key,value| | |
case value.class.to_s |