Install (copy & paste):
curl -sL raw.github.com/gist/1676577/travis.rb > ~/bin/travis \
&& chmod +x ~/bin/travis
gem install hub | tail -2
ruby -e 'require "json"' 2>/dev/null || gem install json
require 'rubygems' | |
require 'java' | |
require 'mvn:org.kohsuke:akuma' | |
d = com.sun.akuma.Daemon.new | |
if d.daemonized? | |
puts "Daemonizing with PID #{$$}" | |
d.init | |
else | |
d.daemonize |
Vagrant::Config.run do |config| | |
# config.vm.box = "natty32_base" | |
config.vm.box = "lucid32" | |
# config.vm.box_url = "http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-i386.box" | |
config.vm.box_url = "http://files.vagrantup.com/lucid32_old.box" | |
config.vm.forward_port 'ssh', 22, 2220 | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "cookbooks/vagrant_base" |
# encoding: utf-8 | |
s = "Blah \xe9 blah 헌글" | |
puts "BEFORE" | |
puts "encoding: #{s.encoding}" | |
puts "valid : #{s.valid_encoding?}" | |
puts "text : #{s}" | |
s = s. |
# https://github.com/travis-ci/travis-ci/wiki/.travis.yml-options | |
target: erlang | |
use_rebar: true | |
erlang_otp: | |
- R14B03 | |
- R14B02 | |
- R14B01 | |
- R14B | |
- R14A | |
- R13B04 |
"Travis CI - Distributed, Continous Integration for the Ruby community
""The future is already here — it's just not very evenly distributed."" (William Gibson)
The Ruby community is where a lot of this future already happens. We not only set the bar higher and higher every day, we've also built most of the infrastructure use day to day. Twitter, Github, Gemcutter, Pusher to just name a few projects that changed the world, the way we live and work.
With Travis CI, an open source continous integration service for the Ruby community, we are
# You must require this file in application.rb, above the Application | |
# definition, for this to work. For example: | |
# | |
# # Syslog-like Rails logs | |
# if Rails.env.production? | |
# require File.expand_path('../../lib/better_logger', __FILE__) | |
# end | |
# | |
# module MyApp | |
# class Application < Rails::Application |
Then /^"([^\"]+)" should be visible$/ do |text| | |
assert page.has_xpath?("//*[not(descendant-or-self::script)][ancestor::*[contains(@style,'display: none;')]][contains(normalize-space(.),'#{text}')]") | |
end | |
Then /^"([^\"]+)" should not be visible$/ do |text| | |
assert page.has_xpath?("//*[not(descendant-or-self::script)][ancestor::*[contains(@style,'display: none;')]][contains(normalize-space(.),'#{text}')]") | |
end |
module Round | |
end | |
module Rectangular | |
end | |
class Thing | |
extend Round | |
class << self | |
def metaclass |
#!/usr/bin/env ruby | |
# Usage: | |
# | |
# ./ack.rb your-query | |
require 'rubygems' | |
require 'bundler' | |
if query = ARGV[0] | |
gem_dirs = Bundler.load.specs.map(&:full_gem_path).join(' ') |