bin/restfully in restfully-0.7.0.pre vs bin/restfully in restfully-0.7.1.pre

- old
+ new

@@ -7,10 +7,17 @@ require 'restfully' require 'optparse' require 'logger' require 'pp' +# Behaviour of pp in IRB is different on ruby1.9: +# * pp(object) returns object#inspect. +# * we prefer the behaviour of ruby1.8 where pp returns nil. +alias :old_pp :pp +def pp(*args) + old_pp(*args); nil +end logger = Logger.new(STDERR) logger.level = Logger::WARN @options = {"logger" => logger, "require" => []} @@ -65,15 +72,14 @@ end if given_uri = ARGV.shift @options["uri"] = given_uri end -# p @options + # Compatibility with restfully < 0.6 @options["uri"] ||= @options.delete("base_uri") @session = Restfully::Session.new(@options) - def session @session end \ No newline at end of file