summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.rvmrc26
-rw-r--r--Gemfile5
-rw-r--r--Gemfile.lock31
3 files changed, 62 insertions, 0 deletions
diff --git a/.rvmrc b/.rvmrc
new file mode 100644
index 0000000..107eba9
--- /dev/null
+++ b/.rvmrc
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+
+ruby_string="ruby-1.9.2-p290"
+gemset_name="jekyll-blog"
+
+if rvm list strings | grep -q "${ruby_string}" ; then
+ if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
+ && -s "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}" ]] ; then
+ \. "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}"
+ else
+ if ! rvm --create "${ruby_string}@${gemset_name}"
+ then
+ echo "Failed to create RVM environment '${ruby_string}@${gemset_name}'."
+ fi
+ fi
+
+ if ! command -v bundle ; then
+ gem install bundler
+ fi
+
+ if [[ -e Gemfile ]]; then
+ bundle install
+ fi
+else
+ echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory."
+fi
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..447f724
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,5 @@
+source "http://rubygems.org"
+source "http://gemcutter.org"
+
+gem 'jekyll'
+gem 'rdiscount'
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..7c8667b
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,31 @@
+GEM
+ remote: http://rubygems.org/
+ remote: http://gemcutter.org/
+ specs:
+ albino (1.3.3)
+ posix-spawn (>= 0.3.6)
+ classifier (1.3.3)
+ fast-stemmer (>= 1.0.0)
+ directory_watcher (1.4.1)
+ fast-stemmer (1.0.0)
+ jekyll (0.11.0)
+ albino (>= 1.3.2)
+ classifier (>= 1.3.1)
+ directory_watcher (>= 1.1.1)
+ kramdown (>= 0.13.2)
+ liquid (>= 1.9.0)
+ maruku (>= 0.5.9)
+ kramdown (0.13.3)
+ liquid (2.2.2)
+ maruku (0.6.0)
+ syntax (>= 1.0.0)
+ posix-spawn (0.3.6)
+ rdiscount (1.6.8)
+ syntax (1.0.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ jekyll
+ rdiscount