Skip to content

Commit

Permalink
0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
grych committed Aug 2, 2017
1 parent 116c325 commit ebbb47e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# CHANGELOG

# v0.5.2
Fixed on Elixir 1.4 due to elixir-lang/elixir#6391
This is a small update to make Drab compatible with Elixir 1.5.
Due to an issue with 1.5.0 (elixir-lang/elixir#6391) Elixir version is fixed on 1.4 or >= 1.5.1.

### Fixes:
* #26, #27, #30, #33
* #26, #27, #30, #31, #33


# v0.5.1
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Drab.Mixfile do
def project do
[app: :drab,
version: @version,
elixir: "~> 1.4.0",
elixir: ">= 1.4.0 and < 1.5.0 or >= 1.5.1 and < 1.6.0", # a bug in EEx in 1.5.0
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
Expand Down
8 changes: 4 additions & 4 deletions test/integration/query_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ defmodule DrabTestApp.QueryTest do
socket |> insert(" appended", append: selector)
assert visible_text(wrapper) == "Insert DIV appended"
assert visible_text(div) == "Insert DIV appended"
assert inner_html(wrapper) |> String.strip == "<div id=\"insert1_div\">Insert DIV appended</div>"
assert inner_html(wrapper) |> String.trim() == "<div id=\"insert1_div\">Insert DIV appended</div>"
end

test "insert/3 prepend" do
Expand All @@ -325,7 +325,7 @@ defmodule DrabTestApp.QueryTest do
socket |> insert("Prepended ", prepend: selector)
assert visible_text(wrapper) == "Prepended Insert DIV"
assert visible_text(div) == "Prepended Insert DIV"
assert inner_html(wrapper) |> String.strip == "<div id=\"insert1_div\">Prepended Insert DIV</div>"
assert inner_html(wrapper) |> String.trim() == "<div id=\"insert1_div\">Prepended Insert DIV</div>"
end

test "insert/3 after" do
Expand All @@ -334,7 +334,7 @@ defmodule DrabTestApp.QueryTest do
socket |> insert(" appended", after: selector)
assert visible_text(wrapper) == "Insert DIV\nappended"
assert visible_text(div) == "Insert DIV"
assert inner_html(wrapper) |> String.strip == "<div id=\"insert1_div\">Insert DIV</div> appended"
assert inner_html(wrapper) |> String.trim() == "<div id=\"insert1_div\">Insert DIV</div> appended"
end

test "insert/3 before" do
Expand All @@ -343,7 +343,7 @@ defmodule DrabTestApp.QueryTest do
socket |> insert("Prepended ", before: selector)
assert visible_text(wrapper) == "Prepended\nInsert DIV"
assert visible_text(div) == "Insert DIV"
assert inner_html(wrapper) |> String.strip == "Prepended <div id=\"insert1_div\">Insert DIV</div>"
assert inner_html(wrapper) |> String.trim() == "Prepended <div id=\"insert1_div\">Insert DIV</div>"
end
end

Expand Down

0 comments on commit ebbb47e

Please sign in to comment.