Skip to content

Commit

Permalink
mass rewrite using appscrolls for rails 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gdagley committed May 15, 2012
1 parent 0cc081d commit 01d6719
Show file tree
Hide file tree
Showing 3,453 changed files with 2,433 additions and 353,567 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
48 changes: 48 additions & 0 deletions .rvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/usr/bin/env bash

# This is an RVM Project .rvmrc file, used to automatically load the ruby
# development environment upon cd'ing into the directory

# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
# Only full ruby name is supported here, for short names use:
# echo "rvm use 1.9.3" > .rvmrc
environment_id="ruby-1.9.3-p194@basejumper"

# Uncomment the following lines if you want to verify rvm version per project
# rvmrc_rvm_version="1.13.4 ()" # 1.10.1 seams as a safe start
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
# return 1
# }

# First we attempt to load the desired environment directly from the environment
# file. This is very fast and efficient compared to running through the entire
# CLI and selector. If you want feedback on which environment was used then
# insert the word 'use' after --create as this triggers verbose mode.
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
then
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
[[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
\. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
else
# If the environment file has not yet been created, use the RVM CLI to select.
rvm --create "$environment_id" || {
echo "Failed to create RVM environment '${environment_id}'."
return 1
}
fi

# If you use bundler, this might be useful to you:
# if [[ -s Gemfile ]] && {
# ! builtin command -v bundle >/dev/null ||
# builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
# }
# then
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
# gem install bundler
# fi
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
# then
# bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
# fi
3 changes: 0 additions & 3 deletions Capfile

This file was deleted.

60 changes: 60 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
require "rbconfig"
HOST_OS = RbConfig::CONFIG["host_os"]

source "https://rubygems.org"

gem "unicorn"
gem "rails", "3.2.3"
gem "jquery-rails"
gem "rails_admin"
gem "rspec-rails", :group => [:development, :test]
gem "sqlite3", :group => [:development, :test]

gem "simple_form"

gem "devise"
gem "cancan"
gem "role_model"

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem "sass-rails", "~> 3.2.3"
gem "coffee-rails", "~> 3.2.1"
gem "uglifier", ">= 1.0.3"
gem "twitter-bootstrap-rails"
gem "therubyracer"
end

gem "capybara", :group => [:development, :test]
group :test do
gem "cucumber-rails", :require => false
gem "capybara"
gem "database_cleaner"
end

guard_notifications = true

group :development do
case HOST_OS
when /darwin/i
gem "rb-fsevent"
gem "ruby_gntp" if guard_notifications
when /linux/i
gem "libnotify"
gem "rb-inotify"
when /mswin|windows/i
gem "rb-fchange"
gem "win32console"
gem "rb-notifu" if guard_notifications
end

gem "yajl-ruby"
gem "rack-livereload"
gem "guard-livereload"
gem "guard-bundler"
gem "guard-cucumber"
gem "guard-rspec"
gem "guard-unicorn"
gem "heroku_san"
end
Loading

0 comments on commit 01d6719

Please sign in to comment.