debian/0000755000000000000000000000000012221302734007162 5ustar debian/maven.rules0000644000000000000000000000061712221302256011347 0ustar com.fasterxml.jackson.core jackson-annotations jar s/2\..*/2.x/ * * com.fasterxml.jackson.core jackson-core jar s/2\..*/2.x/ * * com.fasterxml.jackson.core jackson-databind jar s/2\..*/2.x/ * * com.fasterxml.jackson.dataformat jackson-dataformat-yaml jar s/2\..*/2.x/ * * junit junit jar s/4\..*/4.x/ * * org.yaml snakeyaml bundle s/1\..*/1.x/ * * org.yaml snakeyaml s/jar/bundle/ s/1\..*/1.x/ * * debian/watch0000644000000000000000000000017012221302256010210 0ustar version=3 https://github.com/FasterXML/jackson-dataformat-yaml/releases .*/jackson-dataformat-yaml-(\d[\d\.]*)\.tar\.gz debian/maven.properties0000644000000000000000000000022712221302256012406 0ustar # Include here properties to pass to Maven during the build. # For example: # maven.test.skip=true maven.compiler.source=1.6 maven.compiler.target=1.6 debian/compat0000644000000000000000000000000212221302256010357 0ustar 9 debian/changelog0000644000000000000000000000025412221302256011034 0ustar jackson-dataformat-yaml (2.2.3-1) unstable; urgency=low * Initial release (Closes: #720506) -- Wolodja Wentland Fri, 27 Sep 2013 12:10:22 +0000 debian/README.source0000644000000000000000000000046312221302256011343 0ustar Information about jackson-dataformat-yaml ------------------------------ This package was debianized using the mh_make command from the maven-debian-helper package. The build system uses Maven but prevents it from downloading anything from the Internet, making the build compliant with the Debian policy. debian/source/0000755000000000000000000000000012221302256010461 5ustar debian/source/format0000644000000000000000000000001412221302256011667 0ustar 3.0 (quilt) debian/maven.ignoreRules0000644000000000000000000000007012221302256012504 0ustar com.google.code.maven-replacer-plugin replacer * * * * debian/copyright0000644000000000000000000000242312221302256011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Jackson-dataformat-YAML Source: https://github.com/FasterXML/jackson-dataformat-yaml Comment: FasterXML used a dual licensing approach (Apache-2.0 or LGPL) [0] for jackson 2 by making suitably licensed jar files available for download. [1] Users were then free to choose the license they wanted by downloading the respective jar. . The source code itself was, however, never explicitly licensed. After raising this issue on the jackson-dev mailing list [2] FasterXML decided to license future versions of jackson 2 under Apache-2.0 only [3]. A copy of the license can be found in src/main/resources/META-INF/LICENSE. . [0] http://wiki.fasterxml.com/JacksonLicensing [1] http://wiki.fasterxml.com/JacksonDownload [2] http://markmail.org/message/repexr3kb6gn4uam [3] http://markmail.org/message/bwxz2hle5fhrhm3q http://markmail.org/message/ckwelxnmoqlm5qr4 Files: * Copyright: 2013, FasterXML, LLC, Seattle, USA License: Apache-2.0 Files: debian/* Copyright: 2013, Wolodja Wentland License: Apache-2.0 License: Apache-2.0 On Debian systems, the full text of the Apache-2.0 license can be found in the file '/usr/share/common-licenses/Apache-2.0' debian/libjackson2-dataformat-yaml-doc.doc-base.api0000644000000000000000000000056512221302256017362 0ustar Document: libjackson2-dataformat-yaml Title: API Javadoc for Jackson-dataformat-YAML Author: Jackson-dataformat-YAML developers Abstract: This is the API Javadoc provided for the libjackson2-dataformat-yaml library. Section: Programming Format: HTML Index: /usr/share/doc/libjackson2-dataformat-yaml/api/index.html Files: /usr/share/doc/libjackson2-dataformat-yaml/api/* debian/rules0000755000000000000000000000063312221302256010243 0ustar #!/usr/bin/make -f # export DH_VERBOSE=1 VERSION_FILE=src/main/java/com/fasterxml/jackson/dataformat/yaml/PackageVersion.java %: dh $@ --buildsystem=maven --with javahelper override_dh_auto_configure: sh debian/replace-generate.sh $(VERSION_FILE) dh_auto_configure override_dh_auto_clean: rm -f $(VERSION_FILE) dh_auto_clean override_dh_installchangelogs: dh_installchangelogs release-notes/VERSION debian/libjackson2-dataformat-yaml-doc.install0000644000000000000000000000010012221302256016564 0ustar target/apidocs/* usr/share/doc/libjackson2-dataformat-yaml/api debian/control0000644000000000000000000000537012221302256010571 0ustar Source: jackson-dataformat-yaml Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Hilko Bengen , Wolodja Wentland Build-Depends: debhelper (>= 9), default-jdk, javahelper (>= 0.32), junit4, libjackson2-annotations-java, libjackson2-core-java, libjackson2-databind-java, libyaml-snake-java, maven-debian-helper (>= 1.6.5), xmlstarlet Build-Depends-Indep: default-jdk-doc, libjackson2-core-java-doc, libmaven-javadoc-plugin-java, libmaven-shade-plugin-java, libyaml-snake-java-doc Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-java/jackson-dataformat-yaml.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/jackson-dataformat-yaml.git Homepage: http://wiki.fasterxml.com/JacksonHome Package: libjackson2-dataformat-yaml Architecture: all Depends: ${maven:Depends}, ${misc:Depends} Recommends: ${maven:OptionalDepends} Suggests: libjackson2-dataformat-yaml-doc Description: fast and powerful JSON library for Java -- YAML dataformat The Jackson Data Processor is a multi-purpose Java library for processing JSON. Jackson aims to be the best possible combination of fast, correct, lightweight, and ergonomic for developers. It offers three alternative methods for processing JSON: . * Streaming API inspired by StAX * Tree Model * Data Binding converts JSON to and from POJOs . In addition to the core library, there are numerous extension that provide additional functionality such as additional data formats beyond JSON, additional data types or JVM languages. . This package contains an extension for reading and writing YAML-encoded data Package: libjackson2-dataformat-yaml-doc Architecture: all Section: doc Depends: ${maven:DocDepends}, ${misc:Depends} Recommends: ${maven:DocOptionalDepends} Suggests: libjackson2-dataformat-yaml Description: Documentation for jackson-dataformat-yaml The Jackson Data Processor is a multi-purpose Java library for processing JSON. Jackson aims to be the best possible combination of fast, correct, lightweight, and ergonomic for developers. It offers three alternative methods for processing JSON: . * Streaming API inspired by StAX * Tree Model * Data Binding converts JSON to and from POJOs . In addition to the core library, there are numerous extension that provide additional functionality such as additional data formats beyond JSON, additional data types or JVM languages. . This package contains the API documentation of libjackson2-dataformat-yaml. debian/maven.cleanIgnoreRules0000644000000000000000000000000112221302256013441 0ustar debian/libjackson2-dataformat-yaml.poms0000644000000000000000000000322112221302256015340 0ustar # List of POM files for the package # Format of this file is: # [option]* # where option can be: # --ignore: ignore this POM and its artifact if any # --ignore-pom: don't install the POM. To use on POM files that are created # temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms] # --no-parent: remove the tag from the POM # --package=: an alternative package to use when installing this POM # and its artifact # --has-package-version: to indicate that the original version of the POM is the same as the upstream part # of the version for the package. # --keep-elements=: a list of XML elements to keep in the POM # during a clean operation with mh_cleanpom or mh_installpom # --artifact=: path to the build artifact associated with this POM, # it will be installed when using the command mh_install. [mh_install] # --java-lib: install the jar into /usr/share/java to comply with Debian # packaging guidelines # --usj-name=: name to use when installing the library in /usr/share/java # --usj-version=: version to use when installing the library in /usr/share/java # --no-usj-versionless: don't install the versionless link in /usr/share/java # --dest-jar=: the destination for the real jar. # It will be installed with mh_install. [mh_install] # --classifier=: Optional, the classifier for the jar. Empty by default. # --site-xml=: Optional, the location for site.xml if it needs to be installed. # Empty by default. [mh_install] # pom.xml --no-parent --has-package-version --java-lib debian/patches/0000755000000000000000000000000012221302256010610 5ustar debian/patches/0001-SnakeYAML-1.11-compatibility.patch0000644000000000000000000001132112221302256017156 0ustar From: Wolodja Wentland Date: Thu, 26 Sep 2013 15:41:13 +0100 Subject: SnakeYAML 1.11 compatibility This patch allows compilation against SnakeYAML versions >= 1.11 which introduced backwards incompatible changes. * Use Version enum instead of Array of Integers (1428:3262575396ab) Furthermore version 1.11 fixes issue 146 [0] in SnakeYAML so that no explicit document start marker (i.e. "---") is written if tags are empty. This necessitated changes to the generation tests that codified the (buggy) behaviour. [0] https://code.google.com/p/snakeyaml/issues/detail?id=146 --- .../java/com/fasterxml/jackson/dataformat/yaml/YAMLFactory.java | 5 ++--- .../com/fasterxml/jackson/dataformat/yaml/YAMLGenerator.java | 2 +- .../fasterxml/jackson/dataformat/yaml/SimpleGenerationTest.java | 9 ++++----- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLFactory.java b/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLFactory.java index 73d2d25..1a4b621 100644 --- a/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLFactory.java +++ b/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLFactory.java @@ -56,7 +56,7 @@ public class YAMLFactory extends JsonFactory protected transient DumperOptions _outputOptions; - protected Integer[] _version; + protected DumperOptions.Version _version; /** * Default constructor used to create factory instances. @@ -76,8 +76,7 @@ public class YAMLFactory extends JsonFactory _yamlParserFeatures = DEFAULT_YAML_PARSER_FEATURE_FLAGS; _yamlGeneratorFeatures = DEFAULT_YAML_GENERATOR_FEATURE_FLAGS; _outputOptions = _defaultOptions(); - DumperOptions.Version version = _outputOptions.getVersion(); - _version = (version == null) ? null : version.getArray(); + _version = _outputOptions.getVersion(); } /** diff --git a/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLGenerator.java b/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLGenerator.java index 5687331..d9ea4ac 100644 --- a/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLGenerator.java +++ b/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLGenerator.java @@ -100,7 +100,7 @@ public class YAMLGenerator extends GeneratorBase public YAMLGenerator(IOContext ctxt, int jsonFeatures, int yamlFeatures, ObjectCodec codec, Writer out, - DumperOptions outputOptions, Integer[] version + DumperOptions outputOptions, DumperOptions.Version version ) throws IOException { super(jsonFeatures, codec); diff --git a/src/test/java/com/fasterxml/jackson/dataformat/yaml/SimpleGenerationTest.java b/src/test/java/com/fasterxml/jackson/dataformat/yaml/SimpleGenerationTest.java index f2aa032..6750d21 100644 --- a/src/test/java/com/fasterxml/jackson/dataformat/yaml/SimpleGenerationTest.java +++ b/src/test/java/com/fasterxml/jackson/dataformat/yaml/SimpleGenerationTest.java @@ -22,7 +22,7 @@ public class SimpleGenerationTest extends ModuleTestBase String yaml = w.toString(); // should probably parse... - assertEquals("---\n- 3\n- \"foobar\"\n", yaml); + assertEquals("- 3\n- \"foobar\"\n", yaml); } public void testStreamingObject() throws Exception @@ -37,7 +37,7 @@ public class SimpleGenerationTest extends ModuleTestBase gen.close(); String yaml = w.toString(); - assertEquals("---\nname: \"Brad\"\nage: 39\n", yaml); + assertEquals("name: \"Brad\"\nage: 39\n", yaml); } public void testBasicPOJO() throws Exception @@ -47,14 +47,13 @@ public class SimpleGenerationTest extends ModuleTestBase FiveMinuteUser.Gender.MALE, new byte[] { 1, 3, 13, 79 }); String yaml = mapper.writeValueAsString(user).trim(); String[] parts = yaml.split("\n"); - assertEquals(6, parts.length); + assertEquals(5, parts.length); // unify ordering, need to use TreeSets TreeSet exp = new TreeSet(); for (String part : parts) { exp.add(part.trim()); } Iterator it = exp.iterator(); - assertEquals("---", it.next()); assertEquals("firstName: \"Bob\"", it.next()); assertEquals("gender: \"MALE\"", it.next()); assertEquals("lastName: \"Dabolito\"", it.next()); @@ -70,7 +69,7 @@ public class SimpleGenerationTest extends ModuleTestBase ObjectMapper mapper = mapperForYAML(); mapper.writeValue(f, "Foobar"); assertTrue(f.canRead()); - assertEquals(13L, f.length()); + assertEquals(9L, f.length()); f.delete(); } } debian/patches/series0000644000000000000000000000005012221302256012020 0ustar 0001-SnakeYAML-1.11-compatibility.patch debian/libjackson2-dataformat-yaml.classpath0000644000000000000000000000020512221302256016343 0ustar usr/share/java/jackson-dataformat-yaml.jar /usr/share/java/jackson-core.jar /usr/share/java/junit4.jar /usr/share/java/snakeyaml.jar debian/replace-generate.sh0000755000000000000000000000145112221302256012724 0ustar #!/bin/sh # Simple replacement for mavan-replacer-plugin set -e TARGET=$1; shift TEMPLATE=$TARGET.in get_attr() { < pom.xml xmlstarlet sel \ -N pom=http://maven.apache.org/POM/4.0.0 \ -T -t -v $1 } package=$(dirname $TARGET | sed -e 's,.*src/main/java/\(.*\)$,\1,' | tr / .) projectversion=$(get_attr '/pom:project/pom:version') projectgroupid=$(get_attr '/pom:project/pom:groupId') projectartifactid=$(get_attr '/pom:project/pom:artifactId') sed \ -e "s,@package@,$package,g" \ -e "s,@projectversion@,$projectversion,g" \ -e "s,@projectgroupid@,$projectgroupid,g" \ -e "s,@projectartifactid@,$projectartifactid,g" \ < $TEMPLATE > $TARGET.t if grep -i '@[a-z]*@' $TARGET.t >&2; then echo 'Not all tags were replaced' >&2 exit 1 fi mv $TARGET.t $TARGET debian/maven.publishedRules0000644000000000000000000000000112221302256013172 0ustar