/usr/share/doc/librubilicious-ruby1.8/examples/del_to_xbel.rb is in librubilicious-ruby1.8 0.1.4-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/usr/bin/env ruby
# load bindings
require 'rubilicious'
# check command-line arguments
unless ARGV.size == 3
$stderr.puts "Usage: $0 [user] [pass] [output_file]"
exit -1
end
# get command-line arguments
user, pass, path = ARGV
# open output fileC, connect to rubilicious, save
File::open(path, 'w') do |file|
# connect to rubilicious
r = Rubilicious.new(user, pass)
# save recent entries to output file
file.puts r.recent.to_xbel
end
|