Permalink
Browse files

Added bundler dependency management

  • Loading branch information...
1 parent 9ce5ccf commit 43e7c279912b5dc78df73b6cbe81eb72bd719703 @rmm5t committed Dec 2, 2010
Showing with 20 additions and 12 deletions.
  1. +3 −1 .gitignore
  2. +3 −0 Gemfile
  3. +10 −0 Gemfile.lock
  4. +4 −11 Rakefile
  5. BIN vendor/cache/ghost-0.2.8.gem
View
@@ -1 +1,3 @@
-ajax
+ajax
+.bundle
+vendor/ruby
View
@@ -0,0 +1,3 @@
+source "http://rubygems.org"
+
+gem "ghost"
View
@@ -0,0 +1,10 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ ghost (0.2.8)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ ghost
View
@@ -1,3 +1,7 @@
+require "bundler/setup"
+require "webrick"
+require "ghost"
+
task :default => :serve
IP_ADDRESS = "172.16.88.88"
@@ -16,17 +20,6 @@ task :sync do
end
end
-def safe_require(require_path, gem_name = require_path)
- require require_path
-rescue LoadError
- puts "You are missing a required dependency. Please run:"
- puts " gem install #{gem_name}"
- exit 1
-end
-
-require "webrick"
-safe_require "ghost"
-
def prepare_for_exit
trap("INT") { cleanup_and_exit }
trap("TERM") { cleanup_and_exit }
Binary file not shown.

0 comments on commit 43e7c27

Please sign in to comment.