1 require 'google/api_client'
4 "http://www.gmodules.com/gadgets/proxy/container=default&debug=0&nocache=0/"
7 desc 'Autogenerate wiki pages'
10 #summary The list of supported APIs
12 The Google API Client for Ruby is a small flexible client library for accessing
13 the following Google APIs.
17 client = Google::APIClient.new
18 for api in client.discovered_apis
19 if !preferred_apis.has_key?(api.name)
20 preferred_apis[api.name] = api
22 preferred_apis[api.name] = api
25 for api_name, api in preferred_apis
27 "||#{CACHE_PREFIX}#{api['icons']['x16']}||" +
28 "[#{api.documentation} #{api.title}]||" +
29 "#{api.description}||\n"
32 wiki_path = File.expand_path(
33 File.join(File.dirname(__FILE__), '../wiki/'))
34 Dir.mkdir(wiki_path) if !File.exist?(wiki_path)
35 File.open(File.join(wiki_path, 'SupportedAPIs.wiki'), 'w') do |file|
41 # task 'clobber' => ['wiki:clobber_wiki']