serve at /Users/jlong/.rvm/gems/ruby-1.9.2-p0@serve/bundler/gems/serve-c2741b08ab4b did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
[“lib/serve/templates/Gemfile”, “lib/serve/templates/README.markdown”, “lib/serve/templates/_layout.html.erb”, “lib/serve/templates/application.scss”, “lib/serve/templates/compass.config”, “lib/serve/templates/config.ru”, “lib/serve/templates/gitignore”, “lib/serve/templates/hello.html.erb”, “lib/serve/templates/index.redirect”, “lib/serve/templates/view_helpers.rb”] are not files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HelloWorld | |
def call(env) | |
[200, {"Content-Type" => "text/plain"}, ["Hello world!"]] | |
end | |
end | |
run HelloWorld.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The project root directory | |
$root = ::File.dirname(__FILE__) | |
# Common Rack Middleware | |
use Rack::ShowStatus # Nice looking 404s and other messages | |
use Rack::ShowExceptions # Nice looking errors | |
# | |
# From Rack::DirectoryIndex: | |
# https://github.com/craigmarksmith/rack-directory-index/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section.three-column-grid { | |
clear: both; | |
width: 960px; | |
@include clearfix; | |
> section { | |
float: left; | |
padding: 0 10px; | |
width: 300px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remember the current directory | |
if [ `type -t cd` == builtin ]; then | |
cd () | |
{ | |
builtin cd "$@" | |
pwd > ~/.working-directory | |
} | |
else | |
# Alias the cd function (needed if you run RVM) | |
eval "$(echo "__cd_without_cwd()"; declare -f cd | tail -n +2)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Palette | |
$black: #333; | |
$jet-black: #000; | |
$gray: #888; | |
$dark-gray: #555; | |
$burnt-orange: #c56210; | |
$orange: #d56000; | |
$bright-orange: #ff943c; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This should be in view_helpers.rb: | |
def logged_in? | |
boolean_param(:logged_in) | |
end | |
# my template code | |
<% unless logged_in? %> | |
<script type="text/javascript" charset="utf-8"> | |
alert('done') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# My homebrew formula for compiling Vim for the console with support | |
# for 256 colors + ruby, etc. | |
# | |
# To install, drop /usr/local/Library/Formulas/ and execute: | |
# | |
# brew install -f vim | |
require 'formula' | |
class Vim < Formula |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.button { | |
-moz-appearance: none; | |
-webkit-appearance: none; | |
appearance: none; | |
-moz-border-radius: 4px; | |
-webkit-border-radius: 4px; | |
-o-border-radius: 4px; | |
-ms-border-radius: 4px; | |
-khtml-border-radius: 4px; | |
border-radius: 4px; |