Commit 693b9fe5 by minad

0.1.7<

parent ddcbcf3f
...@@ -6,10 +6,11 @@ Usage ...@@ -6,10 +6,11 @@ Usage
require 'mimemagic' require 'mimemagic'
MimeMagic.by_extension('html').text? MimeMagic.by_extension('html').text?
MimeMagic.by_extension('.html').child_of? 'text/plain' MimeMagic.by_extension('.html').child_of? 'text/plain'
MimeMagic.by_path('filename.txt')
MimeMagic.by_magic(File.open('test.html')) MimeMagic.by_magic(File.open('test.html'))
etc... etc...
Authors Authors
======= =======
Daniel Mendler Daniel Mendler
\ No newline at end of file
...@@ -3,7 +3,7 @@ require 'stringio' ...@@ -3,7 +3,7 @@ require 'stringio'
# Mime type detection # Mime type detection
class MimeMagic class MimeMagic
VERSION = '0.1.6' VERSION = '0.1.7'
attr_reader :type, :mediatype, :subtype attr_reader :type, :mediatype, :subtype
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{mimemagic} s.name = %q{mimemagic}
s.version = "0.1.6" s.version = "0.1.7"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Daniel Mendler"] s.authors = ["Daniel Mendler"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment