Below are the programs I install, the Preferences I change, and the configurations I tweak after doing a fresh install of macOS.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
require_relative 'base' | |
require_relative 'event' | |
require_relative 'cmd' | |
require_relative 'crud' | |
require_relative 'model' | |
require_relative 'read' | |
require 'pp' | |
class Application < BaseObject |
Below are the programs I install, the Preferences I change, and the configurations I tweak after doing a fresh install of macOS.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Session mocking may be used in feature tests to mock a session | |
# since it's not possible to inject the session through params or | |
# direct injection. | |
# | |
# SessionMock is a module that may be included | |
# in `Hanami::Web::Action` to override the session | |
# in feature specs. | |
# | |
# Usage (in the controller action): | |
# |
source 'https://rubygems.org' | |
gem 'clearwater', '~> 1.0.0.rc1' | |
gem 'opal-rails' | |
gem 'grand_central' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.2.6' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' |
#!/bin/bash | |
# This is a fork of https://gist.github.com/mcemce/a6ee9b4ab07df9972883 with | |
# additional variable-based configuration and status hand-holding added by | |
# myself (@jdickey). Thanks to @mcemce for helping me out of a jam. | |
# Docker VM name. 'dev' is a recommended name for a development VM; you'll want | |
# to name a production VM something else. | |
OUR_DOCKER_VM=dev | |
echo "Docker will install a machine named $OUR_DOCKER_VM within VMware." |
# Simple minitest matchers which will make your controller/functional specs less pain in the ass. | |
# | |
# ==== Dependencies | |
# | |
# gem 'minitest' | |
# gem 'minitest-matchers' | |
# | |
# ==== Matchers | |
# | |
# +must_have_status+ and its opposite +wont_have_status+ take both one argument which must be one of the following: |
module LoadResources | |
module ClassMethods | |
def load_resource(resource_class, options = {}) | |
filter_options = options.slice :only, :except, :if, :unless | |
resource_options = options.except :only, :except, :if, :unless | |
send(:before_filter, filter_options) do |controller| | |
ResourceBuilder.new(controller, resource_class, resource_options) | |
.send(:load_resource) | |
end |
module Sequel | |
module Plugins | |
# The paranoia plugin creates hooks that automatically set deleted | |
# timestamp fields. The field name used is configurable, and you | |
# can also set whether to overwrite existing deleted timestamps (false | |
# by default). Adapted from Timestamps plugin. | |
# | |
# Usage: | |
# | |
# # Soft deletion for all model instances using +deleted_at+ |