aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2016-10-31 03:50:00 -0600
committerkballou <kballou@devnulllabs.io>2016-10-31 04:03:09 -0600
commit94fd8007c480feaebff547ab29e7e9b9eecb77b1 (patch)
tree10192fdc970f31bdb0683dae50b1a4f03fa4624f
parentf6e65cdd40f359e0742fba18c81149d1b44b8c96 (diff)
downloadoctochat-94fd8007c480feaebff547ab29e7e9b9eecb77b1.tar.gz
octochat-94fd8007c480feaebff547ab29e7e9b9eecb77b1.tar.xz
Append new line before sending the reversed linev0.3.3
-rw-r--r--lib/octochat/servers/echo.ex1
-rw-r--r--mix.exs2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/octochat/servers/echo.ex b/lib/octochat/servers/echo.ex
index ff25869..2945c47 100644
--- a/lib/octochat/servers/echo.ex
+++ b/lib/octochat/servers/echo.ex
@@ -18,6 +18,7 @@ defmodule Octochat.Echo do
msg
|> String.trim()
|> String.reverse()
+ |> (fn (line) -> line <> "\n" end).()
|> write_line!(socket)
{:noreply, state}
end
diff --git a/mix.exs b/mix.exs
index da21570..f357e0b 100644
--- a/mix.exs
+++ b/mix.exs
@@ -5,7 +5,7 @@ defmodule Octochat.Mixfile do
[app: :octochat,
description: "Demo Application for How Swapping Code",
package: package(),
- version: "0.3.2",
+ version: "0.3.3",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,