01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
--- rubilicious.rb 2005-05-30 10:25:34.000000000 +0900
+++ /usr/local/lib/ruby/site_ruby/rubilicious.rb 2006-08-11 14:08:27.465867368 +0900
@@ -39,6 +39,7 @@
require 'uri'
require 'time'
require 'net/http'
+require 'net/https'
require 'rexml/document'
class String
@@ -254,10 +255,11 @@
url = "#{base}/#{url}"
# connect to delicious
- http = Net::HTTP.Proxy(proxy_host, proxy_port).new(uri.host, uri.port).start
+ http = Net::HTTP.Proxy(proxy_host, proxy_port).new(uri.host, uri.port)
+ http.use_ssl = true if uri.scheme == "https" # enable SSL/TLS
# get URL, check for error
- resp = http.get(url, @headers)
+ resp = http.start.get(url, @headers)
raise "HTTP #{resp.code}: #{resp.message}" unless resp.code =~ /2\d{2}/
# close HTTP connection, return response
@@ -330,7 +332,7 @@
# set API URL (note that this can be changed by the user later)
@base_uri = opt['base_uri'] ||
ENV['RUBILICIOUS_BASE_URI'] ||
- 'http://del.icio.us/api'
+ 'https://api.del.icio.us/v1'
# set user agent string
user_agent = opt['user_agent'] ||
As we all know, freely available Open Source software is not really
free. Money and programming resources are needed to keep the effort
going. Up to now, most of those resources going to YAZ and Zebra have
been contributed by a few of you who have sponsored major
development, and by Index Data staff who have taken time from their
paid work to keep on improving the software without compensation. We
are asking all of you to be honest with yourselves and with us: if
you feel that YAZ or Zebra are important for your organization and
you have been getting a "free ride," please do the right thing, both
for yourselves and for the entire YAZ and Zebra communities, and sign
up for our ticket-based support.