Skip to content

Instantly share code, notes, and snippets.

0x96D329d700DbC18EcDAD4266df7682f8dc1eCC5E
@mkarklins
mkarklins / main.rb
Created September 14, 2017 07:46
Failing Diplomat
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
gem "diplomat", "2.0.2"
@mkarklins
mkarklins / main.rb
Last active August 31, 2017 09:51
Non-deterministic navigation rendering
Rails = nil
require 'simple-navigation'
SimpleNavigation.config_file_paths << File.expand_path('../', __FILE__)
include SimpleNavigation::Helpers
threads = []
20.times do
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'http://rubygems.org'
gem 'rails', '4.0.8'
gem 'activerecord-oracle_enhanced-adapter', '1.5.5'
gem 'ruby-oci8'
GEMFILE
system 'bundle'
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'http://rubygems.org'
gem "rails", "2.3.18"
gem "activerecord-oracle_enhanced-adapter", "1.4.1"
gem 'ruby-oci8'
gem 'pry'
gem 'iconv'
gem 'ruby-plsql'