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.
, it has something to do with the mingw32 platform.
the following line can be found in function
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?