From 639b0d47bb1615c90d609fa4839cd0e0da5ba274 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 11 Dec 2009 08:37:14 -0800 Subject: [PATCH] Bugfix: Standalone not loaded by default --- HISTORY.md | 1 + Rakefile | 1 + lib/hub.rb | 1 - test/helper.rb | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 4d12a3774..b869dc754 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,7 @@ * Fix inaccuracy in man page * Bugfix: Path problems in standalone.rb +* Bugfix: Standalone not loaded by default ## 0.1.2 (2009-12-10) diff --git a/Rakefile b/Rakefile index def96fe3d..51e2ff599 100644 --- a/Rakefile +++ b/Rakefile @@ -19,6 +19,7 @@ task :gem => [ :gemspec, :build ] desc "Build standalone script" task :standalone => [ :test, :load_hub ] do + require 'hub/standalone' Hub::Standalone.save('hub') end diff --git a/lib/hub.rb b/lib/hub.rb index cece1e850..b9215ad08 100644 --- a/lib/hub.rb +++ b/lib/hub.rb @@ -2,4 +2,3 @@ require 'hub/args' require 'hub/commands' require 'hub/runner' -require 'hub/standalone' diff --git a/test/helper.rb b/test/helper.rb index ff2a5c94e..7d8b872b3 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,6 +1,7 @@ require 'test/unit' $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' require 'hub' +require 'hub/standalone' class Test::Unit::TestCase # Shortcut for creating a `Hub` instance. Pass it what you would