MIME type for Ruby scripts?

Do Ruby scripts and source files have a standard MIME type or two? If not may
I suggest:

Ruby scripts (executable, with a shebang line?)
application/x-ruby-script
Ruby source (everything else - not executable, libraries, etc.)
text/x-ruby-source

These two would be hard to tell apart just by file extension, though, so
perhaps we should have just the one, in the vein of Perl and Python:
Perl scripts (*.perl, .pl)
application/x-perl
Python scripts (
.py)
application/x-python

Java uses:
Java classes (.class)
application/x-java
Java source (
.java)
text/x-java

Those were taken from the definitions in Konqueror’s file associations. I have
no idea how official they are, but if we want to follow in the same line of
thinking my suggestion would be:
Ruby scripts (*.rb)
application/x-ruby

Maybe eruby should have one as well:
Eruby source files (*.rhtml)
text/x-eruby

Comments? Suggestions?

Tim Bates

···


tim@bates.id.au

Ruby scripts (*.rb *.rbw)
^^^^^^
application/x-ruby

Gavin

···

On Wednesday, January 8, 2003, 12:10:15 PM, Tim wrote: