<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -41,9 +41,10 @@ module Viking
     end
 
     def connect(engine, options)
-      unless engine.nil? || engine.empty?
+      engine = engine.to_s
+      unless engine.size.zero?
         require(engine)
-        Viking.const_get(engine.to_s.capitalize).new(options)
+        Viking.const_get(engine.capitalize).new(options)
       end
     end
 </diff>
      <filename>lib/viking/viking.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,31 +1,35 @@
 begin
-  require 'spec'
-rescue LoadError
-  require 'rubygems'
-  require 'spec'
-end
-begin
-  require 'spec/rake/spectask'
-rescue LoadError
-  puts &quot;To use RSpec for testing you must install its gem:\n\tgem install rspec&quot;
-  exit(0)
-end
+  begin
+    require 'spec'
+  rescue LoadError
+    require 'rubygems'
+    require 'spec'
+  end
+  begin
+    require 'spec/rake/spectask'
+  rescue LoadError
+    puts &quot;To use RSpec for testing you must install its gem:\n\tgem install rspec&quot;
+    exit(0)
+  end
 
-SPEC_OPTS_FILE = [
-    &quot;-O&quot;, 
-    File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;spec&quot;, &quot;spec.opts&quot;)
-  ].join(&quot; &quot;)
+  SPEC_OPTS_FILE = [
+      &quot;-O&quot;, 
+      File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;spec&quot;, &quot;spec.opts&quot;)
+    ].join(&quot; &quot;)
 
-desc &quot;Run all specs&quot;
-Spec::Rake::SpecTask.new 'spec' do |t|
-  t.spec_files = FileList[&quot;spec/**/*_spec.rb&quot;]
-  t.spec_opts  = [SPEC_OPTS_FILE]
-end
+  desc &quot;Run all specs&quot;
+  Spec::Rake::SpecTask.new 'spec' do |t|
+    t.spec_files = FileList[&quot;spec/**/*_spec.rb&quot;]
+    t.spec_opts  = [SPEC_OPTS_FILE]
+  end
 
-desc &quot;Run all specs with RCov&quot;
-Spec::Rake::SpecTask.new 'specs_with_rcov' do |t|
-  t.spec_opts  = [SPEC_OPTS_FILE]
-  t.spec_files = FileList[&quot;spec/**/*_spec.rb&quot;]
-  t.rcov       = true
-  t.rcov_opts  = ['--exclude', 'spec']
+  desc &quot;Run all specs with RCov&quot;
+  Spec::Rake::SpecTask.new 'specs_with_rcov' do |t|
+    t.spec_opts  = [SPEC_OPTS_FILE]
+    t.spec_files = FileList[&quot;spec/**/*_spec.rb&quot;]
+    t.rcov       = true
+    t.rcov_opts  = ['--exclude', 'spec']
+  end
+rescue LoadError
+  # no rspec
 end
\ No newline at end of file</diff>
      <filename>tasks/rspec.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dfb8bd12dac1e6e3794d540675d567067faabef2</id>
    </parent>
  </parents>
  <author>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </author>
  <url>http://github.com/technoweenie/viking/commit/2f6c9f5640da78d249c740bf9fedf81ee68dfbed</url>
  <id>2f6c9f5640da78d249c740bf9fedf81ee68dfbed</id>
  <committed-date>2008-09-28T14:53:53-07:00</committed-date>
  <authored-date>2008-09-28T14:53:53-07:00</authored-date>
  <message>update plugin</message>
  <tree>11aff3c2f288abe34cfe0f1a545cbe0f80a8a86a</tree>
  <committer>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </committer>
</commit>
