Packages

Translates a string of words to a select number of lingos. Right now the only lingo available is Pirate, more to come shortly!

Current section

8 Versions

Jump to

Compare versions

3 files changed
+3 additions
-3 deletions
  @@ -23,4 +23,4 @@
23 23 {<<"optional">>,false},
24 24 {<<"repository">>,<<"hexpm">>},
25 25 {<<"requirement">>,<<"~> 1.0">>}]]}.
26 - {<<"version">>,<<"0.0.4">>}.
26 + {<<"version">>,<<"0.0.5">>}.
  @@ -2,7 +2,7 @@ defmodule TalkLikeAX.LingoLoader do
2 2 @moduledoc false
3 3
4 4 def load_lingo(lingo \\ :pirate) do
5 - path = Path.join([__DIR__, "..", "lingos", "#{lingo}.yml"])
5 + path = Path.expand("lingos/#{lingo}.yml", "lib") |> Path.absname
6 6 YamlElixir.read_from_file(path)
7 7 end
  @@ -4,7 +4,7 @@ defmodule TalkLikeAX.MixProject do
4 4 def project do
5 5 [
6 6 app: :talk_like_a_x,
7 - version: "0.0.4",
7 + version: "0.0.5",
8 8 elixir: "~> 1.10",
9 9 start_permanent: Mix.env() == :prod,
10 10 deps: deps(),