Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added bundler dependency management

  • Loading branch information...
commit 43e7c279912b5dc78df73b6cbe81eb72bd719703 1 parent 9ce5ccf
@rmm5t authored
View
4 .gitignore
@@ -1 +1,3 @@
-ajax
+ajax
+.bundle
+vendor/ruby
View
3  Gemfile
@@ -0,0 +1,3 @@
+source "http://rubygems.org"
+
+gem "ghost"
View
10 Gemfile.lock
@@ -0,0 +1,10 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ ghost (0.2.8)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ ghost
View
15 Rakefile
@@ -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 }
View
BIN  vendor/cache/ghost-0.2.8.gem
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.