Skip to content

Commit

Permalink
Release 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rdipardo committed Oct 1, 2021
1 parent 4a5865e commit 6431eee
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 11 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)**
Expand Down
33 changes: 25 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 |
+------------------------------------------------+---------------------------------------------+
|``<Plug>(cpywrite)`` | Does the same as calling ``:CPYwrite`` with |
| | no argument |
+------------------------------------------------+---------------------------------------------+
Expand All @@ -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. |
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugin/cpywrite.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion rplugin/pythonx/cpywrite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0-pre
0.6.0

0 comments on commit 6431eee

Please sign in to comment.