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
ACTIVESUPPORT_SOURCE = ARGV.pop | |
if ACTIVESUPPORT_SOURCE | |
if File.directory?(ACTIVESUPPORT_SOURCE) | |
puts "Using ActiveSupport from #{ACTIVESUPPORT_SOURCE}" | |
$LOAD_PATH << ACTIVESUPPORT_SOURCE | |
else ACTIVESUPPORT_SOURCE | |
puts "Using ActiveSupport gem version #{ACTIVESUPPORT_SOURCE}" | |
require 'rubygems' | |
gem 'activesupport', ACTIVESUPPORT_SOURCE |
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
.bundle | |
Gemfile.lock | |
local-bundle |
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
aker-gems.jar | |
gem_home |
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
puts "rspec-core #{RSpec::Core::Version::STRING}" | |
class InstantiationCounter | |
def initialize(k) | |
$count ||= { } | |
$count[k] ||= 0 | |
$count[k] += 1 | |
@k = k | |
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
source :rubygems | |
gem 'i18n', '~> 0.4' | |
gem 'activesupport', '~> 3.0' | |
gem 'activerecord', '~> 3.0' | |
gem 'builder', '~> 2.1.2' |
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
describe 'A' do | |
describe '#foo' do | |
it 'is generally okay' do; end | |
describe 'subconcern' do | |
it 'has common behavior' do; end | |
describe 'case 1' do | |
it 'does the right thing' do; 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
source :rubygems | |
gem 'rake' | |
gem 'rspec', '~> 2.7.0' | |
gem 'rcov' |
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
source :rubygems | |
gem 'activerecord', '~> 3.1.0' | |
gem 'sqlite3' |
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
source :rubygems | |
gem 'activerecord', ENV['AR_VERSION'] || '3.1.0' | |
gem 'sqlite3', '~> 1.3.4' |
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
# encoding: UTF-8 | |
def test(env) | |
fn = 'foo' | |
File.open(fn, 'w:UTF-8') { |f| f.write '☃' } | |
begin | |
puts "Read from #{env} file: #{File.read(fn, :encoding => 'UTF-8')}" | |
rescue => e |