Bug 2154

Summary: application/x-ruby glob pattern and more magic patterns
Product: shared-mime-info Reporter: Ilmari Heikkinen <irkheikk>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: high    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Ruby glob+magic patch against shared-mime-info-0.15

Description Ilmari Heikkinen 2004-12-26 05:32:22 UTC
The application/x-ruby mime entry has no glob pattern, and there is only one
magic pattern for the hashbang.

Attaching a patch with *.rb glob pattern and magic patterns copied from the
x-python entry.
Comment 1 Ilmari Heikkinen 2004-12-26 05:33:28 UTC
Created attachment 1596 [details] [review]
Ruby glob+magic patch against shared-mime-info-0.15
Comment 2 Ilmari Heikkinen 2004-12-26 05:43:13 UTC
Comment on attachment 1596 [details] [review]
Ruby glob+magic patch against shared-mime-info-0.15

--- freedesktop.org.xml.in	2004-08-16 13:29:23.000000000 +0300
+++ freedesktop.org.xml.in	2004-12-26 15:40:14.000000000 +0200
@@ -1213,7 +1213,9 @@
     <_comment>Ruby script</_comment>
     <magic>
       <match type="string" value="/bin/env ruby" offset="1:16"/>
+      <match type="string" value="/bin/ruby" offset="1:16"/>
     </magic>
+    <glob pattern="*.rb"/>
   </mime-type>
   <mime-type type="application/x-sc">
     <magic priority="50">
Comment 3 Christophe Fergeau 2005-04-16 06:57:57 UTC
I applied the 2nd patch from this bug, since the 1st one seemed redundant with
it. Thanks for the patches!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.