aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md10
-rw-r--r--README.md12
-rw-r--r--README.rakudoc50
3 files changed, 60 insertions, 12 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dd11733..ced20fd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
# Changelog
+
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
@@ -21,15 +22,24 @@ Versioning](http://semver.org/spec/v2.0.0.html).
is no longer modified itself, which could cause some awkward bugs in other
programs.
+- The README has been rewritten in Pod6.
+
## [1.0.0] - 2018-03-28
+
### Added
+
- `:api` key in `META6.json`
+
- New `Hash::Merge` that exposes subs instead of augmenting `Hash`
### Changed
+
- Old `Hash::Merge` functionality moved to `Hash::Merge::Augment`
## [0.2.0] - 2018-03-14
+
### Added
+
- `LICENSE` file for Artistic License 2.0 ([GitHub#2](https://github.com/scriptkitties/p6-Hash-Merge/issues/2))
+
- `no precompilation` pragma ([GitHub#1](https://github.com/scriptkitties/p6-Hash-Merge/issues/1))
diff --git a/README.md b/README.md
deleted file mode 100644
index a83e503..0000000
--- a/README.md
+++ /dev/null
@@ -1,12 +0,0 @@
-[![Build Status](https://travis-ci.org/scriptkitties/p6-Hash-Merge.svg?branch=master)](https://travis-ci.org/scriptkitties/p6-Hash-Merge)
-
-### method merge
-
-```perl6
-method merge(
- %b,
- Bool:D :$no-append-array = Bool::False
-) returns Mu
-```
-
-Merges a second hash into the hash the method is called on. Hash given as the argument is not modified. Traverses the full tree, replacing items in the original hash with the hash given in the argument. Does not replace positional elements by default, and instead appends the items from the supplied hash's array to the original hash's array. The object type of positionals is not retained and instead becomes an Array type. Use :no-append-array to replace arrays and positionals instead, which will also retain the original type and not convert to an Array
diff --git a/README.rakudoc b/README.rakudoc
new file mode 100644
index 0000000..9758b69
--- /dev/null
+++ b/README.rakudoc
@@ -0,0 +1,50 @@
+=begin pod
+
+=NAME Log
+=VERSION 1.0.0
+=AUTHOR Patrick Spek <p.spek+raku@tyil.nl>
+
+=head1 Description
+
+A module for the Raku programming language to easily deep-merge two hashes.
+
+=head2 Usage
+
+ my %alpha =
+ a => 'b',
+ c => {
+ d => 'e',
+ f => 'g',
+ },
+ ;
+
+ my %beta =
+ z => 'y',
+ c => {
+ x => 'w',
+ },
+ ;
+
+ my %merged = merge-hash(%alpha, %beta);
+
+=head2 Documentation
+
+There's currently no extensive documentation available.
+
+=head2 Contributing
+
+The module's source code is available at the following locations:
+
+=item L<https://gitlab.com/tyil/raku-hash-merge>
+=item L<https://github.com/scriptkitties/p6-Hash-Merge>
+
+If you have a change you would like to include, please send a patch to
+L<mailto:~tyil/raku-devel@lists.sr.ht>.
+
+=head2 License
+
+This module is distributed under the terms of the Artistic License 2.0. For
+more information, consult the LICENSE file in the module's source code
+repository.
+
+=end pod