$Id: CHANGES,v 1.1 2002/04/23 05:54:02 ianmacd Exp $

New in version 0.3.0
--------------------

This version of the software introduces incompatibilities with previous
releases.

The Search#search method now returns a Struct::Response instead of a
Google::Search object. Previously, the instance variable @response contained
the Struct::Response.

The resultElements member of the Struct::Response returned by Search#search
contains Struct::ResultElement objects. These no longer contain the instance
variable @attribute.

This means that, whereas you would previously have written code like:

  i = 0
  q = google.search(query)
  q.response['resultElements'].each do |result|
    printf "\nResult # %d\n\n", i += 1
    result.each do |key|
      printf("%s = %s\n", key, result.attribute[key])
    end
  end

  puts '---------------------------------'
  printf "Estimated number of results is %d.\n",
          q.response['estimatedTotalResultsCount']
  printf "Your query took %6f seconds.\n", q.response['searchTime']


you would now write:


  i = 0
  q = google.search(query)
  q.resultElements.each do |result|
    printf "\nResult # %d\n\n", i += 1
    result.each do |key|
      printf("%s = %s\n", key, result.send(key))
    end
  end

  puts '---------------------------------'
  printf "Estimated number of results is %d.\n",
         q.estimatedTotalResultsCount
  printf "Your query took %6f seconds.\n", q.searchTime
