From f5370c35d2f7b00fb1594f5ac558c34e6cf27e68 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Tue, 27 Sep 2016 11:54:27 +0200 Subject: [PATCH] Release 2.7 --- CHANGELOG.md | 35 ++++++++++++++++++++++++++++++++ checksum/oga-2.7-java.gem.sha512 | 1 + checksum/oga-2.7.gem.sha512 | 1 + lib/oga/version.rb | 2 +- 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 checksum/oga-2.7-java.gem.sha512 create mode 100644 checksum/oga-2.7.gem.sha512 diff --git a/CHANGELOG.md b/CHANGELOG.md index dcdc67d..70e3b2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,41 @@ This document contains details of the various releases and their release dates. Dates are in the format `yyyy-mm-dd`. +## 2.7 - 2016-09-27 + +### Closing Elements When Generating XML + +When generating XML Oga now properly closes elements with siblings but without +children. See commit e0e0687dc29427c854c9fa6d3c19cee1c04f92c7 for more +information. + +### Newlines After Doctypes + +When generating XML a newline would be inserted after a doctype. If another +newline would follow in a text node this would lead to multiple newlines being +present. Oga now ensures there is only 1 newline following a doctype. See commit +e0e0687dc29427c854c9fa6d3c19cee1c04f92c7 for more information. + +### Processing Instructions With Namespace Prefixes + +The XML lexer now supports processing instructions containing namespace prefixes +such as ``. See commit 01fa1513f4bd6f194bf6d1ca17e510003fa23312 for +more information. + +### XML Declarations Are Now Processing Instructions + +The class `Oga::XML::XmlDeclaration` now extends +`Oga::XML::ProcessingInstruction`. This allows documents to contain XML +declarations in nested elements, instead of only allowing this at the root of +the document. See commit 116b9b0ceb6feab4daa0bb417302590fba948bef for more +information. + +### Aliases For Getting & Setting Attributes + +The methods `Oga::XML::Element#get` and `Oga::XML::Element#set` are now aliased +as `#[]` and `#[]=` respectively. See d40baf0c724a3874f43100fbefa775cfb8dcacda +for more information and thanks to Scott Wheeler for contributing the patch. + ## 2.6 - 2016-09-10 This release fixes a bug in the XML generation code that would cause it to get diff --git a/checksum/oga-2.7-java.gem.sha512 b/checksum/oga-2.7-java.gem.sha512 new file mode 100644 index 0000000..3d1fa4f --- /dev/null +++ b/checksum/oga-2.7-java.gem.sha512 @@ -0,0 +1 @@ +9bfe28b9b7b971fd80f405ad12c7c58cc94152b85ed29d4dc1e50525d220e1bc0a42fa76083fc0637a8c799f31c2c3599664df68af3dd2ed2c8ed3ae20b5b6a2 \ No newline at end of file diff --git a/checksum/oga-2.7.gem.sha512 b/checksum/oga-2.7.gem.sha512 new file mode 100644 index 0000000..1abff12 --- /dev/null +++ b/checksum/oga-2.7.gem.sha512 @@ -0,0 +1 @@ +1a00cd24864ce2777a02f2c1964ca636654d860e61a0be7437bdcc8bf1afe393138ced1913117eb58ac10bd25f306fda16e0ae2f737486414522102642ac03e5 \ No newline at end of file diff --git a/lib/oga/version.rb b/lib/oga/version.rb index 79138a6..547a4a6 100644 --- a/lib/oga/version.rb +++ b/lib/oga/version.rb @@ -1,3 +1,3 @@ module Oga - VERSION = '2.6' + VERSION = '2.7' end # Oga