Permalink
Browse files

Bunch of small updates and some changes to the site

  • Loading branch information...
1 parent ff375ba commit 21a0ccb77196d29fd1c2c85aa64ade5cf9cb14f0 @wycats wycats committed Mar 31, 2010
View
BIN site/images/bundler-small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN site/images/emocow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
20 src/layouts/application.haml
@@ -10,4 +10,22 @@
%a{:href => "index.html"}
%img{:src => "images/bundler.png", :width => "850"}/
%h1 The best way to manage Ruby applications
- = yield
+ = yield
+
+ #footer
+ = img("emocow.png")
+ .spacer
+ %p
+ = link("home", "index.html")
+ \/
+ = link("install", "install.html")
+ \/
+ = link("lock", "bundle_lock.html")
+ \/
+ = link("#setup", "bundler_setup.html")
+ \/
+ = link("git", "git.html")
+ \/
+ = link("groups", "groups.html")
+ .spacer
+ = img("bundler-small.png")
View
55 src/pages/bundle_install.haml
@@ -0,0 +1,55 @@
+%h2 bundle install
+
+.contents
+ .bullet
+ .description
+ Make sure all dependencies in your Gemfile are
+ available to your application.
+ .how
+ :highlight_plain
+ $ bundle install
+ .notes
+ Gems may be
+ installed to system gems or BUNDLE_PATH (defaults
+ to ~/.bundle). Git repos will be checked out
+ to BUNDLE_PATH.
+
+ .bullet
+ .description
+ Install your dependencies to a different location
+ than BUNDLE_PATH.
+ = link("Learn More: Bundler.setup", "bundler_setup.html")
+ = link("Learn More: Bundler.require", "groups.html")
+ .how
+ :highlight_plain
+ $ bundle install vendor/bundle
+ .notes
+ Further bundle commands or
+ calls to Bundler.setup or Bundler.require will
+ remember this location
+
+ .bullet
+ .description
+ Install all dependencies, except those in groups
+ you explicitly excluded
+ = link("Learn More: Groups", "groups.html")
+ :highlight_plain
+ $ bundle install --without development test
+
+ .bullet
+ .description
+ Install all gems to BUNDLE_PATH, but ignore
+ gems that are installed in your system. This
+ is especially useful if you're trying to
+ package up an application with all dependencies
+ unpacked.
+ .how
+ :highlight_plain
+ $bundle install vendor/bundle --without-shared-gems
+ .notes
+ By default, bundler will not try to reinstall
+ gems that are already installed in your system.
+ By specifying --without-shared-gems, you are
+ telling bundler to install all gems into the
+ BUNDLE_PATH, regardless of whether they are
+ already installed in your system
View
27 src/pages/bundle_lock.haml
@@ -0,0 +1,27 @@
+%h2 bundle lock
+
+.contents
+ .bullet
+ .description
+ Calculate the entire dependency tree, and
+ store the results in Gemfile.lock. Check
+ Gemfile.lock into version control
+ :highlight_plain
+ $ bundle lock
+ $ git add Gemfile.lock
+
+ .bullet
+ .description
+ After you have locked your gems, you've
+ updated your Gemfile and want to update
+ Gemfile.lock
+ :highlight_plain
+ $ bundle lock
+
+ .bullet
+ .description
+ After you have locked your gems, you've
+ updated your Gemfile and want to install
+ the new gems
+ :highlight_plain
+ $ bundle install --relock
View
24 src/pages/bundler_setup.haml
@@ -0,0 +1,24 @@
+%h2 Bundler.setup
+
+.contents
+ .bullet
+ .description
+ Configure the load path so all dependencies in
+ your Gemfile can be required
+ :highlight_ruby
+ require "rubygems"
+ require "bundler"
+ Bundler.setup
+ require "nokogiri"
+
+ .bullet
+ .description
+ Only add gems from specified groups to the
+ load path. If you want the gems in the
+ default group, make sure to include it
+ = link("Learn More: Groups", "groups.html")
+ :highlight_ruby
+ require "rubygems"
+ require "bundler"
+ Bundler.setup(:default, :ci)
+ require "nokogiri"
View
14 src/pages/groups.haml
@@ -41,4 +41,16 @@
in a group named the same as the current
Rails environment
:highlight_ruby
- Bundler.require(:default, Rails.env)
+ Bundler.require(:default, Rails.env)
+
+ .bullet
+ .description
+ Restrict the groups of gems that you
+ want to add to the load path. Only gems
+ in these groups will be require'able
+ = link("Learn More: Bundler.setup", "bundler_setup.html")
+ :highlight_ruby
+ require "rubygems"
+ require "bundler"
+ Bundler.setup(:default, :ci)
+ require "nokogiri"
View
14 src/pages/index.haml
@@ -24,13 +24,15 @@
.bullet
.description
Install all of the required gems from your specified sources
+ = link("Learn More: bundle install", "bundle_install.html")
:highlight_plain
$ bundle install
$ git add Gemfile
.bullet
.description
Inside your app, load up the bundled environment
+ = link("Learn More: Bundler.setup", "bundler_setup.html")
:highlight_ruby
require "rubygems"
require "bundler"
@@ -44,6 +46,7 @@
When you're ready to share your application
or deploy it, lock down all the versions of the gems
you're using
+ = link("Learn more: bundle lock", "bundle_lock.html")
:highlight_plain
$ bundle lock
$ git add Gemfile.lock
@@ -54,6 +57,7 @@
.bullet
.description
Install the required gems
+ = link("Learn More: bundle install", "bundle_install.html")
:highlight_plain
$ bundle install
@@ -100,5 +104,11 @@
.description
Install gems to a different location
(the default is ~/.bundle)
- :highlight_plain
- $ bundle install vendor --disable-shared-gems
+ = link("Learn More: bundle install", "bundle_install.html")
+ .how
+ :highlight_plain
+ $ bundle install vendor --disable-shared-gems
+ .notes
+ By specifying --disable-shared-gems, you are telling
+ bundler to install the gems into vendor, even if
+ they are already installed in the system
View
43 src/stylesheets/application.sass
@@ -2,6 +2,7 @@
@import compass/css3/box_shadow.sass
@import compass/css3/text_shadow.sass
@import compass/css3/border_radius.sass
+@import compass/css3/box_sizing.sass
=flexbox(!direction, !align="center")
display: -webkit-box
@@ -13,7 +14,7 @@
=distribute-children(!distribute)
-webkit-box-pack= !distribute
- -mox-box-box= !distribute
+ -moz-box-pack= !distribute
=liquid(!size = 1)
-webkit-box-flex= !size
@@ -34,14 +35,39 @@ img
width: 100%
#contents
- +flexbox("vertical")
- width= !width
+ +flexbox("vertical", "justify")
#header
h1
text-align: right
color: #346B8C
+#footer
+ padding: 10px 20px
+ background-color: #bcc
+ width: 100%
+ margin-top: 30px
+ +box-sizing("border-box")
+ +flexbox("horizontal", "center")
+ +distribute-children("justify")
+
+ img:first-child
+ +box-shadow("blue", 0, 0, 5px)
+
+ .spacer
+ +liquid
+
+ img
+ display: block
+
+ p
+ font-family: Helvetica, sans-serif
+ color: #366
+ font-size: 24px
+ a
+ text-decoration: none
+ color: #699
+
.contents
width= !width
@@ -55,23 +81,32 @@ h2
.bullet
width: 100%
- +flexbox("horizontal", "center")
+ +flexbox("horizontal", "start")
padding: 10px
.description
width: 300px
margin-right: 20px
color: #033
+ line-height: 20px
+text-shadow
a
padding-top: 10px
padding-bottom: 5px
+ padding-right: 30px
text-decoration: none
display: block
color: #060
text-align: center
+ .how
+ +flexbox("vertical", "justify")
+ +liquid
+ .notes
+ margin-top: 10px
+ color: #799
+
pre
margin: 0
+border-radius(5px)

0 comments on commit 21a0ccb

Please sign in to comment.