Skip to content

Commit

Permalink
Version 1.2.15
Browse files Browse the repository at this point in the history
  • Loading branch information
ivknv committed Dec 31, 2021
1 parent 43dc042 commit 4ca3ce7
Show file tree
Hide file tree
Showing 14 changed files with 1,019 additions and 910 deletions.
15 changes: 11 additions & 4 deletions README.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ YaDisk
:alt: AUR
:target: https://aur.archlinux.org/packages/python-yadisk

.. image:: https://img.shields.io/badge/Donate-PayPal-green.svg
:alt: Donate
:target: https://paypal.me/encryptandsync

YaDisk is a Yandex.Disk REST API client library.

.. _Read the Docs (EN): http://yadisk.readthedocs.io
Expand Down Expand Up @@ -80,6 +76,17 @@ Changelog
.. _issue #4: https://github.com/ivknv/yadisk/issues/4
.. _issue #7: https://github.com/ivknv/yadisk/issues/7

* **Release 1.2.15 (2021-12-31)**

* Fixed an issue where :code:`http://` links were not recognized as operation links
(they were assumed to always be :code:`https://`, since all the other
requests are always HTTPS).
Occasionally, Yandex.Disk can for some reason return an :code:`http://` link
to an asynchronous operation instead of :code:`https://`.
Both links are now recognized correctly and an :code:`https://` version will
always be used by :code:`get_operation_status()`, regardless of which one
Yandex.Disk returned.

* **Release 1.2.14 (2019-03-26)**

* Fixed a :code:`TypeError` in :code:`get_public_*` functions when passing :code:`path` parameter
Expand Down
14 changes: 10 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ YaDisk
:alt: AUR
:target: https://aur.archlinux.org/packages/python-yadisk

.. image:: https://img.shields.io/badge/Donate-PayPal-green.svg
:alt: Donate
:target: https://paypal.me/encryptandsync

YaDisk - это библиотека-клиент REST API Яндекс.Диска.

.. _Read the Docs (EN): http://yadisk.readthedocs.io
Expand Down Expand Up @@ -80,6 +76,16 @@ YaDisk - это библиотека-клиент REST API Яндекс.Диск
.. _issue #4: https://github.com/ivknv/yadisk/issues/4
.. _issue #7: https://github.com/ivknv/yadisk/issues/7

* **Release 1.2.15 (2021-12-31)**

* Исправлено: не распознавались ссылки на асинхронные операции, если они
использовали :code:`http://` (вместо :code:`https://`).
Иногда Яндекс.Диск может вернуть :code:`http://` ссылку на асинхронную
операцию. Теперь обе версии ссылок распознаются правильно, при этом,
при получении информации об операции (через :code:`get_operation_status()`)
всегда используется :code:`https://` версия ссылки, даже если Яндекс.Диск
вернул :code:`http://`.

* **Release 1.2.14 (2019-03-26)**

* Исправлена ошибка :code:`TypeError` в функциях :code:`get_public_*` при
Expand Down
14 changes: 10 additions & 4 deletions README.ru.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ YaDisk
:alt: AUR
:target: https://aur.archlinux.org/packages/python-yadisk

.. image:: https://img.shields.io/badge/Donate-PayPal-green.svg
:alt: Donate
:target: https://paypal.me/encryptandsync

YaDisk - это библиотека-клиент REST API Яндекс.Диска.

.. _Read the Docs (EN): http://yadisk.readthedocs.io
Expand Down Expand Up @@ -80,6 +76,16 @@ YaDisk - это библиотека-клиент REST API Яндекс.Диск
.. _issue #4: https://github.com/ivknv/yadisk/issues/4
.. _issue #7: https://github.com/ivknv/yadisk/issues/7

* **Release 1.2.15 (2021-12-31)**

* Исправлено: не распознавались ссылки на асинхронные операции, если они
использовали :code:`http://` (вместо :code:`https://`).
Иногда Яндекс.Диск может вернуть :code:`http://` ссылку на асинхронную
операцию. Теперь обе версии ссылок распознаются правильно, при этом,
при получении информации об операции (через :code:`get_operation_status()`)
всегда используется :code:`https://` версия ссылки, даже если Яндекс.Диск
вернул :code:`http://`.

* **Release 1.2.14 (2019-03-26)**

* Исправлена ошибка :code:`TypeError` в функциях :code:`get_public_*` при
Expand Down
11 changes: 11 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ Changelog
.. _issue #4: https://github.com/ivknv/yadisk/issues/4
.. _issue #7: https://github.com/ivknv/yadisk/issues/7

* **Release 1.2.15 (2021-12-31)**

* Fixed an issue where `http://` links were not recognized as operation links
(they were assumed to always be `https://`, since all the other
requests are always HTTPS).
Occasionally, Yandex.Disk can for some reason return an `http://` link
to an asynchronous operation instead of `https://`.
Both links are now recognized correctly and an `https://` version will
always be used by `get_operation_status()`, regardless of which one
Yandex.Disk returned.

* **Release 1.2.14 (2019-03-26)**

* Fixed a `TypeError` in `get_public_*` functions when passing `path` parameter
Expand Down
48 changes: 3 additions & 45 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,48 +21,6 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

from docutils import nodes
from sphinx.util.docfields import TypedField
from sphinx import addnodes

def patched_make_field(self, types, domain, items, env=None):
# type: (List, unicode, Tuple) -> nodes.field
def handle_item(fieldarg, content):
par = nodes.paragraph()
par += addnodes.literal_strong('', fieldarg) # Patch: this line added
#par.extend(self.make_xrefs(self.rolename, domain, fieldarg,
# addnodes.literal_strong))
if fieldarg in types:
par += nodes.Text(' (')
# NOTE: using .pop() here to prevent a single type node to be
# inserted twice into the doctree, which leads to
# inconsistencies later when references are resolved
fieldtype = types.pop(fieldarg)
if len(fieldtype) == 1 and isinstance(fieldtype[0], nodes.Text):
typename = u''.join(n.astext() for n in fieldtype)
par.extend(self.make_xrefs(self.typerolename, domain, typename,
addnodes.literal_emphasis, env=env))
else:
par += fieldtype
par += nodes.Text(')')
par += nodes.Text(' -- ')
par += content
return par

fieldname = nodes.field_name('', self.label)
if len(items) == 1 and self.can_collapse:
fieldarg, content = items[0]
bodynode = handle_item(fieldarg, content)
else:
bodynode = self.list_type()
for fieldarg, content in items:
bodynode += nodes.list_item('', handle_item(fieldarg, content))
fieldbody = nodes.field_body('', bodynode)
return nodes.field('', fieldname, fieldbody)

TypedField.make_field = patched_make_field


# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -94,17 +52,17 @@ def handle_item(fieldarg, content):

# General information about the project.
project = 'YaDisk'
copyright = '2019, Ivan Konovalov'
copyright = '2021, Ivan Konovalov'
author = 'Ivan Konovalov'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '1.2.14'
version = '1.2.15'
# The full version, including alpha/beta/rc tags.
release = '1.2.14'
release = '1.2.15'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 0 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ Welcome to YaDisk's documentation!
docs
changelog

Donations
*********

If you find this library helpful, please consider `donating <https://paypal.me/encryptandsync>`_.
Your donation will help the development of this library.

Indices and tables
==================

Expand Down
Binary file modified docs/locales/ru/LC_MESSAGES/changelog.mo
Binary file not shown.

0 comments on commit 4ca3ce7

Please sign in to comment.