Skip to content

Commit

Permalink
Update Sass version to 1.61.0
Browse files Browse the repository at this point in the history
  • Loading branch information
azizk committed Apr 10, 2023
1 parent 357d6dc commit 26f0624
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v0.6.0 (unreleased)

- Update Sass version to `1.61.0`

## v0.5.1 (2022-08-26)

- Update Sass version to `1.54.5`
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Once installed, change your `config/config.exs` to pick your
dart_sass version of choice:

```elixir
config :dart_sass, version: "1.54.5"
config :dart_sass, version: "1.61.0"
```

Now you can install dart-sass by running:
Expand Down Expand Up @@ -68,7 +68,7 @@ directory, the OS environment, and default arguments to the

```elixir
config :dart_sass,
version: "1.54.5",
version: "1.61.0",
default: [
args: ~w(css/app.scss ../priv/static/assets/app.css),
cd: Path.expand("../assets", __DIR__)
Expand Down Expand Up @@ -100,7 +100,7 @@ compile CSS to the output location `priv/static/assets/app.css`:

```elixir
config :dart_sass,
version: "1.54.5",
version: "1.61.0",
default: [
args: ~w(css/app.scss ../priv/static/assets/app.css),
cd: Path.expand("../assets", __DIR__)
Expand Down
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Config

config :dart_sass,
version: "1.54.5",
version: "1.61.0",
another: [
args: ["--version"]
]
2 changes: 1 addition & 1 deletion lib/dart_sass.ex
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ defmodule DartSass do
@doc false
# Latest known version at the time of publishing.
def latest_version do
"1.54.5"
"1.61.0"
end

@doc """
Expand Down
11 changes: 8 additions & 3 deletions test/dart_sass_test.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule DartSassTest do
use ExUnit.Case, async: true

@version "1.54.5"
@version DartSass.latest_version()

test "run on default" do
assert ExUnit.CaptureIO.capture_io(fn ->
Expand All @@ -16,13 +16,18 @@ defmodule DartSassTest do
end

test "updates on install" do
Application.put_env(:dart_sass, :version, "1.49.11")
older_version =
Version.parse!(@version)
|> then(fn %{minor: m} = v -> %{v | minor: m - 1} end)
|> Version.to_string()

Application.put_env(:dart_sass, :version, older_version)

Mix.Task.rerun("sass.install", ["--if-missing"])

assert ExUnit.CaptureIO.capture_io(fn ->
assert DartSass.run(:default, ["--version"]) == 0
end) =~ "1.49.11"
end) =~ older_version

Application.delete_env(:dart_sass, :version)

Expand Down

0 comments on commit 26f0624

Please sign in to comment.