mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-11-22 03:00:25 +00:00
commit
e46ff55e0f
2 changed files with 11 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
|||
Version History
|
||||
===============
|
||||
|
||||
`Next Release`_
|
||||
---------------
|
||||
`2.1.0`_ (16 Mar 2016)
|
||||
----------------------
|
||||
- Set the _`Vary` header if we are setting the content type.
|
||||
|
||||
`2.0.1`_ (29 Feb 2016)
|
||||
|
@ -42,7 +42,8 @@ Version History
|
|||
---------------------
|
||||
- Initial Release
|
||||
|
||||
.. _Next Release: https://github.com/sprockets/sprockets.http/compare/2.0.1...HEAD
|
||||
.. _Next Release: https://github.com/sprockets/sprockets.http/compare/2.1.0...HEAD
|
||||
.. _2.1.0: https://github.com/sprockets/sprockets.http/compare/2.0.1...2.1.0
|
||||
.. _2.0.1: https://github.com/sprockets/sprockets.http/compare/2.0.0...2.0.1
|
||||
.. _2.0.0: https://github.com/sprockets/sprockets.http/compare/1.0.4...2.0.0
|
||||
.. _1.0.4: https://github.com/sprockets/sprockets.http/compare/1.0.3...1.0.4
|
||||
|
|
|
@ -14,14 +14,18 @@ except ImportError as error: # pragma no cover
|
|||
def _error_closure(*args, **kwargs):
|
||||
raise error
|
||||
|
||||
ContentMixin = _error_closure
|
||||
ContentSettings = _error_closure
|
||||
class ErrorClosureClass(object):
|
||||
def __init__(self, *args, **kwargs):
|
||||
raise error
|
||||
|
||||
ContentMixin = ErrorClosureClass
|
||||
ContentSettings = ErrorClosureClass
|
||||
add_binary_content_type = _error_closure
|
||||
add_text_content_type = _error_closure
|
||||
set_default_content_type = _error_closure
|
||||
|
||||
|
||||
version_info = (2, 0, 1)
|
||||
version_info = (2, 1, 0)
|
||||
__version__ = '.'.join(str(v) for v in version_info)
|
||||
__all__ = ['ContentMixin', 'ContentSettings', 'add_binary_content_type',
|
||||
'add_text_content_type', 'set_default_content_type',
|
||||
|
|
Loading…
Reference in a new issue