mirror of
https://github.com/httpie/cli.git
synced 2025-08-10 08:08:41 +02:00
Compare commits
3 Commits
fix-initia
...
0.9.2
Author | SHA1 | Date | |
---|---|---|---|
80a2c8266c | |||
bc742b62cf | |||
43ce0b6fa1 |
@ -9,7 +9,12 @@ This project adheres to `Semantic Versioning <http://semver.org/>`_.
|
||||
`1.0.0-dev`_ (Unreleased)
|
||||
-------------------------
|
||||
|
||||
* Changed the default color ``--style`` from ``solarized`` to ``monokai``
|
||||
|
||||
|
||||
`0.9.2`_ (2015-02-24)
|
||||
---------------------
|
||||
|
||||
* Fixed compatibility with Requests 2.5.1
|
||||
* Changed the default JSON ``Content-Type`` to ``application/json`` as UTF-8
|
||||
is the default JSON encoding
|
||||
|
||||
@ -243,4 +248,5 @@ This project adheres to `Semantic Versioning <http://semver.org/>`_.
|
||||
.. _0.8.0: https://github.com/jakubroztocil/httpie/compare/0.7.1...0.8.0
|
||||
.. _0.9.0: https://github.com/jakubroztocil/httpie/compare/0.8.0...0.9.0
|
||||
.. _0.9.1: https://github.com/jakubroztocil/httpie/compare/0.9.0...0.9.1
|
||||
.. _1.0.0-dev: https://github.com/jakubroztocil/httpie/compare/0.9.1...master
|
||||
.. _0.9.2: https://github.com/jakubroztocil/httpie/compare/0.9.1...0.9.2
|
||||
.. _1.0.0-dev: https://github.com/jakubroztocil/httpie/compare/0.9.2...master
|
||||
|
@ -1298,21 +1298,21 @@ Please see `claudiatd/httpie-artwork`_
|
||||
Contribute
|
||||
==========
|
||||
|
||||
Please see `CONTRIBUTING <CONTRIBUTING.rst>`_.
|
||||
Please see `CONTRIBUTING <https://github.com/jakubroztocil/httpie/blob/master/CONTRIBUTING.rst>`_.
|
||||
|
||||
|
||||
==========
|
||||
Change Log
|
||||
==========
|
||||
|
||||
Please see `CHANGELOG <CHANGELOG.rst>`_.
|
||||
Please see `CHANGELOG <https://github.com/jakubroztocil/httpie/blob/master/CHANGELOG.rst>`_.
|
||||
|
||||
|
||||
=======
|
||||
Licence
|
||||
=======
|
||||
|
||||
Please see `LICENSE <LICENSE>`_.
|
||||
Please see `LICENSE <https://github.com/jakubroztocil/httpie/blob/master/LICENSE>`_.
|
||||
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@ HTTPie - a CLI, cURL-like tool for humans.
|
||||
|
||||
"""
|
||||
__author__ = 'Jakub Roztocil'
|
||||
__version__ = '1.0.0-dev'
|
||||
__version__ = '0.9.2'
|
||||
__licence__ = 'BSD'
|
||||
|
||||
|
||||
|
@ -2,12 +2,26 @@
|
||||
Python 2.6, 2.7, and 3.x compatibility.
|
||||
|
||||
"""
|
||||
# Borrow these from requests:
|
||||
# noinspection PyUnresolvedReferences
|
||||
from requests.compat import (
|
||||
is_windows, bytes, str,
|
||||
is_py3, is_py26, is_pypy, is_py27
|
||||
)
|
||||
import sys
|
||||
|
||||
|
||||
# Taken from `requests.compat`
|
||||
_ver = sys.version_info
|
||||
is_py2 = (_ver[0] == 2)
|
||||
is_py26 = (is_py2 and _ver[1] == 6)
|
||||
is_py27 = (is_py2 and _ver[1] == 7)
|
||||
is_py3 = (_ver[0] == 3)
|
||||
is_pypy = ('pypy' in _ver)
|
||||
is_windows = 'win32' in str(sys.platform).lower()
|
||||
|
||||
|
||||
if is_py2:
|
||||
bytes = str
|
||||
str = unicode
|
||||
elif is_py3:
|
||||
str = str
|
||||
bytes = bytes
|
||||
|
||||
|
||||
try: # pragma: no cover
|
||||
# noinspection PyUnresolvedReferences,PyCompatibility
|
||||
|
@ -1,7 +1,6 @@
|
||||
import sys
|
||||
|
||||
from requests.compat import is_windows
|
||||
|
||||
from httpie.compat import is_windows
|
||||
from httpie.config import DEFAULT_CONFIG_DIR, Config
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@ from httpie.plugins import FormatterPlugin
|
||||
# great and fruity seems to give the best result there.
|
||||
AVAILABLE_STYLES = set(pygments.styles.STYLE_MAP.keys())
|
||||
AVAILABLE_STYLES.add('solarized')
|
||||
DEFAULT_STYLE = 'monokai'
|
||||
DEFAULT_STYLE = 'solarized'
|
||||
|
||||
|
||||
class ColorFormatter(FormatterPlugin):
|
||||
|
Reference in New Issue
Block a user