I am using ruby 1.8.7 on windows (mingw32), and all of a sudden i cannot run

c:\> ruby script/plugin install git://github.com/daphonz/dirty_associations.git
Plugin not found: ["git://github.com/daphonz/dirty_associations.git"]

the suggested variations also don’t work, e.g.

ruby script/plugin install http://github.com/daphonz/dirty_associations.git
ruby script/plugin install http://github.com/daphonz/dirty_associations.git/

all give the same error.

But, apparently, it has something to do with the mingw32 platform.
In C:\Ruby\lib\ruby\gems\1.8\gems\activesupport-2.3.5\lib\active_support\core_ext\kernel\reporting.rb the following line can be found in function silence_stream:

stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')

Replace that with the correct way to check for the windows platform, and then all should be fine again :)

stream.reopen(RUBY_PLATFORM =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')

I still needed to replace git:// with http:// but now it works :)

Now investigate how this can be pushed to Rails codebase?