/usr/share/doc/librubilicious-ruby1.8/examples/list_tags.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 | #!/usr/bin/env ruby
require 'rubilicious'
# check command-line args
unless ARGV.size == 2
$stderr.puts "Usage: $0 [user] [pass]"
exit -1
end
# get command-line args
user, pass = ARGV
# connect to delicious
r = Rubilicious.new(user, pass)
# get a list of tags
tags = r.tags
# print out sorted list of tags
puts 'tag,count', tags.keys.sort.map { |key| "#{key},#{tags[key]}" }.join("\n")
|