diff options
author | dominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56> | 2011-02-15 18:53:18 +0000 |
---|---|---|
committer | dominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56> | 2011-02-15 18:53:18 +0000 |
commit | 84d24fccd1056cd440d08f77a10f888e9f9dffed (patch) | |
tree | b6b60d28f4d8ffdfdc81d1c70c4c4d4e07fa52b1 | |
parent | 7f937f54c14f10da803b90f15fee94b992b538d9 (diff) | |
download | libproxy-84d24fccd1056cd440d08f77a10f888e9f9dffed.tar.gz |
ruby bindings: minor cleanups
git-svn-id: http://libproxy.googlecode.com/svn/trunk@784 c587cffe-e639-0410-9787-d7902ae8ed56
-rw-r--r-- | bindings/ruby/Libproxy.i | 3 | ||||
-rw-r--r-- | bindings/ruby/test.rb | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/bindings/ruby/Libproxy.i b/bindings/ruby/Libproxy.i index 1f33aa8..183acba 100644 --- a/bindings/ruby/Libproxy.i +++ b/bindings/ruby/Libproxy.i @@ -4,7 +4,6 @@ #include "../../libproxy/proxy.h" %} - %typemap(out) char ** { VALUE arr = rb_ary_new2(255); int i; @@ -15,7 +14,7 @@ } %typemap(freearg) char ** { - free($source); + free($source); } %include "../../libproxy/proxy.h" diff --git a/bindings/ruby/test.rb b/bindings/ruby/test.rb index 9fcfb55..5730a32 100644 --- a/bindings/ruby/test.rb +++ b/bindings/ruby/test.rb @@ -1,8 +1,7 @@ require 'Libproxy' pf = Libproxy.px_proxy_factory_new - proxies = Libproxy.px_proxy_factory_get_proxies(pf, "http://www.google.com") -print proxies - +proxies.each { |proxy| print proxy + " " } +print "\n" |