BerlinVagrant / vagrant-dns

A plugin to manage DNS records for vagrant environments
MIT License
490 stars 50 forks source link

RubyDNS 0.6.0 Changes #15

Closed ioquatix closed 11 years ago

ioquatix commented 11 years ago

Hi,

RubyDNS 0.6.0 has ONE backwards incompatible change. The order of arguments for pattern based rules has changed.

Previously:

match(/pattern/, ...) do |match_data, transaction|
end

Now:

match(/pattern/, ...) do |transaction, match_data|
end

The motivation for this change is that match_data is often not needed, so now can be dropped from the argument list all together:

match(/pattern/, ...) do |transaction|
end

Let me know if you have any questions.

fnordfish commented 11 years ago

thanks, part of v0.4.0.