Bug 2154 - application/x-ruby glob pattern and more magic patterns
Summary: application/x-ruby glob pattern and more magic patterns
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All All
: high enhancement
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-26 05:32 UTC by Ilmari Heikkinen
Modified: 2005-04-15 13:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Ruby glob+magic patch against shared-mime-info-0.15 (1.32 KB, patch)
2004-12-26 05:33 UTC, Ilmari Heikkinen
Details | Splinter Review

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.