Skip to content

Commit

Permalink
[Bug fix] Escape emails in authorship regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
rdipardo committed Oct 27, 2020
1 parent 78c89d3 commit 73bf9d7
Show file tree
Hide file tree
Showing 9 changed files with 394 additions and 234 deletions.
Binary file removed .github/img/nvim_043_ver_030.gif
Binary file not shown.
Binary file added .github/img/nvim_043_ver_031.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 0 additions & 73 deletions CHANGELOG.md

This file was deleted.

142 changes: 142 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
#########
CHANGELOG
#########

.. contents:: **Releases**
:depth: 1
:backlinks: top

0.3.1
======
**(2020-10-26)**

Changed
-------
- use reStructuredText in project documentation

Fixed
-----
- call ``re.escape()`` on emails when searching authorship templates in case
they contain regex symbols, e.g. ``[email protected]``


0.3.0
======
**(2020-10-12)**

Changed
-------
- options that were prefixed with ``cpywrite_`` now start with ``cpywrite#``;
this will allow future options to be loaded from the ``autoload`` directory

- licenses are now identified by full name when there's no standard header

.. _configure vim to wrap lines:

**Note.** To keep longer names like (e.g.) the ``LGPLvX.X`` from running off
the screen, enable line wrapping in your ``vimrc`` or ``init.vim``:

.. code-block:: vim
set lbr
set tw=500 "break after 500 characters
set wrap "wrap lines
Added
-----
- HTTP responses are now `cached`_ in the user's temp directory
- the option to hide the current buffer's name in license headers by setting
``g:cpywrite#hide_filename`` to a non-zero value
- a ``:CPYwriteToggleFilename`` command for setting the above option
- detect ``.vimrc``, ``.gvim``, ``.ideavim`` and ``.exrc`` as Vim files
- support for these file types:

+ D
+ Edn (.edn)
+ Fennel
+ Markdown
+ ReactJS (.jsx) and ES Module (.mjs)
+ Scala
+ Swift


0.2.1
=====
**(2020-08-16)**

Fixed
-----
- improve load time of ``autoload/cpywrite.vim``
- refactor regex that was inserting authorship at random places in full
license text

Added
-----
- recognize ``.vimrc`` as VimL
- prevent copyright notice for appearing on public domain (i.e. copyright-free)
licenses, in both modes
- leave one blank line after header
- support for these file types:

+ Ada
+ Assembler
+ Coffescript
+ Elixir
+ Elm
+ Erlang
+ Kotlin
+ Lua
+ Objective-C
+ Pascal


0.2.0
=====
**(2020-08-13)**

Fixed
-----
- extract feature tests and core functions to ``autoload`` directory to improve
startup time (`#2`_)

Added
-----
- document suggestion to use `set wildmenu`_ for faster completions when not
using neovim

.. _`set wildmenu`: README.rst#completions


0.1.1
=====
**(2020-07-25)**

Fixed
-----
- brief notices are now fully capitalized
- better-looking standard headers for the older GPL and GFDL licenses families

Added
-----
- convenience commands for getting/setting global options:

+ ``:CPYwriteDefaultLicense`` -- supports ``<tab>`` completion
+ ``:CPYwriteToggleMode`` -- switches ``g:cpywrite#verbatim_mode`` on/off

- relaxed file naming rules to accept full paths
- recognize *CMakeLists* files with the ``.txt`` extension
- apply line wrapping to keep standard headers within 80 chars (you should
still `configure vim to wrap lines`_ for best results)


0.1.0
=====
**(2020-06-18)**

- initial release


.. _`#2`: https://github.com/rdipardo/vim-cpywrite/pull/2
.. _cached: https://github.com/rdipardo/vim-cpywrite/blob/7661fb2a6d1cf81b949f2ec9854c9598c04fac4a/rplugin/pythonx/cpywrite/spdx/license.py#L55

.. vim:ft=rst:et:tw=78:
156 changes: 0 additions & 156 deletions README.md

This file was deleted.

Loading

0 comments on commit 73bf9d7

Please sign in to comment.