Permalink
Browse files

added http:// to the default host. Mechanize apparently doesn't want …

…to guess.
  • Loading branch information...
1 parent 3a845ff commit c90167a5baeff1441e38b8498dd5167673b0127a @jtzemp jtzemp committed Jul 31, 2009
Showing with 4 additions and 4 deletions.
  1. +1 −1 bin/tourbus
  2. +1 −1 examples/contact_app/README.rdoc
  3. +1 −1 lib/tour.rb
  4. +1 −1 tourbus.sample.yml
View
@@ -11,7 +11,7 @@ config_map = { :host => :to_s, :concurrency => :to_i, :number => :to_i, :rand =>
config_map.each {|key,conv| config[key] = config[key].send(conv) if config.key? key }
# defaults
-config[:host] ||= "localhost:3000"
+config[:host] ||= "http://localhost:3000"
config[:concurrency] ||= 1
config[:number] ||= 1
config[:rand] ||= nil
@@ -30,7 +30,7 @@ Still here? Okay, let's tour this website.
In the tours folder, you will find two files: simple.rb and
tourbus.yml. The YAML file just sets the default host to
-localhost:4567. (Without it, tourbus will default to localhost:3000.
+localhost:4567. (Without it, tourbus will default to http://localhost:3000.
You could override this by running tourbus with "-h localhost:4567"
every time, but that gets tedious.
View
@@ -115,7 +115,7 @@ def self.tour?(tour_name)
end
# Factory method, creates the named child class instance
- def self.make_tour(tour_name,host="localhost:3000",tours=[],number=1,tour_id=nil)
+ def self.make_tour(tour_name,host="http://localhost:3000",tours=[],number=1,tour_id=nil)
tour_name.classify.constantize.new(host,tours,number,tour_id)
end
View
@@ -2,7 +2,7 @@
# defaults. You can delete any option, in which case it will use a
# sensible default (see bin/tourbus for the defaults).
---
-host: localhost:3000
+host: http://localhost:3000
concurrency: 1
number: 1
rand: nil

0 comments on commit c90167a

Please sign in to comment.