Skip to content

Instantly share code, notes, and snippets.

View adelcambre's full-sized avatar

Andy Delcambre adelcambre

View GitHub Profile
#!/bin/bash
cp $1 $1.bak
curl -s http://whatthecommit.com/index.txt > $1
cat $1.bak >> $1
## statusbar
##
# default background for all statusbars. You can also give
# the default foreground color for statusbar items.
sb_background = "%4";
# default bg color for active window status bar
sb_window_bg = "%1";
(defun open (project) (interactive (list (read-directory-name "Peepopen for project: " "~/code/")))
(flet ((textmate-project-root () (file-truename project)))
(peepopen-goto-file-gui)))
(global-set-key [(meta ?o)] 'open)
@adelcambre
adelcambre / Gemfile
Created April 2, 2010 18:18 — forked from atmos/Gemfile
source :gemcutter
group :runtime do
gem 'sinatra', '~>1.0'
gem 'rack', '~>1.0.0'
end
# vim:ft=ruby
module Foo
module Bar
module Helper
def make_it_so
return where_i_came_from
end
end
end
end
if File.exists?("Gemfile")
# We are using bundler
_0_8_bundle_path = "vendor/gems"
if (gemfile = File.read("Gemfile")) =~ /^\s*bundle_path\s+"([^"])\"\s*$/
_0_8_bundle_path = $1
end
if File.exists?(_0_8_bundle_path / "environment.rb")
# we are using 0.8
else
diff --git a/lib/bundler/setup.rb b/lib/bundler/setup.rb
index e984348..05bd7e6 100644
--- a/lib/bundler/setup.rb
+++ b/lib/bundler/setup.rb
@@ -1,3 +1,7 @@
-require 'bundler'
+begin
+ require '.bundle/environment.rb'
+rescue LoadError
+ require 'bundler'
diff --git a/bundler.gemspec b/bundler.gemspec
index 7bd310e..160d1f9 100644
--- a/bundler.gemspec
+++ b/bundler.gemspec
@@ -6,11 +6,11 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
s.authors = ["Carl Lerche", "Yehuda Katz"]
- s.date = %q{2010-02-07}
+ s.date = %q{2010-02-09}
gem 'rake'
gem 'rspec', :require => 'spec'
source 'http://gemcutter.org'
gem 'rake'
group :never do
gem 'json'
end
source 'http://gemcutter.org'