Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More updated content.

  • Loading branch information...
commit b1884ad62154f28944f701ee09cd02d0cf8a12a6 0 parents
Wayne E. Seguin wayneeseguin authored
Showing with 1,590 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +1 −0  Rakefile
  3. +33 −0 Rules
  4. +6 −0 compass_config.rb
  5. +6 −0 config.yaml
  6. +103 −0 content/assets/css/_base.sass
  7. 0  content/assets/css/_base.yaml
  8. +216 −0 content/assets/css/default.sass
  9. +84 −0 content/assets/css/screen.sass
  10. 0  content/assets/css/screen.yaml
  11. BIN  content/assets/images/bbg_logo.png
  12. BIN  content/assets/images/bottom-gradient.gif
  13. BIN  content/assets/images/ruby.png
  14. +9 −0 content/credits.html.haml
  15. +2 −0  content/credits.yaml
  16. +55 −0 content/credits/donations.html.haml
  17. +2 −0  content/credits/donations.yaml
  18. +15 −0 content/development.html.haml
  19. 0  content/development.yaml
  20. +20 −0 content/development/contributing.html.haml
  21. +2 −0  content/development/contributing.yaml
  22. +1 −0  content/development/debugging.html.haml
  23. +2 −0  content/development/debugging.yaml
  24. +6 −0 content/development/github.html.haml
  25. +2 −0  content/development/github.yaml
  26. +2 −0  content/development/list.html.haml
  27. +2 −0  content/development/list.yaml
  28. +4 −0 content/development/tracker.html.haml
  29. +2 −0  content/development/tracker.yaml
  30. +74 −0 content/index.html.haml
  31. +2 −0  content/index.yaml
  32. +18 −0 content/integration.html.haml
  33. 0  content/integration.yaml
  34. +4 −0 content/integration/bundler.html.haml
  35. +2 −0  content/integration/bundler.yaml
  36. +6 −0 content/integration/culerty.html.haml
  37. +2 −0  content/integration/culerty.yaml
  38. +46 −0 content/integration/databases.html.haml
  39. +2 −0  content/integration/databases.yaml
  40. +14 −0 content/integration/netbeans.html.haml
  41. 0  content/integration/netbeans.yaml
  42. +47 −0 content/integration/passenger.html.haml
  43. +2 −0  content/integration/passenger.yaml
  44. +60 −0 content/integration/textmate.html.haml
  45. +2 −0  content/integration/textmate.yaml
  46. +38 −0 content/integration/zsh.html.haml
  47. 0  content/integration/zsh.yaml
  48. +22 −0 content/interpreters.html.haml
  49. 0  content/interpreters.yaml
  50. 0  content/interpreters/ironruby.html.haml
  51. 0  content/interpreters/ironruby.yaml
  52. 0  content/interpreters/jruby.html.haml
  53. 0  content/interpreters/jruby.yaml
  54. 0  content/interpreters/macruby.html.haml
  55. 0  content/interpreters/macruby.yaml
  56. 0  content/interpreters/maglev.html.haml
  57. 0  content/interpreters/maglev.yaml
  58. 0  content/interpreters/mput.html.haml
  59. 0  content/interpreters/mput.yaml
  60. 0  content/interpreters/rbx.html.haml
  61. 0  content/interpreters/rbx.yaml
  62. 0  content/interpreters/ree.html.haml
  63. 0  content/interpreters/ree.yaml
  64. 0  content/interpreters/ruby.html.haml
  65. +2 −0  content/interpreters/ruby.yaml
  66. +13 −0 content/rubies.html.haml
  67. 0  content/rubies.yaml
  68. +33 −0 content/rubies/default.html.haml
  69. +2 −0  content/rubies/default.yaml
  70. 0  content/rubies/gems.html.haml
  71. 0  content/rubies/gems.yaml
  72. 0  content/rubies/gemsets.html.haml
  73. 0  content/rubies/gemsets.yaml
  74. +58 −0 content/rubies/installing.html.haml
  75. 0  content/rubies/installing.yaml
  76. +18 −0 content/rvm.html.haml
  77. 0  content/rvm.yaml
  78. +12 −0 content/rvm/about.html.haml
  79. +2 −0  content/rvm/about.yaml
  80. +95 −0 content/rvm/install.html.haml
  81. +2 −0  content/rvm/install.yaml
  82. +57 −0 content/rvm/introduction.html.haml
  83. +2 −0  content/rvm/introduction.yaml
  84. +10 −0 content/support.html.haml
  85. 0  content/support.yaml
  86. +85 −0 content/support/faq.html.haml
  87. 0  content/support/faq.yaml
  88. 0  content/support/irc.html.haml
  89. 0  content/support/irc.yaml
  90. 0  content/support/troubleshooting.html.haml
  91. 0  content/support/troubleshooting.yaml
  92. 0  content/tips_and_tricks.html.haml
  93. 0  content/tips_and_tricks.yaml
  94. +24 −0 content/workflow.html.haml
  95. 0  content/workflow.yaml
  96. +136 −0 content/workflow/monitor.html.haml
  97. +2 −0  content/workflow/monitor.yaml
  98. 0  content/workflow/rvmrc.html.haml
  99. +2 −0  content/workflow/rvmrc.yaml
  100. +62 −0 layouts/rvm.html.haml
  101. +3 −0  layouts/rvm.yaml
  102. +2 −0  lib/default.rb
  103. +40 −0 lib/pygmentize.rb
  104. +8 −0 push
4 .gitignore
@@ -0,0 +1,4 @@
+.sass-cache/
+public/
+tmp/
+oldcontent/
1  Rakefile
@@ -0,0 +1 @@
+require "nanoc3/tasks"
33 Rules
@@ -0,0 +1,33 @@
+#!/usr/bin/env ruby
+
+
+require "compass"
+Compass.configuration.parse('compass_config.rb')
+# For compass v0.10 should be:
+# Compass.add_configuration "#{File.dirname(__FILE__)}/compass_config.rb"
+
+compile "/assets/css/*/" do
+ filter :sass, Compass.sass_engine_options
+end
+
+
+route "/assets/css/_*/" do
+ nil # don't output partials, so return nil
+end
+
+route "/assets/css/*/" do
+ # don't generate a directory like we do for HTML files
+ item.identifier.sub(%r{^/assets}, '').chop + ".css"
+end
+
+compile '*' do
+ filter :haml
+ layout "rvm"
+end
+
+route '*' do
+ item.identifier + "index.html"
+end
+
+layout '*', :haml
+
6 compass_config.rb
@@ -0,0 +1,6 @@
+project_path = File.dirname(__FILE__)
+http_path = '/'
+output_style = :compressed
+sass_dir = "content/assets/css"
+css_dir = "public/css"
+
6 config.yaml
@@ -0,0 +1,6 @@
+---
+output_dir: public
+data_sources:
+- type: filesystem_compact
+ items_root: /
+ layouts_root: /
103 content/assets/css/_base.sass
@@ -0,0 +1,103 @@
+@media screen["\n code\n color: orangered\n\n & :link,\n & code\n & :visited\n color: inherit\n"]
+
+
+pre
+ margin-left: 2em
+ white-space: pre-wrap
+
+
+h2
+ margin: 3em 0 1em 0
+
+
+h3
+ margin: 2.5em 0 1em 0
+
+
+h4
+ margin: 2.5em 0 0.75em 0
+
+
+h5, h6
+ margin: 2.5em 0 1em
+
+
+h1 + h2
+ margin: 0.75em 0 0.75em
+
+ + h2
+ margin: 0.75em 0 0.75em
+
+
+h2 + h3, h3 + h4, h4 + h5, h5 + h6
+ margin-top: 0.5em
+
+
+p
+ margin: 1em 0
+
+
+hr:not(.top)
+ display: block
+ background: none
+ border: none
+ padding: 0
+ margin: 2em 0
+ height: auto
+
+
+dl, dd
+ margin-top: 0
+ margin-bottom: 0
+
+
+dt
+ margin-top: 0.75em
+ margin-bottom: 0.25em
+ clear: left
+
+ + dt
+ margin-top: 0
+
+
+dd
+ dt
+ margin-top: 0.25em
+ margin-bottom: 0
+
+ p
+ margin-top: 0
+
+ dl + p, table + p
+ margin-top: 1em
+
+
+p + * > li, dd li
+ margin: 1em 0
+
+
+dt, dfn
+ font-weight: bold
+ font-style: normal
+
+
+dt dfn
+ font-style: italic
+
+
+pre, code
+ font-size: inherit
+ font-family: monospace
+ font-variant: normal
+
+
+pre
+ strong
+ color: black
+ font: inherit
+ font-weight: bold
+ background: yellow
+
+ em
+ font-weight: bolder
+ font-style: normal
0  content/assets/css/_base.yaml
No changes.
216 content/assets/css/default.sass
@@ -0,0 +1,216 @@
+@media print["\n h1\n page-break-before: always \n", "\n h1,\n & h2,\n & h3,\n & h4,\n & h5,\n & h6\n page-break-after: avoid \n", "\n ul,\n & ol,\n & dl\n page-break-before: avoid \n"]
+
+
+html, address, blockquote, body, dd, div, dl, dt, fieldset, form, frame, frameset, h1, h2, h3, h4, h5, h6, noframes, ol, p, ul, center, dir, hr, menu, pre
+ display: block
+
+
+li
+ display: list-item
+
+
+head
+ display: none
+
+
+table
+ display: table
+
+
+tr
+ display: table-row
+
+
+thead
+ display: table-header-group
+
+
+tbody
+ display: table-row-group
+
+
+tfoot
+ display: table-footer-group
+
+
+col
+ display: table-column
+
+
+colgroup
+ display: table-column-group
+
+
+td, th
+ display: table-cell
+
+
+caption
+ display: table-caption
+
+
+th
+ font-weight: bolder
+ text-align: center
+
+
+caption
+ text-align: center
+
+
+body
+ margin: 8px
+
+
+h1
+ font-size: 2em
+ margin: .67em 0
+
+
+h2
+ font-size: 1.5em
+ margin: .75em 0
+
+
+h3
+ font-size: 1.17em
+ margin: .83em 0
+
+
+h4, p, blockquote, ul, fieldset, form, ol, dl, dir, menu
+ margin: 1.12em 0
+
+
+h5
+ font-size: .83em
+ margin: 1.5em 0
+
+
+h6
+ font-size: .75em
+ margin: 1.67em 0
+
+
+h1, h2, h3, h4, h5, h6, b, strong
+ font-weight: bolder
+
+
+blockquote
+ margin-left: 40px
+ margin-right: 40px
+
+
+i, cite, em, var, address
+ font-style: italic
+
+
+pre, tt, code, kbd, samp
+ font-family: monospace
+
+
+pre
+ white-space: pre
+
+
+button, textarea, input, select
+ display: inline-block
+
+
+big
+ font-size: 1.17em
+
+
+small, sub, sup
+ font-size: .83em
+
+
+sub
+ vertical-align: sub
+
+
+sup
+ vertical-align: super
+
+
+table
+ border-spacing: 2px
+
+
+thead, tbody, tfoot
+ vertical-align: middle
+
+
+td, th, tr
+ vertical-align: inherit
+
+
+s, strike, del
+ text-decoration: line-through
+
+
+hr
+ border: 1px inset
+
+
+ol, ul, dir, menu, dd
+ margin-left: 40px
+
+
+ol
+ list-style-type: decimal
+
+ ul
+ margin-top: 0
+ margin-bottom: 0
+
+
+ul
+ ol, ul
+ margin-top: 0
+ margin-bottom: 0
+
+
+ol ol
+ margin-top: 0
+ margin-bottom: 0
+
+
+u, ins
+ text-decoration: underline
+
+
+br:before
+ content: "\A"
+ white-space: pre-line
+
+
+center
+ text-align: center
+
+
+\:link, :visited
+ text-decoration: underline
+
+
+\:focus
+ outline: thin dotted invert
+
+
+BDO
+ &[DIR="ltr"]
+ direction: ltr
+ unicode-bidi: bidi-override
+
+ &[DIR="rtl"]
+ direction: rtl
+ unicode-bidi: bidi-override
+
+
+*
+ &[DIR="ltr"]
+ direction: ltr
+ unicode-bidi: embed
+
+ &[DIR="rtl"]
+ direction: rtl
+ unicode-bidi: embed
84 content/assets/css/screen.sass
@@ -0,0 +1,84 @@
+@import base.sass
+@import default.sass
+
+*
+ margin: 0
+ padding: 0
+ font-family: Georgia, Palatino, Times, "Times New Roman", sans-serif
+
+body
+ background: #FFFFFF url(/images/bottom-gradient.gif) repeat-x fixed center bottom
+ margin: 1em
+
+ .container
+ margin: 4em auto
+ width: auto
+ clear: both
+ a
+ text-decoration: none
+ font-weight: bold
+ /* 871E05
+ color: maroon
+ &:hover
+ text-decoration: underline
+ color: blue
+ img
+ border: none
+
+ #header
+ background: url("/images/ruby.png") no-repeat 10px 10px
+ height: 120px
+ padding-bottom: 0.5em
+ clear: both
+ div
+ font-size: medium
+ &.title
+ margin-left: 130px
+ line-height: 1em
+ color: #871E05
+ font-weight: bold
+ font-size: 600%
+
+ &.tagline
+ margin-left: 150px
+ font-size: 120%
+ line-height: 1em
+
+
+ table.header
+ width: 95%
+ border: none
+ border-collapse: collapse
+ border-top: 1px solid maroon
+ border-bottom: 1px dotted maroon
+ font-size: small
+ thead
+ tr
+ border-bottom: 1px solid maroon
+ th
+ width: 20%
+ color: maroon
+ tbody
+ tr
+ td
+ width: 20%
+ vertical-align: top
+ text-align: justify
+ p
+ padding: 0.5em
+ a
+ img
+ float: right
+ padding: 0
+ padding-bottom: 1em
+ padding-left: 1em
+ #content
+ clear: both
+ padding: 1em
+ p
+ padding: 5px
+
+ #footer
+ clear: both
+
+
0  content/assets/css/screen.yaml
No changes.
BIN  content/assets/images/bbg_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  content/assets/images/bottom-gradient.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  content/assets/images/ruby.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 content/credits.html.haml
@@ -0,0 +1,9 @@
+%h2
+ %a{:href => "/credits/"} Credits - Thank you!!!
+%p
+ %ul
+ %li
+ %a{:href => "/credits/contributions/"} Contributions
+ %li
+ %a{:href => "/credits/donations/"} Donations
+
2  content/credits.yaml
@@ -0,0 +1,2 @@
+---
+title: Credits
55 content/credits/donations.html.haml
@@ -0,0 +1,55 @@
+%h1
+ THANK YOU!!!
+%p
+ The following people have so kindly donated to the rvm cause.
+ I very much appreciate their kind generosity.
+%ul
+ %li
+ %a{:href => "http://www.blueboxgrp.com/"}
+ Blue Box Group
+ %li
+ Marc-Andre Cournoyer
+ %li
+ Robert Hunter
+ %li
+ Rolf Bjaanes
+ %li
+ Francois ?
+ %li
+ Erik Hansson
+ %li
+ Konstantin Haase
+ %li
+ Justin Smestad
+ %li
+ Thomas Porter
+ %li
+ Brian Hogan
+ %li
+ Laust Rud Jensen
+ %li
+ Luis Lavena
+ %li
+ rbazinet
+ %li
+ Gerhard Lazu
+ %li
+ Vladimir Sizikov
+ %li
+ Scott A Clausen
+ %li
+ Thomas Kern
+ %li
+ Jack Dempsey
+ %li
+ Gordon Thiesfeld
+ %li
+ Victor Costan
+ %li
+ Douglas Seifert
+ %li
+ Pete Nicholls
+ %li
+ Sean Watson
+ %li
+ Jonathan Palardy
2  content/credits/donations.yaml
@@ -0,0 +1,2 @@
+---
+title: Awesome People :)
15 content/development.html.haml
@@ -0,0 +1,15 @@
+%h2
+ %a{:href => "/development/"} Development
+%p
+ %ul
+ %li
+ %a{:href => "/development/list"} Mailing List
+ %li
+ %a{:href => "/development/github/"} Git (GitHub)
+ %li
+ %a{:href => "/development/tracker/"} Pivotal Tracker Project
+ %li
+ %a{:href => "/development/contributing/"} Contributing
+ %li
+ %a{:href => "/development/debugging/"} Debugging
+
0  content/development.yaml
No changes.
20 content/development/contributing.html.haml
@@ -0,0 +1,20 @@
+%a{ :name => "contribute" }
+%h1
+ rvm contribution
+%ul
+ %li
+ Join us in IRC. #rvm
+ </li.>
+ %li
+ If you have a problem, please run "rvm debug" as well as "rvm ((command you tried to run)) --debug" and pastie/gist the url to the channel.
+ %li
+ Follow
+ %a{ :href => "http://twitter.com/wayneeseguin" }
+ @wayneeseguin
+ on Twitter.
+ %li
+ Mosey on over to the account on
+ %a{ :href => "https://www.pivotaltracker.com/projects/26822" }
+ Pivotal Tracker
+ , if a story catches your eye, come talk to me in #rvm on freenode about it. Then request to be added to the pivotal tracker project and have at it!
+
2  content/development/contributing.yaml
@@ -0,0 +1,2 @@
+--
+title: Contributing effort to the RVM project.
1  content/development/debugging.html.haml
@@ -0,0 +1 @@
+%h2 Debugging rvm
2  content/development/debugging.yaml
@@ -0,0 +1,2 @@
+---
+title: debugging rvm
6 content/development/github.html.haml
@@ -0,0 +1,6 @@
+%h2 rvm on github
+
+%pre
+ :preserve
+ git clone git://github.com/wayneeseguin/rvm.git
+
2  content/development/github.yaml
@@ -0,0 +1,2 @@
+---
+title: github
2  content/development/list.html.haml
@@ -0,0 +1,2 @@
+%h2 Listing
+
2  content/development/list.yaml
@@ -0,0 +1,2 @@
+---
+title: Listing
4 content/development/tracker.html.haml
@@ -0,0 +1,4 @@
+%h2 Tracker
+
+%p
+ RVM project uses Pivotal Tracker for development.
2  content/development/tracker.yaml
@@ -0,0 +1,2 @@
+---
+title: Tracker
74 content/index.html.haml
@@ -0,0 +1,74 @@
+%h1
+ Cut Rubies with ease...
+%img{ :src => "http://img.skitch.com/20090904-fyqnyu8pcr36ahe91er9x28bhi.png", :alt => "" }
+
+%br
+
+%h2
+ Ruby Version Manager (RVM)
+
+%h2 Introduction
+
+%p
+ RVM is a command line tool which allows us to easily install, manage and work with multiple ruby environments from interpreters to sets of gems.
+
+%h2 Production
+
+%p
+ RVM allows users to deploy each project with its own completely self contained and dedicated environment--from the specific version of ruby all the way down to the precise set of required gems to run the application. Having a precise set of gems also avoids the issue of version conflicts between projects, causing difficult-to-trace errors and hours of hair loss. With rvm, NO OTHER GEMS than those required are installed. This makes working with multiple complex applications where each has a long list of gem dependencies simple. RVM allows us to easily test gem upgrades by simply switching to a new clean set of gems to test with while leaving our original set intact. It is flexible enough to even have a set of gems per environment or development branch--or even individual developer's taste!
+
+%h2 Development
+
+RVM greatly simplifies the many facets of ruby development through a simple command line API. RVM allows you to have **identical** self-contained environments in your Development, CI, Q/A, Staging, and Production environments. No more hidden gotchas. If it works for one of them it will work in all of them. With named gem sets, it is simple to push a change from one environment to another. And, RVM is not just for Rails! Any ruby based application will benefit from usage of RVM.
+
+%h2 Testing
+
+%p
+ RVM enables us to easily test both upgrade and escape paths very easily and consistently. RVM has the ability to run a test suite, rake tasks, benchmarks and gem commands against multiple ruby versions at the same time. This means that we can easily ensure that our applications work in ruby 1.8.X, ree, 1.9.1, jruby, etc... and quickly expose areas in which they do not.
+
+%h2 Gem Management
+%p
+ RVM has an extremely flexible gem management system called Named Gem Sets. RVM's gems(ets) make managing gems across multiple versions of ruby a non issue. RVM enables you to add a small text file to your application's repository instead of checking in tons of gems inflating your repository size needlessly. Additionally rvm's gem set management uses a common cache directory so as to only have one downloaded version of each gem on disk rather than several copies.
+
+%h2 Security &amp; Stability
+
+%p
+ Ruby processes are, in general, volatile. Either from memory bloat or due to included libraries(gems) containing unknown and (potentially) dangerous code. Thus processes started *as root* have a higher probability of compromising both the stability and security of a system.
+
+%p
+ RVM helps ensure that all aspects of ruby are completely contained within user space, strongly encouraging non-root usage. Use of RVM rubies provide a higher level of system security and therefore reduce risk and overall system downtime. Additionally, since all processes run as the user, a compromised ruby process will not be able to compromise the entire system.
+
+%h2 Support
+
+%p
+ RVM is continuously evolving thanks to constant community feedback. The lead developer of RVM (Wayne E. Seguin) is highly responsive, addresses issues quickly and cares about helping the ruby community grow.
+
+%h1 Documentation
+
+%h2 Chapters
+
+%ul
+ %li
+ %a{:href => "/rvm/"} rvm
+
+ %li
+ %a{:href => "/interpreters/"} Interpreters
+
+ %li
+ %a{:href => "/rubies/"} Working with Rubies
+
+ %li
+ %a{:href => "/workflow/"} Workflow Components
+
+ %li
+ %a{:href => "/integrating/"} Integrating rvm with other software
+
+ %li
+ %a{:href => "/support/"} Help & Support
+
+ %li
+ %a{:href => "/development/"} Development
+
+ %li
+ %a{:href => "/credits/"} Credits
+
2  content/index.yaml
@@ -0,0 +1,2 @@
+---
+title: RVM Ruby Version Manager Documentation Index
18 content/integration.html.haml
@@ -0,0 +1,18 @@
+%h2
+ %a{:href => "/integration/"} integration rvm with other software
+%p
+ %ul
+ %li
+ %a{:href => "/integration/databases/"} Databases
+ %li
+ %a{:href => "/integration/zsh/"} Zsh
+ %li
+ %a{:href => "/integration/bundler/"} Bundler
+ %li
+ %a{:href => "/integration/passenger/"} Passenger
+ %li
+ %a{:href => "/integration/textmate/"} Textmate
+ %li
+ %a{:href => "/integration/netbeans/"} Netbeans
+
+
0  content/integration.yaml
No changes.
4 content/integration/bundler.html.haml
@@ -0,0 +1,4 @@
+%h2 Bundler
+
+%p
+ Use bundler version >= 0.9.4, bundle your gems to the system environment and let rvm handle the GEM_* settings for you.
2  content/integration/bundler.yaml
@@ -0,0 +1,2 @@
+---
+title: Bundler
6 content/integration/culerty.html.haml
@@ -0,0 +1,6 @@
+%h2
+ Culerty
+
+%p
+ In order to get Capybara (w/ @culerity support) running with rvm rubies see the following gist by mchung: http://gist.github.com/268216
+
2  content/integration/culerty.yaml
@@ -0,0 +1,2 @@
+---
+title: culerty
46 content/integration/databases.html.haml
@@ -0,0 +1,46 @@
+
+%h2
+ MySQL
+
+%h3
+ Linux
+%p
+ Simply make sure that mysql_config is in your path and the mysql gem should install with no issues.
+
+%h3
+ Mac OS X
+%p
+ The architecture of mysql must match the selected ruby’s architecture so you might have to re-install/compile one of them to the desired arch.
+%p
+ You can find out the architecture of each by inspecting the output of:
+%pre.code
+ :preserve
+ file $(which mysql)
+ file $(which ruby)
+%p
+ It is recommended that you install MySQL via the pre-built pkg installer provided on dev.mysql.com in the downloads section.
+ If you are running OSX 10.5 or later be sure to download the .pkg installer for 'x86_64' only, not the universal one nor the i386 one.
+
+%p
+ Once you have the architecture of both matching you can install the gem.
+%p
+ Place the following in your ~/.rvmrc file:
+%pre.code
+ :preserve
+ rvm_archflags="-arch x86_64"
+%p
+ Then install the mysql gem:
+%pre.code
+ :preserve
+ export ARCHFLAGS="-arch x86_64" ; gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
+%p
+ where in this example '/usr/local/mysql/bin/' is the path to my 'mysql_config' file installed with the .pkg mysql installer from dev.mysql.com.
+
+%p
+ Also be aware that there were just two bugfixes in building rubies:
+ %ul
+ %li
+ rvm now honors (again) the configure flags passed in on the command line -C –enable-shared,–with-iconv-dir=...
+ %li
+ rvm now specifies both --host and --build configure flags on OSX in order to ensure that it will properly build as x86_64 or i386.
+
2  content/integration/databases.yaml
@@ -0,0 +1,2 @@
+---
+title: Database libraries
14 content/integration/netbeans.html.haml
@@ -0,0 +1,14 @@
+%h2
+ Netbeans
+%p
+ There is a great writeup on how to properly use rvm inside netbeans by
+ %a{:href => "http://www.skorks.com/2010/01/using-multiple-rubies-seamlessly-on-the-one-machine-with-rvm/comment-page-1/#comment-3422"}
+ Alan Skorkin
+ If you use netbeans you should really read Alan's writeup.
+%p
+ Additionally, thanks to our friendly mr-interweb on IRC a hint on gems with netbeans
+%blockquote
+ 13:46 mr-interweb: Netbeans was detecting the wrong gem root
+ %br
+ 13:48 mr-interweb: Just a FYI in case other people have problems with Netbeans, Netbeans does not allow you to type in a path. You must browse to the path, but it will not show you hidden folders. So, you must create symbolic links like "ln -s ~/.gem ~/gem"
+
0  content/integration/netbeans.yaml
No changes.
47 content/integration/passenger.html.haml
@@ -0,0 +1,47 @@
+%a{ :name => "passenger" }
+%h1
+ Using rvm rubies with Passenger
+%p
+ rvm will allow you to use any of it's MRI/YARV rubies with passenger very easily.
+
+%h3
+ The easy way
+%pre.code
+ :preserve
+ rvm 1.9.1 --passenger
+%p
+ Then simply point your passenger ruby to:
+%pre.code
+ :preserve
+ ~/.rvm/bin/passenger_ruby
+%p
+ which will point to the correct 1.9.1 wrapper script, w00t! :)
+
+%h3
+ The Manual Way
+%p
+ Let us say that we have used a custom rvm installed ruby-1.9.1-p243.
+ To use this ruby under Passenger with Nginx simply substitute '/home/wayne/' with your own ~/ and 'ruby-1.9.1-p243' with your particular ruby string.
+%pre.code
+ :preserve
+ passenger_ruby /home/wayne/.rvm/bin/ruby-1.9.1-p243;
+ * NOTICE THE '.rvm/bin' DIR ^ ^ ^
+ * do NOT use the actual ruby binary in .rvm/ruby-1.9.1-p243/bin/ruby
+ * do not listen to passenger's output for passenger_ruby as passenger is not aware of rvm.
+%p
+ And for Passenger running under Apache set:
+%pre.code
+ :preserve
+ PassengerRuby /home/wayne/.rvm/bin/ruby-1.9.1-p243;
+ * NOTICE THE '.rvm/bin' DIR ^ ^ ^
+ * do NOT use the actual ruby binary in .rvm/ruby-1.9.1-p243/bin/ruby
+ * do not listen to passenger's output for PassengerRuby as passenger is not aware of rvm.
+%p
+ The '.rvm/bin/ruby-1.9.1-p243' is actually what is known as a 'wrapper script' which sets up the proper environment for the ruby so that passenger can find it's gems, etc... and then exec's the '.rvm/ruby-1.9.1-p243/bin/ruby'.
+%h2
+ How do I use custom gem sets under passenger?
+%p
+ Simply select the GEM_HOME for the gemset at the top of your config.ru file:
+%pre.code
+ :preserve
+ ENV["GEM_HOME"]=%x{"source ~/.bash_profile ; rvm 1.9.1%pancake ; rvm gemdir"}.strip
2  content/integration/passenger.yaml
@@ -0,0 +1,2 @@
+---
+title: Passenger - Come on, ride the train, hey, ride it, woo woo...
60 content/integration/textmate.html.haml
@@ -0,0 +1,60 @@
+%h2 TextMate
+
+%p First be sure your textmate is latest version
+
+%p
+ Next run the following script to make sure that your textmate bundles are up to date
+ %pre
+ :preserve
+ #!/usr/bin/env bash
+
+ mkdir -p /Library/Application\ Support/TextMate/
+
+ sudo chown -R $(whoami) /Library/Application\ Support/TextMate
+
+ cd /Library/Application\ Support/TextMate/
+
+ if [[ -d Bundles/.svn ]] ; then
+ cd Bundles && svn up
+ else
+ if [[ -d Bundles ]] ; then
+ mv Bundles Bundles.old
+ fi
+ svn co http://svn.textmate.org/trunk/Bundles
+ fi
+
+ exit 0
+
+%p
+ Then in your shell, select an rvm ruby as a textmate ruby
+ %pre
+ :preserve
+ ∴ rvm 1.9.1 --symlink textmate
+
+%p
+ Following that, set TM_RUBY to /Users/wayne/.rvm/bin/textmate_ruby in:
+
+ %pre
+ :preserve
+ Textmate | Preferences | Advanced | Shell Variables
+
+ section as per this skitch:
+ %a{:href => "http://skitch.com/wayneeseguin/nw34t/rvm-textmate-ruby"}
+ http://skitch.com/wayneeseguin/nw34t/rvm-textmate-ruby
+
+%p
+ Now quit textmate and re-open it for bundles and TM_RUBY settings to take effect.
+
+%p
+ You can now test if it is working by following these steps
+ %ol
+ %li Open a new document
+ %li
+ Put this code in the new document
+ %pre
+ :preserve
+ puts RUBY_DESCRIPTION
+
+ %li Save the file as 'ruby_test.rb'
+ %li Press Command + R to run the ruby
+ If you see something like this "ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0]" most importantly the 'ruby 1.9.1' part then it is working as expected.
2  content/integration/textmate.yaml
@@ -0,0 +1,2 @@
+---
+title: Using Textmate with RVM
38 content/integration/zsh.html.haml
@@ -0,0 +1,38 @@
+%h1
+ Zsh
+%p
+ rvm requires :
+ %ul
+ %li
+ The use of globs that can possible be empty (no matches).
+ If you experience glob problems try setting 'setopt nullglob' in your zsh profiles.
+ %li
+ Shell regex support via the operator =~. =~ appeared first in 4.3.5,(it was added in
+ %a{:href => "http://www.zsh.org/mla/workers/2007/msg00296.html"}
+ zsh-workers-23375.
+ )
+
+%p
+ how can I tell if my version of zsh supports =~ ?
+
+%pre.code
+ :preserve
+ ∴ foo=baaaar; [[ $foo =~ ba*r ]] && echo "Your shell supports the =~ regex operator." || echo "Your shell does not support the =~ regex operator."
+ Your shell supports the =~ regex operator.
+ ∴ zsh --version
+ zsh 4.3.5
+
+%pre.code
+ :preserve
+ ∴ foo=baaaar; [[ $foo =~ ba*r ]] && echo "Your shell supports the =~ regex operator." || echo "I like sheep, they are soft and fluffy..."
+ zsh: condition expected: =~
+ ∴ zsh --version
+ zsh 4.3.4
+
+%p
+ How can I upgrade my zsh version?
+
+%pre.code
+ :preserve
+ version="4.3.10" ; mkdir -p ~/.src && cd ~/.src && curl -O -L --create-dirs -C - http://downloads.sourceforge.net/project/zsh/zsh-dev/$version/zsh-$version.tar.bz2?use_mirror=voxel && tar jxf zsh-$version.tar.bz2* && cd zsh-$version && ./configure --prefix=/ && make && sudo make install
+
0  content/integration/zsh.yaml
No changes.
22 content/interpreters.html.haml
@@ -0,0 +1,22 @@
+%h2
+ %a{:href => "/interpreters/"} Interpreters
+
+%p
+ %ul
+ %li
+ %a{:href => "/interpreters/mri/"} MRI (ruby)
+ %li
+ %a{:href => "/interpreters/rbx/"} Rubinius (rbx)
+ %li
+ %a{:href => "/interpreters/jruby/"} JRuby (jruby)
+ %li
+ %a{:href => "/interpreters/ree/"} Ruby Enterprise Edition (ree)
+ %li
+ %a{:href => "/interpreters/maglev/"} MagLev (maglev)
+ %li
+ %a{:href => "/interpreters/ironruby/"} IronRuby (ironruby)
+ %li
+ %a{:href => "/interpreters/macruby/"} MacRuby (macruby)
+ %li
+ %a{:href => "/interpreters/mput/"} URABE Shyouhei's 1.9 (mput)
+
0  content/interpreters.yaml
No changes.
0  content/interpreters/ironruby.html.haml
No changes.
0  content/interpreters/ironruby.yaml
No changes.
0  content/interpreters/jruby.html.haml
No changes.
0  content/interpreters/jruby.yaml
No changes.
0  content/interpreters/macruby.html.haml
No changes.
0  content/interpreters/macruby.yaml
No changes.
0  content/interpreters/maglev.html.haml
No changes.
0  content/interpreters/maglev.yaml
No changes.
0  content/interpreters/mput.html.haml
No changes.
0  content/interpreters/mput.yaml
No changes.
0  content/interpreters/rbx.html.haml
No changes.
0  content/interpreters/rbx.yaml
No changes.
0  content/interpreters/ree.html.haml
No changes.
0  content/interpreters/ree.yaml
No changes.
0  content/interpreters/ruby.html.haml
No changes.
2  content/interpreters/ruby.yaml
@@ -0,0 +1,2 @@
+---
+title: MRI - Matz's Ruby Interpreter (YARV)
13 content/rubies.html.haml
@@ -0,0 +1,13 @@
+%h2
+ %a{:href => "/rubies/"} Working with Rubies
+%p
+ %ul
+ %li
+ %a{:href => "/rubies/installing/"} Installing Rubies
+ %li
+ %a{:href => "/rubies/default/"} Setting Default interpreter
+ %li
+ %a{:href => "/rubies/gems/"} Ruby Gems
+ %li
+ %a{:href => "/rubies/gemsets/"} Named gems(ets)
+
0  content/rubies.yaml
No changes.
33 content/rubies/default.html.haml
@@ -0,0 +1,33 @@
+%a{ :name => "default" }
+%h1
+ Setting the default Ruby
+%p
+ If you would like to make a Ruby be the default ruby that is selected when you open a new terminal shell simply use the --default flag:
+%pre.code
+ :preserve
+ ∴ rvm 1.9.1 --default
+
+ ∴ ruby -v
+
+ ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10.0.0]
+%p
+ The next time you open a window Ruby 1.9.1 will be the selected ruby.
+%p
+ To switch back to your system ruby:
+%pre.code
+ :preserve
+ ∴ rvm system
+
+ ∴ ruby -v
+
+ ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
+%p
+ To use the ruby you have selected as default:
+%pre.code
+ :preserve
+ ∴ rvm default
+
+ ∴ ruby -v
+
+ ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10.0.0]
+
2  content/rubies/default.yaml
@@ -0,0 +1,2 @@
+---
+title: setting default ruby for new terminals
0  content/rubies/gems.html.haml
No changes.
0  content/rubies/gems.yaml
No changes.
0  content/rubies/gemsets.html.haml
No changes.
0  content/rubies/gemsets.yaml
No changes.
58 content/rubies/installing.html.haml
@@ -0,0 +1,58 @@
+%h1
+ Installing Rubies
+
+%p
+ Official ruby interpreter releases that are supported by rvm can be installed using any of the below methods.
+
+%h2 Patch Levels
+%p
+ Installing specific ruby
+ %a{ :href => "/patchlevels/" }
+ patchlevels
+
+%h2
+ Repository Revisions (MRI)
+%p
+ Installing specific ruby repository
+ %a{ :href => "/revisions/" }
+ revisions
+
+%h2 Tags (MRI)
+%p
+ Installing specific ruby
+ %a{ :href => "/tags/" }
+ tags
+
+%h2 Custom Patches (MRI)
+%p
+ Installing specific rubies with custom
+ %a{ :href => "/patches/" }
+ patches
+
+%h2 Getting Head
+%p
+ Getting the head/trunk version of rubies is very simple.
+ For any interpreter which has head support simply prefix -head after the interpreter.
+%pre.code
+ :preserve
+ ∴ rvm install ree-head
+ ∴ rvm use ree-head
+%p
+ Note that as of this writing 1.9.2 has no repository branch and thus "1.9.1-head" IS "1.9.2-head".
+
+%h1 Install on Use
+%p
+ If you would like rvm to automatically install a ruby when you use it simply add the flag to your rvmrc file:
+%pre.code
+ :preserve
+ ∴ cat $HOME/.rvmrc
+ rvm_install_on_use_flag=1
+
+%h1 Compile Flags
+%p
+ If you need to pass compile flags for the compile process you can simply set the corresponding environment variables.
+ For example with ruby 1.9.1 to enable gdb:
+%pre.code
+ :preserve
+ ∴ optflags="-O0 -ggdb" rvm install 1.9.1
+
0  content/rubies/installing.yaml
No changes.
18 content/rvm.html.haml
@@ -0,0 +1,18 @@
+%h2
+ %a{:href => "/rvm/"} rvm
+
+%p
+ %ul
+ %li
+ %a{:href => "/rvm/introduction/"} Introduction
+ %li
+ %a{:href => "/rvm/prerequisites/"} Prerequisites
+ %li
+ %a{:href => "/rvm/installation/"} Installation
+ %li
+ %a{:href => "/rvm/upgrading/"} Upgrading
+ %li
+ %a{:href => "/rvm/cli/"} CLI
+ %li
+ %a{:href => "/rvm/about/"} About
+
0  content/rvm.yaml
No changes.
12 content/rvm/about.html.haml
@@ -0,0 +1,12 @@
+%a{ :name => "about" }
+%h1
+ About RVM
+%p
+ Ruby Version Manager (RVM) was originally started in October of 2007, almost two years ago.
+ Back then I had the idea and enthusiastically gave it a shot.
+ I quickly became discouraged as is a difficult problem space.
+%p
+ Since then, I have had much experience programming in both bash and Ruby.
+ So I found myself last weekend now having the correct need, skill and desire in order to finally make RVM happen.
+%p
+ RVM started as a personal project however it *very* quickly ballooned into a very feature rich application thanks to the awesome Ruby community giving constant feedback!
2  content/rvm/about.yaml
@@ -0,0 +1,2 @@
+---
+title: About RVM
95 content/rvm/install.html.haml
@@ -0,0 +1,95 @@
+%a{ :name => "install" }
+%a{ :name => "installation" }
+%a{ :name => "installing" }
+%h1
+ 1. Installing from GitHub
+%p
+ There are at least 3 ways to install RVM.
+%h2
+ Github Repository (recommended)
+%p
+ To install from the github repository (recommended):
+%pre.code
+ :preserve
+ mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone git://github.com/wayneeseguin/rvm.git && cd rvm && ./install
+%p
+ Or if you are behind a firewall (slower, but it should work):
+%pre.code
+ :preserve
+ mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone http://github.com/wayneeseguin/rvm.git && cd rvm && ./install
+%h3
+ Installation Video (removed due to stupidity on my part).
+- # '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/CbOVinkiK9E&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/CbOVinkiK9E&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>'
+
+%h2
+ 2. Installing from a source tarball
+%pre.code
+ :preserve
+ mkdir -p ~/.rvm/src/ && curl -O http://rvm.beginrescueend.com/src/rvm-0.0.66.tar.gz | tar zxf - && cd rvm-0.0.66 && ./install
+
+%h2
+ 3. Installing from a gem
+%p
+ First install the gem. After the gem has installed run the rvm-install script.
+%pre.code
+ :preserve
+ ∴ gem install rvm # Install the rvm gem
+ ∴ rvm-install # Install rvm, adds hooks for bash & zsh
+ # Only necessary the first time:
+ ∴ for profile in .bash_profile .bashrc ; do echo 'if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi' >> ~/.$profile fi
+ ∴ source ~/.rvm/scripts/rvm # load the new code into your current shell and start using rvm ! w00t!
+%p
+ If rvm-install is not found it is likely because your users gem home is not in your path. You can add it to your path by putting this in your ~/.bashrc &amp; ~/.bash_profile
+ For example my system ruby installs gems to ~/.gem/ruby/1.8 so I would do:
+
+%pre.code
+ :preserve
+ export PATH="$PATH:~/.gem/ruby/1.8/bin"
+ rvm-install
+%p
+ Now add the sourcing line to your profiles:
+%pre.code
+ :preserve
+ for profile in .bash_profile .bashrc ; do echo 'if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi' >> $HOME/$profile done
+
+%h3
+ NOTE
+%p
+ If rvm-install is not found it is likely because your users gem home is not in your path. You can add it to your path by putting this in your ~/.bashrc &amp; ~/.bash_profile
+%pre.code
+ :preserve
+ ∴ cat ~/.bash_profile | grep PATH
+ PATH=$PATH:~/.gem/ruby/1.8/bin ; export $PATH
+%p
+ Alternatively you can call it manually:
+%pre.code
+ :preserve
+ ∴ ~/.gem/ruby/1.8/bin/rvm-install
+ (rvm installs :) )
+
+%h1 Bootstrap script
+%p
+ The following script will boostrap git + rvm assuming that you have curl & sudo installed.
+ It will also install (last line) several common rubies.
+
+%pre.code
+ :preserve
+ #!/usr/bin/env bash
+
+ # Install git
+ mkdir -p $HOME/.rvm/src && cd $HOME/.rvm/src && package = git && version=1.6.5.3
+ curl -O http://kernel.org/pub/software/scm/git/$package-$version.tar.gz
+ cd $package-$version && ./configure --prefix=/usr/local && make && sudo make install
+
+ # Install rvm
+ cd $HOME/.rvm/src && git clone git://github.com/wayneeseguin/rvm.git && cd rvm && ./install
+
+ # Install common rubies
+ source $HOME/.rvm/scripts/rvm
+ rvm install 1.8.6,1.8.7,ree,1.9.1,jruby,rbx
+
+%h1 Notes & Warnings
+%ul
+ %li Do NOT 'return' from inside the .bashrc file or else rvm will be prevented from working properly.
+ %li Be sure that scripts/rvm is sourced at the end of your profiles, after any PATH or other environmental settings.
+
2  content/rvm/install.yaml
@@ -0,0 +1,2 @@
+---
+title: Ways to install rvm.
57 content/rvm/introduction.html.haml
@@ -0,0 +1,57 @@
+%p
+ Use
+ %em
+ %a{ :href => "/" }
+ rvm
+ \.
+ Easy installation and switching between available Ruby versions and runtimes, without messing up your current Ruby install!
+ rvm also allows you to use multiple versions of ruby in separate terminals concurrently!
+ %p
+ %h3
+ Getting started
+
+ %p
+ %a{:href => "/rvm/install"} Install rvm
+ %pre.code
+ :preserve
+ mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone git://github.com/wayneeseguin/rvm.git && cd rvm && ./install
+
+
+ %p
+ Alternatively you can call it manually:
+ %pre.code
+ :preserve
+ ∴ ~/.gem/ruby/1.8/bin/rvm-install
+ (rvm installs :) )
+ %p
+ Open a new shell and rvm!
+ %pre.code
+ :preserve
+ ∴ rvm install 1.9.1 ; rvm 1.9.1
+
+ ∴ ruby -v
+
+ ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]
+
+ ∴ which ruby
+
+ \/home/wayne/.rvm/ruby-1.9.1-p243/bin/ruby
+ %h3
+ Reverting to system default is simple as well!
+ %pre.code
+ :preserve
+ ∴ rvm default
+
+ ∴ ruby -v
+
+ ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
+
+ ∴ which ruby
+
+ /usr/bin/ruby
+ %p
+ \&larr; See more details on the rest of the site, especially checkout the
+ %a{ :href => "/examples/" }
+ Examples
+ \.
+
2  content/rvm/introduction.yaml
@@ -0,0 +1,2 @@
+---
+title: rvm Introduction
10 content/support.html.haml
@@ -0,0 +1,10 @@
+%h2
+ %a{:href => "/support/"} Help & Support
+%p
+ %ul
+ %li
+ %a{:href => "/support/faq/"} FAQ & Notes
+ %li
+ %a{:href => "/support/troubleshooting/"} Troubleshooting
+ %li
+ %a{:href => "/support/irc/"} IRC
0  content/support.yaml
No changes.
85 content/support/faq.html.haml
@@ -0,0 +1,85 @@
+%h1
+ rvm FAQ & Notes
+
+%h2
+ Do I need to use sudo with gems?
+%p
+ %strong
+ NO. DO NOT USE sudo
+ for rvm managed rubygems.
+ If you require more explanation see the
+ %a{ :href => "/gems/" }
+ gems
+ page.
+
+%h2
+ Install gems as root?
+%p
+ %strong
+ NO.
+ If you require more explanation see the
+ %a{ :href => "/gems/" }
+ gems
+ page.
+
+%h2
+ rvm is not found or the rvm selected default ruby is not set for new shells...
+%p
+ rvm must be included at the bottom of the profile files. Otherwise your settings will clobber it's (example: PATH)
+
+%h2
+ Does rvm work on windows? Will it in the future?
+%p
+ NO. If you would like to manage multiple versions of ruby on windows please use pik which is an excellent tool by Gordon Thiesfeld. You can find it on
+ %a{:href => "http://github.com/vertiginous/pik/"}
+ Github.
+
+%h2
+ Can I use a path with spaces?
+%p
+ Currently spaces in paths are not supported. Patches welcome :)
+
+%h2
+ How do I set a ruby to be default?
+%p
+ Seting the default ruby is
+ %a{ :href => "/setdefault" }
+ explained here
+ \.
+
+%h2
+ What are the defaults.
+%p
+ The default interpreter is 'ruby'. The default versions for each ruby interpreter are set in ~/.rvm/config/db and can be overridden by the user in ~/.rvm/config/user.
+%h2
+ Where are Ruby Gems kept?
+%ul
+ %li
+ Ruby Gems for all installed ruby interpreters and versions are stored completely separate.
+ Gems are located in ~/.rvm/gems/$interpreter/$version.
+ Gems can be additionally separated using
+ %a{ :href => "/gemsets" }
+ Gem Sets
+ \.
+
+%h2
+ Where is everything installed to ?
+%p
+ rvm installs everything into ~/.rvm. To remove rvm from your system simply remove ~.rvm.
+ You may have one additional config file in ~/.rvmrc and of course the rvm hook in your bash/zsh startup files.
+
+%h2
+ Do I need the gem after I install rvm?
+%p
+ No, the gem is only used for distribution, you can just as easily clone the github repo and run ./install.
+ After installation the Gem is no longer necessary and can be safely removed.
+
+%h2
+ My ruby is compiling as 32 bit but I am on Mac OS X Snow Leopard which has heavy advertisement that it is 64 bit!!!
+%p
+ rvm compiles to your current running kernel's architecture. This means that if your kernel is running as a 32 bit kernel (uname -m) it will compile 32 bit. You can override this behavior by placing the following in your ~/.rvmrc before installing the ruby interpreter:
+%pre.code
+ :preserve
+ rvm_archflags="-arch x86_64"
+
+
0  content/support/faq.yaml
No changes.
0  content/support/irc.html.haml
No changes.
0  content/support/irc.yaml
No changes.
0  content/support/troubleshooting.html.haml
No changes.
0  content/support/troubleshooting.yaml
No changes.
0  content/tips_and_tricks.html.haml
No changes.
0  content/tips_and_tricks.yaml
No changes.
24 content/workflow.html.haml
@@ -0,0 +1,24 @@
+%h2
+ %a{:href => "/workflow/"} Workflow Components
+%p
+ %ul
+ %li
+ %a{:href => "/workflow/rvmrc/"} rvmrc
+ %li
+ %a{:href => "/workflow/prompt/"} Prompt
+ %li
+ %a{:href => "/workflow/ruby/"} ruby 'do' action
+ %li
+ %a{:href => "/workflow/rake/"} rake 'do' action
+ %li
+ %a{:href => "/workflow/gem/"} gem 'do' action
+ %li
+ %a{:href => "/workflow/benchmark/"} benchmarking
+ %li
+ %a{:href => "/workflow/monitor/"} monitoring
+ %li
+ %a{:href => "/workflow/"} Hooks
+ %li
+ %a{:href => "/workflow/subshells/"} Subshells
+ %li
+ %a{:href => "/integration/"} Examples
0  content/workflow.yaml
No changes.
136 content/workflow/monitor.html.haml
@@ -0,0 +1,136 @@
+%h1 monitor
+
+%p
+ rvm monitor provides a way to monitor test::unit,shoulda,rspec etc... for changes and run specs/tests that have changed when files change.
+ Let's check out two examples of using this.
+
+%p
+ For the first example I will use the extlib project. First start up rvm monitor and then in my editor I change the files spec/array_spec.rb spec/blank_spec.rb and save them both at the same time.
+%pre.code
+ :preserve
+ rvm 1.8.6,1.8.7,1.9.1 monitor
+
+ wayne@Genius ~/projects/ruby/extlib [git:master] (0) ∴ rvm 1.8.6,1.8.7,1.9.1,jruby monitor
+
+
+ ruby-1.8.6-p383: ruby 1.8.6 (2009-08-04 patchlevel 383) [i686-darwin10.2.0]
+
+ Profiling enabled.
+ ......................
+
+
+ Top 10 slowest examples:
+ 0.0003950 Array#to_hash should return a Hash
+ 0.0003630 Array#to_mash should return a Mash
+ 0.0002400 String should be blank if it only contains whitespace
+ 0.0001840 Object should not be blank if not nil or empty
+ 0.0001620 FalseClass should always be blank
+ 0.0001380 Array should respond to #to_hash
+ 0.0001290 Object should be blank if it is empty
+ 0.0001280 Object should be blank if it is nil
+ 0.0000950 Numeric should never be blank
+ 0.0000910 String should not be blank if it contains non-whitespace
+
+ Finished in 0.006417 seconds
+
+ 22 examples, 0 failures
+
+
+ ruby-1.8.7-p174: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0]
+
+ Profiling enabled.
+ ......................
+
+
+ Top 10 slowest examples:
+ 0.0003670 Array#to_hash should return a Hash
+ 0.0003240 Array#to_mash should return a Mash
+ 0.0001880 Object should not be blank if not nil or empty
+ 0.0001630 Array should respond to #to_hash
+ 0.0001350 String should be blank if it only contains whitespace
+ 0.0001350 Object should be blank if it is empty
+ 0.0001260 Object should be blank if it is nil
+ 0.0000950 String should not be blank if it contains non-whitespace
+ 0.0000950 String should be blank if empty
+ 0.0000930 NilClass should always be blank
+
+ Finished in 0.006512 seconds
+
+ 22 examples, 0 failures
+
+
+ ruby-1.9.1-p243: ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-darwin10.2.0]
+
+ Profiling enabled.
+ ......................
+
+
+ Top 10 slowest examples:
+ 0.0002390 Array#to_hash should return a Hash
+ 0.0002250 NilClass should provide blank?
+ 0.0002040 Array#to_mash should return a Mash
+ 0.0001740 String should provide blank?
+ 0.0001560 Array should respond to #to_hash
+ 0.0001460 String should be blank if it only contains whitespace
+ 0.0001380 Object should not be blank if not nil or empty
+ 0.0001210 String should be blank if empty
+ 0.0001110 String should not be blank if it contains non-whitespace
+ 0.0001080 TrueClass should never be blank
+
+ Finished in 0.028875 seconds
+
+ 22 examples, 0 failures
+
+%p
+ For a second example I will use the coulda project. This one uses shoulda for its tests. I first start rvm monitor and then change the files test/feature_test.rb test/integration/using_coulda_test.rb in my editor and save both at the same time.
+%pre.code
+ :preserve
+ ∴ rvm 1.8.6,1.8.7,1.9.1 monitor
+
+
+ ruby-1.8.6-p383: ruby 1.8.6 (2009-08-04 patchlevel 383) [i686-darwin10.2.0]
+
+ Loaded suite test/test_helper
+ Started
+ .................
+ Finished in 0.005337 seconds.
+
+ 17 tests, 12 assertions, 0 failures, 0 errors
+
+
+ ruby-1.8.7-p174: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0]
+
+ Loaded suite test/test_helper
+ Started
+ .................
+ Finished in 0.006245 seconds.
+
+ 17 tests, 12 assertions, 0 failures, 0 errors
+
+
+ ruby-1.9.1-p243: ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-darwin10.2.0]
+
+ Loaded suite test/test_helper
+ Started
+ .................
+
+ Finished in 0.008412 seconds.
+
+ 17 tests, 12 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
+ 100% passed
+
+
+%h2 Notes
+%p
+ rvm monitor currently runs individual files that have changed only and does not re-run on fail repetitively. It simply runs and reports the results of your changes and stops there.
+ Currently if you wish to run all specs you would not use monitor, for that you would use the rake do action.
+%pre.code
+ :preserve
+ ∴ rvm 1.8.6,1.8.7,1.9.1 rake spec
+ # or
+ ∴ rvm 1.8.6,1.8.7,1.9.1 rake test
+ # or
+ ∴ rvm 1.8.6,1.8.7,1.9.1 specs
+ # or
+ ∴ rvm 1.8.6,1.8.7,1.9.1 tests
+
2  content/workflow/monitor.yaml
@@ -0,0 +1,2 @@
+---
+title: Monitoring your tests with rvm
0  content/workflow/rvmrc.html.haml
No changes.
2  content/workflow/rvmrc.yaml
@@ -0,0 +1,2 @@
+---
+title: rvmrc
62 layouts/rvm.html.haml
@@ -0,0 +1,62 @@
+!!!
+%html
+ %head
+ %title
+ rvm: Ruby Version Manager -
+ = @item[:title]
+ %link{ :href => "/css/screen.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
+ %meta{ :content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type" }
+
+ %body
+ %a{ :href => "http://github.com/wayneeseguin/rvm" }
+ %img{ :src => "http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png", :alt => "Fork me on GitHub", :style => "position: absolute; top: 0; right: 0; border: 0;" }
+
+ #header
+ %a{ :name => "header" }
+ .title
+ %a{ :href => "/" }
+ rvm
+ .tagline
+ Ruby Version Manager
+
+ %table.header
+ %thead
+ %tr
+ %th Donate
+ %th Recommend
+ %th IRC
+ %th Sponsors
+ %tbody
+ %tr
+ %td
+ %p
+ %a{ :href => "http://www.pledgie.com/campaigns/7067" }
+ %img{ :src => "http://www.pledgie.com/campaigns/7067.png?skin_name=chrome", :border => "0", :alt => "Click here to lend your support to: rvm and make a donation at www.pledgie.com !" }
+ Love rvm?
+ A donation would help justify to my family why I spend so much time working on Open Source projects like rvm ;)
+ %td
+ %p
+ If you like my work with rvm, please recommend me on *with a comment as to why you recommend me* on
+ %a{ :href => "http://www.workingwithrails.com/recommendation/for/person/7192-wayne-e-seguin" }
+ Working With Rails
+ Thank You!!!
+ %td
+ %p
+ I hang out on
+ %a{ :href => "http://webchat.freenode.net/?channels=rvm" }
+ irc.freenode.net#rvm
+ My nick is 'wayneeseguin'.
+ If I do not respond right away, leave a message I respond when I get back on.
+ %td
+ %p
+ %a{:href => "http://www.blueboxgrp.com/"}
+ %img{:src => "/images/bbg_logo.png", :alt => "Blue Box Group, LLC"}
+
+ #content
+ %a{ :name => "top" }
+ = yield
+ %a{ :name => "bottom" }
+
+ #footer
+ .center
+ Copyright &copy; >= 2009 Wayne E. Seguin
3  layouts/rvm.yaml
@@ -0,0 +1,3 @@
+---
+title: rvm - Ruby Version Manager - Documentation Site
+
2  lib/default.rb
@@ -0,0 +1,2 @@
+# All files in the 'lib' directory will be loaded
+# before nanoc starts compiling.
40 lib/pygmentize.rb
@@ -0,0 +1,40 @@
+class PygmentizeFilter < Nanoc3::Filter
+
+ identifier :pygmentize
+
+ def run(content, options = {})
+ require "hpricot"
+ document = Hpricot(content)
+ code_blocks = document.search("code").map do |code_block|
+ code_block.inner_html = pygmentize(html_unescape(code_block.inner_html), code_block[:lang] || "ruby")
+ end
+ document.to_s
+ end
+
+ private
+
+ def pygmentize(string, lang)
+ html = ""
+ pygmentize = %x{which pygmentize}.strip
+ open("| #{pygmentize} -f html -l #{lang}", "w+") do |file|
+ # Write the code to standard input of pygmentize.
+ file.puts(string)
+ # Close standard input so that we get some output.
+ file.close_write
+ # Read the output of pygmentize.
+ html = file.read
+ end
+ html = "<pre><code>#{string.strip}</code></pre>" if html.empty?
+ html.strip
+ end
+
+ def copy_text_to_file(string, identifier, dir)
+ %x{echo '#{string.gsub("'",'\'')}' >> #{dir}/#{identifier}}
+ "#{dir}/#{identifier}"
+ end
+
+ def html_unescape(escaped_text)
+ escaped_text.gsub('&amp;', '&') .gsub('<', '<') .gsub('>', '>') .gsub('"', '"')
+ end
+
+end
8 push
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+#sass content/assets/css/bp.sass > output/bp.css
+#sass content/assets/css/style.sass > output/style.css
+
+#nanoc3 co --verbose && rsync -avgz output/ bre@beginrescueend.com:rvm/public/
+nanoc3 co --verbose && rsync -avgz output/ rvm@db0-bbg:current/public/
+
Please sign in to comment.
Something went wrong with that request. Please try again.