Skip to content

Commit

Permalink
Fix compatibility with 1.9.2 and with 1.8. Closes rest-client#73
Browse files Browse the repository at this point in the history
  • Loading branch information
archiloque committed Jun 13, 2011
1 parent d1a7e44 commit ab5bbcb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/restclient
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ab5bbcb

Please sign in to comment.