changed
README.md
|
@@ -1,6 +1,6 @@
|
1
1
|
# Slugify
|
2
2
|
|
3
|
- [](https://travis-ci.org/jayjun/slugify)
|
3
|
+ [](https://travis-ci.org/jayjun/slugify)
|
4
4
|
[](https://hex.pm/packages/slugify)
|
5
5
|
|
6
6
|
Transform strings from any language into slugs.
|
|
@@ -88,7 +88,9 @@ Add `slugify` to your list of dependencies in `mix.exs`:
|
88
88
|
|
89
89
|
```elixir
|
90
90
|
def deps do
|
91
|
- [{:slugify, "~> 1.1"}]
|
91
|
+ [
|
92
|
+ {:slugify, "~> 1.2"}
|
93
|
+ ]
|
92
94
|
end
|
93
95
|
```
|
changed
hex_metadata.config
|
@@ -2,7 +2,7 @@
|
2
2
|
{<<"build_tools">>,[<<"mix">>]}.
|
3
3
|
{<<"description">>,
|
4
4
|
<<"Transform strings from any language to slugs for URLs, filenames or fun">>}.
|
5
|
- {<<"elixir">>,<<"~> 1.4">>}.
|
5
|
+ {<<"elixir">>,<<"~> 1.8">>}.
|
6
6
|
{<<"files">>,
|
7
7
|
[<<"lib/slug.ex">>,<<"priv">>,<<"priv/data.etf">>,<<"priv/data.json">>,
|
8
8
|
<<"mix.exs">>,<<"README.md">>]}.
|
|
@@ -10,4 +10,4 @@
|
10
10
|
{<<"links">>,[{<<"GitHub">>,<<"https://github.com/jayjun/slugify">>}]}.
|
11
11
|
{<<"name">>,<<"slugify">>}.
|
12
12
|
{<<"requirements">>,[]}.
|
13
|
- {<<"version">>,<<"1.2.0">>}.
|
13
|
+ {<<"version">>,<<"1.3.0">>}.
|
changed
lib/slug.ex
|
@@ -142,7 +142,7 @@ defmodule Slug do
|
142
142
|
|
143
143
|
defp normalize_to_codepoints(string) do
|
144
144
|
string
|
145
|
- |> String.normalize(:nfc)
|
145
|
+ |> :unicode.characters_to_nfc_binary()
|
146
146
|
|> String.to_charlist()
|
147
147
|
end
|
changed
mix.exs
|
@@ -1,14 +1,14 @@
|
1
1
|
defmodule Slug.Mixfile do
|
2
2
|
use Mix.Project
|
3
3
|
|
4
|
- @version "1.2.0"
|
4
|
+ @version "1.3.0"
|
5
5
|
@repo_url "https://github.com/jayjun/slugify"
|
6
6
|
|
7
7
|
def project do
|
8
8
|
[
|
9
9
|
app: :slugify,
|
10
10
|
version: @version,
|
11
|
- elixir: "~> 1.4",
|
11
|
+ elixir: "~> 1.8",
|
12
12
|
name: "Slugify",
|
13
13
|
description: "Transform strings from any language to slugs for URLs, filenames or fun",
|
14
14
|
deps: deps(),
|
|
@@ -29,9 +29,8 @@ defmodule Slug.Mixfile do
|
29
29
|
|
30
30
|
defp deps do
|
31
31
|
[
|
32
|
- {:jason, "~> 1.0", only: [:dev, :test], runtime: false},
|
33
|
- {:credo, "~> 1.1", only: [:dev, :test], runtime: false},
|
34
|
- {:ex_doc, "~> 0.21", only: :dev, runtime: false}
|
32
|
+ {:jason, "~> 1.0", only: :docs, runtime: false},
|
33
|
+ {:ex_doc, "~> 0.21", only: :docs, runtime: false}
|
35
34
|
]
|
36
35
|
end
|