-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mime-types 1.17.2 fails tests with ruby 1.8.7 #8
Comments
I can't reproduce on the Mac with 1.8.7-p358.
This is what will be going out tonight as 1.18. |
I have the same problem with the released 1.18 version. This is on Gentoo Linux using ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]. yaml = #<MIME::Type:0x7f3b05308ff8 @sub_type="yaml", @docs=nil, @content_type="text/x-yaml", @obsolete=nil, @url=nil, @registered=true, @encoding="8bit", @media_type="text", @raw_sub_type="x-yaml", @simplified="text/yaml", @System=/linux/, @extensions=["yaml", "yml"], @raw_media_type="text"> Please let me know if you need more info on this, I'd be happy to dig around a bit more if you tell me what you need. |
I think I see the problem. Can you try changing line 9 of test/test_mime_type.rb to: MIME::Type.from_array('text/x-yaml', %w(yaml yml), '8bit', 'xunil') You'll get two different failures, but you get those, I know how to fix it and will commit a patch later. |
Apparently some people run the tests on Linux. Imagine that. :)
|
Fix confirmed, I just tested with the new commit and tests now pass on ruby 1.8, ruby 1.9 and jruby. Thanks! |
== MIME::Types 1.18 / 2012-03-20 * New MIME Types: * Types reported in Issue #6 (mime-types/ruby-mime-types#6): * CoffeeScript (text/x-coffeescript; .coffee; 8bit). * AIR (application/vnd.adobe.air-applicationinstaller-package+zip, .air; base64). * WOFF (application/font-woff; .woff; base64). * TrueType (application/x-font-truetype; .ttf; base64). * OpenType (application/x-font-opentype; .otf; base64). * WebM (audio/webm, video/webm; .webm). Issue #11 (mime-types/ruby-mime-types#11). * New extensions: * f4v/f4p (video/mp4, used by Adobe); f4a/fb4 (audio/mp4, used by Adobe). * Bug Fixes: * It was pointed out that Licence.txt was incorrectly named. Fixed by renaming to Licence.rdoc (from Issue/Pull Request #8, mime-types/ruby-mime-types#8). * It was pointed out that a plan to have the test output generated automatically never went through. Issue #10 (mime-types/ruby-mime-types#10)
== 1.19 / 2012-06-20 * New MIME Types: * XCF Gnome Images (image/x-xcf, image/x-compressed-xcf; .xcf). https://github.com/halostatue/mime-types/issue/17 * Types reported in mime-types/ruby-mime-types#12: * DV (video/x-dv; .dv) * IVF (video/x-ivf; .ivf) * Matroska (video/x-matroska; .mkv) * Motion JPEG (video/x-motion-jpeg; .mjpg) * RealMedia (official; application/vnd.rn-realmedia; .rm) * New extensions: * dcm (application/dicom); https://github.com/halostatue/mime-types/issue/16. * Types reported in mime-types/ruby-mime-types#12: * 3g2, 3gpp2 (video/3gpp2) * mpeg (video/mpeg) * mxf (application/mxf) * ts (video/MP2T) * ogg (video/ogg) * Fixed MIME Types: * Adobe AIR application installer packages was missing a hyphen. https://github.com/halostatue/mime-types/issue/13 * Types reported in mime-types/ruby-mime-types#12: * audio/x-pn-realaudio extension is .ra, not .rm. * Resolved mime-types/ruby-mime-types#8. Apparently some people run the tests on Linux. Imagine that.
== MIME::Types 1.18 / 2012-03-20 * New MIME Types: * Types reported in Issue #6 (mime-types/ruby-mime-types#6): * CoffeeScript (text/x-coffeescript; .coffee; 8bit). * AIR (application/vnd.adobe.air-applicationinstaller-package+zip, .air; base64). * WOFF (application/font-woff; .woff; base64). * TrueType (application/x-font-truetype; .ttf; base64). * OpenType (application/x-font-opentype; .otf; base64). * WebM (audio/webm, video/webm; .webm). Issue #11 (mime-types/ruby-mime-types#11). * New extensions: * f4v/f4p (video/mp4, used by Adobe); f4a/fb4 (audio/mp4, used by Adobe). * Bug Fixes: * It was pointed out that Licence.txt was incorrectly named. Fixed by renaming to Licence.rdoc (from Issue/Pull Request #8, mime-types/ruby-mime-types#8). * It was pointed out that a plan to have the test output generated automatically never went through. Issue #10 (mime-types/ruby-mime-types#10)
== 1.19 / 2012-06-20 * New MIME Types: * XCF Gnome Images (image/x-xcf, image/x-compressed-xcf; .xcf). https://github.com/halostatue/mime-types/issue/17 * Types reported in mime-types/ruby-mime-types#12: * DV (video/x-dv; .dv) * IVF (video/x-ivf; .ivf) * Matroska (video/x-matroska; .mkv) * Motion JPEG (video/x-motion-jpeg; .mjpg) * RealMedia (official; application/vnd.rn-realmedia; .rm) * New extensions: * dcm (application/dicom); https://github.com/halostatue/mime-types/issue/16. * Types reported in mime-types/ruby-mime-types#12: * 3g2, 3gpp2 (video/3gpp2) * mpeg (video/mpeg) * mxf (application/mxf) * ts (video/MP2T) * ogg (video/ogg) * Fixed MIME Types: * Adobe AIR application installer packages was missing a hyphen. https://github.com/halostatue/mime-types/issue/13 * Types reported in mime-types/ruby-mime-types#12: * audio/x-pn-realaudio extension is .ra, not .rm. * Resolved mime-types/ruby-mime-types#8. Apparently some people run the tests on Linux. Imagine that.
When I try to run the tests with ruby 1.8.7 I get the following failure:
The text was updated successfully, but these errors were encountered: