D 2.062 release
Jacob Carlborg
doob at me.com
Mon Feb 18 01:05:42 PST 2013
On 2013-02-18 10:02, Joshua Niehus wrote:
> 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?
This time it wasn't me :)
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list