1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Fix compatibility with 1.9.2 and with 1.8. Closes #73

This commit is contained in:
Julien Kirch 2011-06-13 11:45:37 +02:00
parent d1a7e44638
commit ab5bbcba20
2 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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