gem install rails
rails new my_app -T
I've been using this technique in most of my Ruby projects lately where Ruby versions are required:
.rbenv-version containing the target Ruby using a definition name defined in ruby-build (example below). These strings are a proper subset of RVM Ruby string names so far....rvmrc (with rvm --create --rvmrc "1.9.3@myapp") and edit the environment_id= line to fetch the Ruby version from .rbenv-version (example below).Today I learned about another Ruby manager, rbfu, where the author is using a similar technique with .rbfu-version.
| #!/usr/bin/env ruby | |
| # A simple script to troubleshoot SSL problems; notably | |
| # a missing CA bundle. | |
| # | |
| # Example errors that can be troubleshot: | |
| # SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed | |
| # | |
| # Christian Höltje / docwhat.org | |
| require 'net/https' |
| # A very simple Rakefile for generating static sites. It's essentially Hobix, | |
| # but probably simpler. Every page of the site is a YAML file. The YAML file | |
| # gets compiled into a HTML file with the same basename. The content can be | |
| # wrapped in a layout. | |
| require 'rake/clean' | |
| require 'open-uri' | |
| require 'yaml' | |
| require 'erb' | |
| YML = FileList['**/*.yml'].exclude(/^[_.]/) |
| #!/bin/bash | |
| JQPATH=$(which jq) | |
| if [ "x$JQPATH" == "x" ]; then | |
| echo "Couldn't find jq executable." 1>&2 | |
| exit 2 | |
| fi | |
| set -eu | |
| shopt -s nullglob |
| #!groovy | |
| # Best of Jenkinsfile | |
| # `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
| node { | |
| } |
| defaults write com.apple.dock autohide -bool true && defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0 && killall Dock |
Updated for working with k3d 3.x
Prereqs: