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.
Created attachment 1596 [details] [review] Ruby glob+magic patch against shared-mime-info-0.15
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">
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.