From 6431eeea8d27e2ab940278342ee06dbc443d8740 Mon Sep 17 00:00:00 2001 From: Robert Di Pardo Date: Fri, 1 Oct 2021 15:41:07 -0400 Subject: [PATCH] Release 0.6.0 --- CHANGELOG.rst | 15 +++++++++++++ README.rst | 33 +++++++++++++++++++++------- plugin/cpywrite.vim | 2 +- rplugin/pythonx/cpywrite/__init__.py | 2 +- version.txt | 2 +- 5 files changed, 43 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index db82f5e..5ecb677 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,21 @@ CHANGELOG :depth: 1 :backlinks: top +0.6.0 +====== +**(2021-10-01)** + +Fixed +----- +- prevent authorship regex from matching publication dates in the verbatim text + of the Apache 2.0, GD and X11 licenses + +Added +----- +- new ``g:cpywrite#no_anonymous`` option to always state the copyright holder + above Public Domain licenses +- support for DOS Batch files + 0.5.0 ====== **(2021-07-03)** diff --git a/README.rst b/README.rst index ef9d5a9..8e0743b 100644 --- a/README.rst +++ b/README.rst @@ -4,15 +4,10 @@ vim-cpywrite |gh-actions| |current version| -:WARNING: **This branch is for development purposes.** - **End users are advised to checkout a** `release`_ **package** - -.. _release: https://github.com/rdipardo/vim-cpywrite/releases - Generate copyright headers for any open source license -.. figure:: https://raw.githubusercontent.com/rdipardo/vim-cpywrite/media/pre/nvim_043_ver_031.gif - :alt: nvim-043-linux-demo +.. figure:: https://raw.githubusercontent.com/rdipardo/vim-cpywrite/media/rel/vim_8.2.3452.gif + :alt: vim-win-x64-demo :align: center :width: 900 @@ -78,9 +73,15 @@ Commands |``:CPYwriteToggleMode`` | Switches ``g:cpywrite#verbatim_mode`` on or | | | off | +------------------------------------------------+---------------------------------------------+ +|``:CPYwriteToggleStyle`` | Switches ``g:cpywrite#machine_readable`` on | +| | or off | ++------------------------------------------------+---------------------------------------------+ |``:CPYwriteToggleFilename`` | Switches ``g:cpywrite#hide_filename`` on or | | | off | +------------------------------------------------+---------------------------------------------+ +|``:CPYwriteAllowAnonymous`` | Switches ``g:cpywrite#no_anonymous`` on or | +| | off | ++------------------------------------------------+---------------------------------------------+ |``(cpywrite)`` | Does the same as calling ``:CPYwrite`` with | | | no argument | +------------------------------------------------+---------------------------------------------+ @@ -105,6 +106,22 @@ Options | | MIT, BSD 1- 2- 3-Clause, etc.). | | | Default: ``0`` | +-------------------------------+----------------------------------------------+ +|``g:cpywrite#no_anonymous`` | When set to a non-zero value, copyright | +| | information is never omitted, even if the | +| | license implies a Public Domain grant. | +| | Default: ``0`` | +| +----------------------------------------------+ +| | Has no effect when | +| | ``g:cpywrite#machine_readable`` is on | ++-------------------------------+----------------------------------------------+ +|``g:cpywrite#machine_readable``| When set to a non-zero value, the license | +| | and copyright statement are formatted as | +| | tags. | +| | Default: ``0`` | +| +----------------------------------------------+ +| | Overrides ``g:cpywrite#verbatim_mode`` and | +| | ``g:cpywrite#no_anonymous`` | ++-------------------------------+----------------------------------------------+ |``g:cpywrite#hide_filename`` | When set to a non-zero value, hides the name | | | of the current buffer from the license | | | header in all modes. | @@ -238,7 +255,7 @@ Distributed under the terms of the MIT license. .. |current version| image:: https://img.shields.io/github/v/release/rdipardo/vim-cpywrite?logo=vim :alt: Vim Scripts version -.. _supported programming languages: https://github.com/rdipardo/vim-cpywrite/blob/577eacfac36591252d15d0cc7cd3b2f0f41af324/rplugin/pythonx/cpywrite/generator.py#L292 +.. _supported programming languages: https://github.com/rdipardo/vim-cpywrite/blob/3db79fd8b4d31c497442ac85bef21f9aac3e27f9/rplugin/pythonx/cpywrite/generator.py#L306 .. _vim-pathogen: https://github.com/tpope/vim-pathogen#native-vim-package-management .. _native package directory: https://github.com/vim/vim/blob/03c3bd9fd094c1aede2e8fe3ad8fd25b9f033053/runtime/doc/repeat.txt#L515 .. _DIY plugin management: https://shapeshed.com/vim-packages diff --git a/plugin/cpywrite.vim b/plugin/cpywrite.vim index de0daf9..6ff9dbe 100644 --- a/plugin/cpywrite.vim +++ b/plugin/cpywrite.vim @@ -9,7 +9,7 @@ if get(g:, 'loaded_cpywrite') | finish | endif let g:loaded_cpywrite = 1 -let g:cpywrite#version = '0.6.0-pre' +let g:cpywrite#version = '0.6.0' if empty(get(g:, 'cpywrite#default_license', '')) let g:cpywrite#default_license = 'Apache-2.0' diff --git a/rplugin/pythonx/cpywrite/__init__.py b/rplugin/pythonx/cpywrite/__init__.py index 6e7988c..24d23c5 100644 --- a/rplugin/pythonx/cpywrite/__init__.py +++ b/rplugin/pythonx/cpywrite/__init__.py @@ -28,7 +28,7 @@ ``````` """ -__version__ = '0.6.0-pre' +__version__ = '0.6.0' __authors__ = ['Robert Di Pardo'] __url__ = 'https://github.com/rdipardo/vim-cpywrite' __license__ = 'MIT' diff --git a/version.txt b/version.txt index 2df3971..a918a2a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.6.0-pre +0.6.0