Skip to content
Browse files

added rvmrc and gemfiles to easily run webby locally

  • Loading branch information...
1 parent 198d1b8 commit adbc7a2713e0ffcb2656da8370665800853b01ac @mattetti mattetti committed Feb 18, 2012
Showing with 79 additions and 0 deletions.
  1. +34 −0 .rvmrc
  2. +5 −0 Gemfile
  3. +40 −0 Gemfile.lock
View
34 .rvmrc
@@ -0,0 +1,34 @@
+#!/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.8.7" > .rvmrc
+environment_id="ruby-1.8.7-p358@macrubywebsite"
+
+# Uncomment the following lines if you want to verify rvm version per project
+# rvmrc_rvm_version="1.10.2" # 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
View
5 Gemfile
@@ -0,0 +1,5 @@
+source :rubygems
+
+gem 'webby', '0.9.4'
+gem 'coderay', '0.9.8'
+gem 'RedCloth', '4.2.9'
View
40 Gemfile.lock
@@ -0,0 +1,40 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ RedCloth (4.2.9)
+ addressable (2.2.7)
+ coderay (0.9.8)
+ diff-lcs (1.1.3)
+ directory_watcher (1.4.1)
+ hpricot (0.8.6)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ little-plugger (1.1.3)
+ logging (1.6.2)
+ little-plugger (>= 1.1.3)
+ loquacious (1.9.1)
+ rake (0.9.2.2)
+ rspec (2.8.0)
+ rspec-core (~> 2.8.0)
+ rspec-expectations (~> 2.8.0)
+ rspec-mocks (~> 2.8.0)
+ rspec-core (2.8.0)
+ rspec-expectations (2.8.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.8.0)
+ webby (0.9.4)
+ directory_watcher (>= 1.1.2)
+ hpricot (>= 0.6.0)
+ launchy (>= 0.3.2)
+ logging (>= 0.9.7)
+ loquacious (>= 1.3.0)
+ rake (>= 0.8.4)
+ rspec (>= 1.2.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ RedCloth (= 4.2.9)
+ coderay (= 0.9.8)
+ webby (= 0.9.4)

0 comments on commit adbc7a2

Please sign in to comment.
Something went wrong with that request. Please try again.