Upgrading marcel 0.3 to 1
Breaking0.3.3 → 1.2.1Breaking1New10Changed14Fixed11Other10
BreakingUpgrade verdict
1 breaking change.
In plain terms
- The library no longer depends on mimemagic, which used GPL-licensed mime type data. It now uses its own mime type data based on the Apache Tika project, under the Apache License.
Must act 1 item needs code or config changes
Ruby requirement changed in 1.0.3: >= 2.2 → >= 2.3.
Drops mimemagic.
What you must change
Breaking1
Removes the mimemagic dependency and uses mime type data adapted from Apache Tika instead.
mimemagicAPI changes
Generated by DepDelta from published Ruby source. Not mixed with prose notes.
- added:
const Marcel.EXTENSIONS - added:
const Marcel.MAGIC - added:
const Marcel.TYPE_EXTS - added:
const Marcel.TYPE_PARENTS
- added:
class Magic - added:
constructor Magic(_) - added:
method Magic.audio?() - added:
method Magic.child_of?(_) - added:
method Magic.comment() - added:
method Magic.eql?(_) - added:
method Magic.extensions() - added:
method Magic.hash() - added:
method Magic.image?() - added:
method Magic.text?() - added:
method Magic.to_s() - added:
method Magic.video?() - added:
property Magic.mediatype: reader - added:
property Magic.subtype: reader - added:
property Magic.type: reader - added:
static method Magic.add(_, _) - added:
static method Magic.all_by_magic(_) - added:
static method Magic.by_extension(_) - added:
static method Magic.by_magic(_) - added:
static method Magic.by_path(_) - added:
static method Magic.child?(_, _) - added:
static method Magic.remove(_)