{"push_id":989883805,"size":11,"distinct_size":11,"ref":"refs/heads/master","head":"c513ad226cd5255452d7df1ceb53c0a745ccee0b","before":"fc41f52ae4ae76d16173b2daaf349adae0b6ebd6","commits":[{"sha":"0cfd9959b42e41dc01dc38a91fb28bf13c67cd7d","author":{"email":"ad7ae24c038e6dc272acc84d198d385066728329@gmail.com","name":"Benct Philip Jonsson"},"message":"added attributes to Link and Image","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/0cfd9959b42e41dc01dc38a91fb28bf13c67cd7d"},{"sha":"92bed47c33ec9ac8070b83d4f4a656cc82da04c3","author":{"email":"1dcd5c846f3eb4984f0655fb5407be7c9e0c9079@gbv.de","name":"Jakob Voss"},"message":"Add test for compatibility with Pandoc 1.16 change\n\nPandoc 1.16 introduces attributes at Link and Image elements.\nPandoc::Elements will use this new format but still be able to read the old\nformat from JSON. Writing the old format requires setting a global\nconfiguration variable.","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/92bed47c33ec9ac8070b83d4f4a656cc82da04c3"},{"sha":"636b88fd778b49568f102ebaf759992c0d2b0a85","author":{"email":"ad7ae24c038e6dc272acc84d198d385066728329@gmail.com","name":"Benct Philip Jonsson"},"message":"updated Link/Image attrs support with backwards compatible JSON read/write\n\nNOTE: This branch fixes an oversight in https://github.com/bpj/Pandoc-Elements/commit/816453368ec36c5b810b5996cdeebd598432329d\nand makes that branch obsolete!\n\n*   Added config variable `$Pandoc::Elements::PANDOC_VERSION` which defaults to the environment variable `PANDOC_VERSION`; a string with a value like `'1.16'`.\n\n*   Pandoc::Document::Link and Pandoc::Document::Image inherit from a class Pandoc::Document::LinkageRole which implements a special `TO_JSON` method which makes a shallow clone of the object and then removes the attributes if `$Pandoc::Elements::PANDOC_VERSION` has a true value which is `lt '1.16'`.\n\n*   `$Pandoc::Elements::pandoc_json()` now constructs a class as before but invokes a new class method `ast_to_element` with the AST hashref as argument. Pandoc::Document::Element implements an `ast_to_element` method which simply blesses the AST hashref into the class, but Pandoc::Document::LinkageRole has a method which prepends an empty attributes arrayref if `@{$ast->{c}}` only has 2 items.  I'm thinking that having a default implementation of the method saves a subroutine call compared to having to call `can` on the class for every AST hashref.\n\n*   The `url` and `title` accessors for links and images are now implemented in Pandoc::Document::LinkageRole.","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/636b88fd778b49568f102ebaf759992c0d2b0a85"},{"sha":"46ad8e94ab5ab1975502a04b82973a60c5268c6a","author":{"email":"ad7ae24c038e6dc272acc84d198d385066728329@gmail.com","name":"Benct Philip Jonsson"},"message":"fix blessing metadata/MetaMap top level values on pre-1.16\n\nThis branch is derived from and is compatible with current master\nhttps://github.com/nichtich/Pandoc-Elements/commit/fc41f52ae4ae76d16173b2daaf349adae0b6ebd6\n\nhttps://github.com/bpj/Pandoc-Elements/commit/636b88fd778b49568f102ebaf759992c0d2b0a85\n\nThis commit fixes a bug I accidentally ran into when writing a\nroutine for mining metadata. Element hash values in the top-level\nmetadata hash or in a MetaMap wouldn't get blessed into their\nproper packages, because Pandoc::Walker::transform() doesn't run\nthe action(s) on the top level of the data passed as its first\nargument argument, but only on its children, and thus\nPandoc::Elements::pandoc_json() failed to bless the values of a\nnon-element hash, like the metadata hash itself or the values of\nthe content hash of MetaMap elements when transform called itself\nrecursively on the values of non-element hashes.\n\nThis commit modifies pandoc_json() so that it loops through the\ntop level metadata hash and any MetaMap objects and fixes this\nspecifically I'm thinking that maybe Pandoc::Walker::transform()\nshould look if its argument data is an element and run its action\non it in that case, but what should it then do with any return\nvalue, especially if the return value is an array?\n\nThe included test meta-blessing.t fails on current master but passes here.\n\nA branch is fortcoming which fixes the same bug derived from and compatible with\n\"updated Link/Image attrs support with backwards compatible JSON read/write\"\nhttps://github.com/bpj/Pandoc-Elements/commit/636b88fd778b49568f102ebaf759992c0d2b0a85 as bpj/Pandoc-Elements@420038c96c74bd1ee67404425eff07dbb7d212e2","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/46ad8e94ab5ab1975502a04b82973a60c5268c6a"},{"sha":"d9a62269c2bf734600ca0f2f81c20e8e6b9c0c32","author":{"email":"ad7ae24c038e6dc272acc84d198d385066728329@gmail.com","name":"Benct Philip Jonsson"},"message":"fix blessing metadata/MetaMap top level values\n\nThis branch is derived from and is compatible with\n\"updated Link/Image attrs support with backwards compatible JSON read/write\"\nhttps://github.com/bpj/Pandoc-Elements/commit/636b88fd778b49568f102ebaf759992c0d2b0a85\n\nThis commit fixes a bug I accidentally ran into when writing a\nroutine for mining metadata. Element hash values in the top-level\nmetadata hash or in a MetaMap wouldn't get blessed into their\nproper packages, because Pandoc::Walker::transform() doesn't run\nthe action(s) on the top level of the data passed as its first\nargument argument, but only on its children, and thus\nPandoc::Elements::pandoc_json() failed to bless the values of a\nnon-element hash, like the metadata hash itself or the values of\nthe content hash of MetaMap elements when transform called itself\nrecursively on the values of non-element hashes.\n\nThis commit modifies pandoc_json() so that it loops through the\ntop level metadata hash and any MetaMap objects and fixes this\nspecifically I'm thinking that maybe Pandoc::Walker::transform()\nshould look if its argument data is an element and run its action\non it in that case, but what should it then do with any return\nvalue, especially if the return value is an array?\n\nThe included test meta-blessing.t fails on current master\nhttps://github.com/nichtich/Pandoc-Elements/commit/fc41f52ae4ae76d16173b2daaf349adae0b6ebd6\nbut passes here.","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/d9a62269c2bf734600ca0f2f81c20e8e6b9c0c32"},{"sha":"06ca8116e9481974f522cf880e6d74adfdfd9d33","author":{"email":"6c68cabc7124e43c9b4d50f86510600f69e74c99@nichtich.de","name":"Jakob Voß"},"message":"Merge pull request #19 from bpj/bpj-bless-all-metadata-elements\n\nfix blessing metadata/MetaMap top level values on pre-1.16","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/06ca8116e9481974f522cf880e6d74adfdfd9d33"},{"sha":"f812a1b97b12bfad6a05d05b8b278bd231998d58","author":{"email":"1dcd5c846f3eb4984f0655fb5407be7c9e0c9079@gbv.de","name":"Jakob Voss"},"message":"Add bpj as contributor","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/f812a1b97b12bfad6a05d05b8b278bd231998d58"},{"sha":"a46b0779791b2e3e7c5bd47e66650f5bafc1aafa","author":{"email":"1dcd5c846f3eb4984f0655fb5407be7c9e0c9079@gbv.de","name":"Jakob Voss"},"message":"Merge remote-tracking branch 'bpj/bpj-updated-compat-read-write-linkage'","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/a46b0779791b2e3e7c5bd47e66650f5bafc1aafa"},{"sha":"022580bd77c6223a67b0938ae842dd84b77f845a","author":{"email":"1dcd5c846f3eb4984f0655fb5407be7c9e0c9079@gbv.de","name":"Jakob Voss"},"message":"Merge remote-tracking branch 'bpj/bpj-updated-compat-linkage-meta-blessing'","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/022580bd77c6223a67b0938ae842dd84b77f845a"},{"sha":"9e1d1eef69a4b0926ed45d55904c80008ade8a97","author":{"email":"1dcd5c846f3eb4984f0655fb5407be7c9e0c9079@gbv.de","name":"Jakob Voss"},"message":"Document PANDOC_VERSION","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/9e1d1eef69a4b0926ed45d55904c80008ade8a97"},{"sha":"c513ad226cd5255452d7df1ceb53c0a745ccee0b","author":{"email":"1dcd5c846f3eb4984f0655fb5407be7c9e0c9079@gbv.de","name":"Jakob Voss"},"message":"0.16","distinct":true,"url":"https://api.github.com/repos/bpj/Pandoc-Elements/commits/c513ad226cd5255452d7df1ceb53c0a745ccee0b"}]}