D 2.062 release
Joshua Niehus
jm.niehus at gmail.com
Mon Feb 18 01:02:32 PST 2013
On Monday, 18 February 2013 at 07:31:53 UTC, Walter Bright wrote:
> As long as it isn't written in Ruby :-)
>
> But more seriously, a D tool to do it might be interesting.
Here is a simpleton hack:
### RUBY
require "nokogiri"
require "open-uri"
# provided the urls are given
changes_new_features_url = "http://...blah blah..."
d_runtime_fixes_url = "http://...blah blah..."
phobos_fixes_url = "http://...blah blah..."
def get_summaries(url)
summaries = []
page = Nokogiri::HTML(open(url))
table = page.css(".bz_buglist")
rows = table.css("tr")
rows.each do |row|
summary = row.css("td:last-child").text.strip
summaries << summary if !summary.empty?
end
summaries
end
puts "\nChanges and New Features:"
puts get_summaries(changes_new_features_url)
puts "\nD Runtime Fixes:"
puts get_summaries(d_runtime_fixes_url)
puts "\nPhobos Fixes:"
puts get_summaries(phobos_fixes_url)
### END
I guess the correct approach is to use Bugzilla's REST api, but
its 1am... and this might be good enough?
More information about the Digitalmars-d-announce
mailing list