From 7373b70c3b637f620f80cae761af4a44728026aa Mon Sep 17 00:00:00 2001 From: Ryan McGeary Date: Wed, 6 Mar 2013 09:44:42 -0500 Subject: [PATCH] Removed unused monitoring behavior from Rakefile --- Gemfile | 3 --- Gemfile.lock | 10 ---------- Rakefile | 31 +------------------------------ 3 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 Gemfile delete mode 100644 Gemfile.lock diff --git a/Gemfile b/Gemfile deleted file mode 100644 index 63214c9..0000000 --- a/Gemfile +++ /dev/null @@ -1,3 +0,0 @@ -source "http://rubygems.org" - -gem "fssm", "0.2.0" diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 72aa2a2..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,10 +0,0 @@ -GEM - remote: http://rubygems.org/ - specs: - fssm (0.2.0) - -PLATFORMS - ruby - -DEPENDENCIES - fssm (= 0.2.0) diff --git a/Rakefile b/Rakefile index d56fdc5..4ae17bd 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,6 @@ require "bundler/setup" -task :default => :watch +task :default => :test desc "Publish \"marketing\" docs" task :publish do @@ -11,36 +11,7 @@ task :publish do sh("git push --tags") end -desc "Build everything" -task :build do - rebuild_coffee -end - -desc "Watch for changes and test the site" -task :watch => :build do - sh("open test/index.html") - monitor -end - desc "Open your default browser with the test page" task :test do sh("open test/index.html") end - -def rebuild_coffee(base = nil, relative = "**/*.coffee") - sh("coffee -c #{relative}") -end - -def monitor - require "fssm" - puts ">>> Monitoring for changes. Press Ctrl-C to Stop." - FSSM.monitor do - path "." do - glob "**/*.coffee" - update &method(:rebuild_coffee) - delete &method(:rebuild_coffee) - create &method(:rebuild_coffee) - end - end -end -