ar_mailer 1.4.0

Eric Hodel | Wed, 24 Jun 2009 22:53:06 GMT

ar_mailer is a two-phase delivery agent for ActionMailer. Even delivering email to the local machine may take too long when you have to send hundreds of messages. ar_mailer allows you to store messages into the database for later delivery by a separate process, ar_sendmail.

Changes:

  • 1.8.7 and 1.9 STARTTLS compatibility, now uses smtp_tls gem for STARTTLS on 1.8.6
  • Fix 1.9 warnings

Posted in ,  | 6 comments

production_log_analyzer 1.5.1

Eric Hodel | Wed, 24 Jun 2009 03:44:37 GMT

production_log_analyzer version 1.5.1 has been released!

  • <a href=”http://seattlerb.rubyforge.org/production_log_analyzer”>Documentation
  • <a href=”http://rubyforge.org/projects/seattlerb”>Project page
  • <a href=”http://rubyforge.org/tracker/?func=add&group_id=1513&atid=5921”>Bug reports

production_log_analyzer lets you find out which actions on a Rails site are slowing you down.

Changes:

  • 1.9 and 1.8.7 compatibility.

Posted in ,  | no comments

Converting from REXML to Nokogiri

Eric Hodel | Thu, 18 Jun 2009 01:02:02 GMT

Nokogiri is pretty darn cool, certainly far cooler than REXML. I switched UPnP to Nokogiri, and here’s a handy guide.

require 'rexml/document'

Becomes

require 'nokogiri'
REXML::Document.new

Becomes

Nokogiri::XML

Both accept String or IO objects

my_element.element['element/path']

Becomes

my_element.at 'element > path'

You can use CSS in #at

my_element.each_element 'element/path' do |sub_element|

Becomes

my_element.xpath('./xmlns:element/xmlns:path').each do |sub_element|

”.” is used to select sub-elements of this one

See also Nokogiri’s Node documentation.

Posted in ,  | no comments

UPnP 1.2.0

Eric Hodel | Wed, 17 Jun 2009 00:06:07 GMT

An implementation of the UPnP protocol

Changes

  • 2 minor enhancements
    • Workaround for missing socket constants on Windows. Reported by Yuri.
    • upnp_discover now shows action argument and return value names.
  • 4 bug fixes
    • Method name must not include entire URI. Reported by Ian Macdonald.
    • Step in allowedValueRange is optional. Reported by Ian Macdonald.
    • upnp_listen works with all notification types. Reported by Ian Macdonald.
    • upnp_discover now warns when a device failed to instantiate. Reported by Ian Macdonald.

Posted in ,  | no comments