...
 
Commits (3)
# Version 1.0.17
* Updating p1_utils to version 1.0.13.
# Version 1.0.16
* Updating p1_utils to version 6ff85e8.
* Add handling of unicode string
# Version 1.0.15
* Updating p1_utils to version 1.0.12.
......
erlang-p1-yaml (1.0.17-1) unstable; urgency=medium
* New upstream version 1.0.17
* Enabled DH_VERBOSE in debian/rules
* Updated Standards-Version: 4.2.1 (no changes needed)
-- Philipp Huebner <debalance@debian.org> Sun, 07 Oct 2018 14:58:11 +0200
erlang-p1-yaml (1.0.15-1) unstable; urgency=medium
* New upstream version 1.0.15
......
......@@ -7,10 +7,10 @@ Build-Depends: debhelper (>= 11~),
dh-rebar,
erlang-base (>= 1:19.2),
erlang-eunit,
erlang-p1-utils (>= 1.0.12),
erlang-p1-utils (>= 1.0.13),
erlang-syntax-tools,
libyaml-dev
Standards-Version: 4.1.4
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/ejabberd-packaging-team/erlang-p1-yaml
Vcs-Git: https://salsa.debian.org/ejabberd-packaging-team/erlang-p1-yaml.git
Homepage: https://github.com/processone/fast_yaml
......@@ -21,7 +21,7 @@ Depends: ${shlibs:Depends},
${misc:Depends},
erlang-base (>= 1:19.2) | ${erlang-abi:Depends},
${erlang:Depends},
erlang-p1-utils (>= 1.0.12)
erlang-p1-utils (>= 1.0.13)
Description: erlang wrapper for libyaml C library
This library was written for ejabberd which still uses it.
It was split off into it's own project to follow
......
......@@ -11,7 +11,7 @@ Index: erlang-p1-yaml/rebar.config
{port_env, [{"CFLAGS", "$CFLAGS"}, {"LDFLAGS", "$LDFLAGS -lyaml"}]}.
{port_specs, [{"priv/lib/fast_yaml.so", ["c_src/fast_yaml.c"]}]}.
-{deps, [{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.12"}}}]}.
-{deps, [{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.13"}}}]}.
{clean_files, ["c_src/fast_yaml.gcda", "c_src/fast_yaml.gcno"]}.
......@@ -24,7 +24,7 @@
{port_env, [{"CFLAGS", "$CFLAGS"}, {"LDFLAGS", "$LDFLAGS -lyaml"}]}.
{port_specs, [{"priv/lib/fast_yaml.so", ["c_src/fast_yaml.c"]}]}.
{deps, [{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.12"}}}]}.
{deps, [{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.13"}}}]}.
{clean_files, ["c_src/fast_yaml.gcda", "c_src/fast_yaml.gcno"]}.
......
......@@ -23,7 +23,7 @@
{application, fast_yaml,
[{description, "Fast YAML native library for Erlang / Elixir"},
{vsn, "1.0.15"},
{vsn, "1.0.17"},
{modules, []},
{registered, []},
{applications, [kernel, stdlib]},
......
......@@ -135,7 +135,7 @@ encode(B, _) when is_binary(B) ->
lists:map(
fun($") -> [$\\, $"];
(C) -> C
end, binary_to_list(B)),
end, unicode:characters_to_list(B)),
$"].
encode_pair({K, V}, N) ->
......@@ -236,4 +236,14 @@ decode_test4_test() ->
"Pz7Y6OjuDg4J+fn5OTk6enp\n56enmleECcgggoBADs=mZmE\n">>}]]},
decode_from_file(FileName)).
encode_test1_test() ->
?assertEqual(
list_to_binary(encode(<<"a">>)),
<<"\"a\"">>).
encode_unicode_test1_test() ->
?assertEqual(
unicode:characters_to_binary(encode(<<"☃"/utf8>>)),
<<"\"\""/utf8>>).
-endif.