Skip to content

Commit

Permalink
Merge pull request #42 from jfacorro/39-adapt-library-for-publishing
Browse files Browse the repository at this point in the history
[#39] Adapt library for publishing
  • Loading branch information
jfacorro authored Oct 31, 2020
2 parents ba45496 + 9c5ec43 commit 62dace8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/eden/decode.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ defmodule Eden.Decode do
String.to_atom(value)
end
def decode(%Node{type: :integer, value: value}, _opts) do
value = String.rstrip(value, ?N)
value = String.trim_trailing(value, "N")
:erlang.binary_to_integer(value)
end
def decode(%Node{type: :float, value: value}, _opts) do
value = String.rstrip(value, ?M)
value = String.trim_trailing(value, "M")
# Elixir/Erlang don't convert to float if there
# is no decimal part.
final_value = if not String.contains?(value, ".") do
Expand Down Expand Up @@ -66,7 +66,7 @@ defmodule Eden.Decode do
end
children
|> decode(opts)
|> Enum.chunk(2)
|> Enum.chunk_every(2)
|> Enum.map(fn [a, b] -> {a, b} end)
|> Enum.into(%{})
end
Expand Down
6 changes: 3 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ defmodule Eden.Mixfile do
end

def application do
[applications: [:timex, :array]]
[applications: [:timex, :elixir_array]]
end

defp deps do
[{:array, github: "jfacorro/elixir-array", tag: "2.0.0"},
[{:elixir_array, "~> 2.1.0"},
{:timex, "~> 3.1"},

{:exreloader, github: "jfacorro/exreloader", tag: "master", only: :dev},
Expand All @@ -32,7 +32,7 @@ defmodule Eden.Mixfile do
end

defp package do
[files: ["lib", "priv", "mix.exs", "README*", "readme*", "LICENSE*", "license*"],
[files: ["lib", "mix.exs", "README.md", "LICENSE"],
contributors: ["Juan Facorro"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/jfacorro/Eden/",
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
%{
"array": {:git, "https://github.com/jfacorro/elixir-array.git", "f248f9d257da2c703c469da05ca88206a7e6c15d", [tag: "2.0.0"]},
"certifi": {:hex, :certifi, "2.5.2", "b7cfeae9d2ed395695dd8201c57a2d019c0c43ecaf8b8bcb9320b40d6662f340", [:rebar3], [{:parse_trans, "~>3.3", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm", "3b3b5f36493004ac3455966991eaf6e768ce9884693d9968055aeeeb1e575040"},
"combine": {:hex, :combine, "0.10.0", "eff8224eeb56498a2af13011d142c5e7997a80c8f5b97c499f84c841032e429f", [:mix], [], "hexpm", "1b1dbc1790073076580d0d1d64e42eae2366583e7aecd455d1215b0d16f2451b"},
"earmark": {:hex, :earmark, "1.4.10", "bddce5e8ea37712a5bfb01541be8ba57d3b171d3fa4f80a0be9bcf1db417bcaf", [:mix], [{:earmark_parser, ">= 1.4.10", [hex: :earmark_parser, repo: "hexpm", optional: false]}], "hexpm", "12dbfa80810478e521d3ffb941ad9fbfcbbd7debe94e1341b4c4a1b2411c1c27"},
"earmark_parser": {:hex, :earmark_parser, "1.4.10", "6603d7a603b9c18d3d20db69921527f82ef09990885ed7525003c7fe7dc86c56", [:mix], [], "hexpm", "8e2d5370b732385db2c9b22215c3f59c84ac7dda7ed7e544d7c459496ae519c0"},
"elixir_array": {:hex, :elixir_array, "2.1.0", "580293f82afdd63be880d69d3b1cc829fe6994f4b1442ee809ccb7199ee7fa13", [:mix], [], "hexpm", "9425e43cf7df7eaea6ac03e25e317835b52212ec374d71029a8fd02c1c32648c"},
"ex_doc": {:hex, :ex_doc, "0.23.0", "a069bc9b0bf8efe323ecde8c0d62afc13d308b1fa3d228b65bca5cf8703a529d", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm", "f5e2c4702468b2fd11b10d39416ddadd2fcdd173ba2a0285ebd92c39827a5a16"},
"exreloader": {:git, "https://github.com/jfacorro/exreloader.git", "c54f341284597d9efbeb0fe05001ff442a87074c", [tag: "master"]},
"gettext": {:hex, :gettext, "0.18.2", "7df3ea191bb56c0309c00a783334b288d08a879f53a7014341284635850a6e55", [:mix], [], "hexpm", "f9f537b13d4fdd30f3039d33cb80144c3aa1f8d9698e47d7bcbcc8df93b1f5c5"},
Expand Down

0 comments on commit 62dace8

Please sign in to comment.