diff --git a/bin/restclient b/bin/restclient index a5e838a..a37d880 100755 --- a/bin/restclient +++ b/bin/restclient @@ -1,9 +1,10 @@ #!/usr/bin/env ruby $:.unshift File.dirname(__FILE__) + "/../lib" -require 'restclient' -require "yaml" +require 'rubygems' +require 'restclient' +require 'yaml' def usage(why = nil) puts "failed for reason: #{why}" if why @@ -56,8 +57,8 @@ end POSSIBLE_VERBS.each do |m| eval <<-end_eval -def #{m} (path, *args, &b) - r[path]. #{m} (*args, &b) +def #{m}(path, *args, &b) + r[path].#{m}(*args, &b) end end_eval end diff --git a/history.md b/history.md index d180d38..3a8f933 100644 --- a/history.md +++ b/history.md @@ -1,4 +1,9 @@ +# 1.6.4 + +- fix restclient script compatibility with 1.9.2 + # 1.6.3 + - 1.6.2 was yanked # 1.6.2