Permalink
Browse files

Merge pull request #5 from sons-of-mars/feature/doing-lots-of-damage

Feature/doing lots of damage
  • Loading branch information...
Kurtis Rainbolt-Greene
Kurtis Rainbolt-Greene committed Jan 19, 2012
2 parents 13c1560 + 53e4962 commit 3a08eb7ad028ffb5ea5ab4799c327be90c5addb8
Showing with 15 additions and 61 deletions.
  1. +14 −19 .rvmrc
  2. +0 −41 config.yaml
  3. +1 −1 content/book/chapter/1.markdown
View
33 .rvmrc
@@ -4,43 +4,38 @@
# development environment upon cd'ing into the directory
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
-environment_id="ruby-1.9.2-p180@learn-you-the-ruby-for-awesome-power"
+environment_id="ruby-1.9.2-p290@learn-you-the-ruby"
#
# First we attempt to load the desired environment directly from the environment
-# file, this is very fast and efficicent compared to running through the entire
+# 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
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
+then
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
+
+ if [[ -s ".rvm/hooks/after_use" ]]
+ then
+ . ".rvm/hooks/after_use"
+ fi
else
# If the environment file has not yet been created, use the RVM CLI to select.
- rvm --create "$environment_id"
+ if ! rvm --create "$environment_id"
+ then
+ echo "Failed to create RVM environment 'ruby-1.9.2-p180@learn-you-the-ruby-for-awesome-power'."
+ fi
fi
#
# If you use an RVM gemset file to install a list of gems (*.gems), you can have
-# it be automatically loaded, uncomment the following and adjust the filename if
+# it be automatically loaded. Uncomment the following and adjust the filename if
# necessary.
#
# filename=".gems"
# if [[ -s "$filename" ]] ; then
# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
# fi
-#
-# If you use bundler and would like to run bundle each time you enter the
-# directory you can uncomment the following code.
-#
-# # Ensure that Bundler is installed, install it if it is not.
-# if ! command -v bundle ; then
-# printf "The rubygem 'bundler' is not installed, installing it now.\n"
-# gem install bundler
-# fi
-#
-# # Bundle while redcing excess noise.
-# printf "Bundling your gems this may take a few minutes on a fresh clone.\n"
-# bundle | grep -v 'Using' | grep -v 'complete' | sed '/^$/d'
-#
View
@@ -1,41 +0,0 @@
-# A list of file extensions that nanoc will consider to be textual rather than
-# binary. If an item with an extension not in this list is found, the file
-# will be considered as binary.
-text_extensions: [ 'css', 'erb', 'haml', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml' ]
-
-# The path to the directory where all generated files will be written to. This
-# can be an absolute path starting with a slash, but it can also be path
-# relative to the site directory.
-output_dir: output
-
-# A list of index filenames, i.e. names of files that will be served by a web
-# server when a directory is requested. Usually, index files are named
-# “index.hml”, but depending on the web server, this may be something else,
-# such as “default.htm”. This list is used by nanoc to generate pretty URLs.
-index_filenames: [ 'index.html' ]
-
-# Whether or not to generate a diff of the compiled content when compiling a
-# site. The diff will contain the differences between the compiled content
-# before and after the last site compilation.
-enable_output_diff: false
-
-# The data sources where nanoc loads its data from. This is an array of
-# hashes; each array element represents a single data source. By default,
-# there is only a single data source that reads data from the “content/” and
-# “layout/” directories in the site directory.
-data_sources:
- -
- # The type is the identifier of the data source. By default, this will be
- # `filesystem_unified`.
- type: filesystem_unified
-
- # The path where items should be mounted (comparable to mount points in
- # Unix-like systems). This is “/” by default, meaning that items will have
- # “/” prefixed to their identifiers. If the items root were “/en/”
- # instead, an item at content/about.html would have an identifier of
- # “/en/about/” instead of just “/about/”.
- items_root: /
-
- # The path where layouts should be mounted. The layouts root behaves the
- # same as the items root, but applies to layouts rather than items.
- layouts_root: /
@@ -138,7 +138,7 @@ Ruby was officially given it's name on 1993-02-24, in Japan by it's creator [Yuk
The language went public 1995-12-21 with Ruby version 0.95.
Ruby version 1.0 wouldn't crawl out until a year later, 1996-12-25.
Somewhere during the year 2000 Ruby would finally become used mainstream outside of Japan.
-2001-12-15 the Pragmatic Programmers released Programming Ruby, otherwise known as * ThePickaxe Guide*.
+2001-12-15 the Pragmatic Programmers released Programming Ruby, otherwise known as *The Pickaxe Guide*.
2001 also happened to be the year of the ever successful convention *RubyConf*, which was first called RubyConf?.new(2001).
It's an inside joke you'll get later.

0 comments on commit 3a08eb7

Please sign in to comment.