Go to the official website and choose your OS.
Docker for Mac has a problem is the disk IO performance (see docker/for-mac#77).
There is a fix (https://github.com/IFSight/d4m-nfs) which makes Docker use NFS instead of OSXFS.
module ActiveRecord | |
# Share connection between threads to make it possible to wrap system tests in a transaction. | |
# Also synchonize queries to avoid concurrent writes/reads. | |
# | |
# For PostgreSQL adapter. | |
module OneLove | |
class << self | |
attr_reader :connection | |
def connection=(conn) |
module RSpecHell | |
def run_examples(reporter) | |
return super unless metadata[:hell] && !(metadata[:parent_example_group] && metadata[:parent_example_group].key?(:hell)) | |
pool_size = ENV['HELL'].to_i | |
q = Queue.new | |
ordering_strategy.order(descendant_filtered_examples).each { |ex| q << ex } | |
workers = [] | |
results = [] |
module RSpec | |
class EventProfiler # :nodoc: | |
# Add #duration method to floats | |
module FloatDuration | |
refine Float do | |
def duration | |
t = self | |
format("%02d:%02d.%03d", t / 60, t % 60, t.modulo(1) * 1000) | |
end | |
end |
module FactoryGirl | |
module Doctor | |
module FloatDuration | |
refine Float do | |
def duration | |
t = self | |
format("%02d:%02d.%03d", t / 60, t % 60, t.modulo(1) * 1000) | |
end | |
end | |
end |
# if you want to render flamegraphs | |
gem "stackprof", require: false # required by flamegraph | |
gem "flamegraph", require: false |
module FactoryDefault | |
module CreateDefaultMethod | |
def create_default(name, *args, &block) | |
res = create(name, *args, &block) | |
FactoryDefault.register(name, res) | |
res | |
end | |
end | |
module RunnerExt |
require 'rubocop/rspec/language' | |
module RuboCop | |
module Cop | |
module RSpec | |
class AggregateFailures < RuboCop::Cop::Cop | |
GROUP_BLOCKS = RuboCop::RSpec::Language::ExampleGroups::ALL | |
EXAMPLE_BLOCKS = RuboCop::RSpec::Language::Examples::ALL | |
def on_block(node) |
module AnyFixture | |
INSERT_RXP = /^INSERT INTO ([\S]+)/ | |
class Cache | |
attr_reader :store | |
delegate :clear, to: :store | |
def initialize | |
@store = {} |
module StiUpdate | |
def as(type) | |
if self.type == type | |
self | |
else | |
klass = type.camelize.constantize | |
if klass.nil? | |
self | |
else | |
became = self.becomes!(klass) |
Go to the official website and choose your OS.
Docker for Mac has a problem is the disk IO performance (see docker/for-mac#77).
There is a fix (https://github.com/IFSight/d4m-nfs) which makes Docker use NFS instead of OSXFS.