Skip to content

Commit

Permalink
chore: prepare to v2.0-alpha1
Browse files Browse the repository at this point in the history
  • Loading branch information
williamthome committed May 28, 2024
1 parent 28c434d commit c4f6f1e
Show file tree
Hide file tree
Showing 39 changed files with 1,689 additions and 7,909 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/elixir-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Tests

container:
image: elixir:1.15
image: elixir:1.16

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/erlang-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: erlang:26.1
image: erlang:26

steps:
- uses: actions/checkout@v2
Expand Down
39 changes: 14 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
all:

bench.encode:
cd euneus_bench && mix encode

bench.encode_parsed:
cd euneus_bench && mix encode_parsed

bench.encode_parsed_plugins:
cd euneus_bench && mix encode_parsed_plugins
.PHONY: check

bench.decode:
cd euneus_bench && mix decode
check: dialyzer test.erlang test.elixir

bench.decode_parsed:
cd euneus_bench && mix decode_parsed
.PHONY: dialyzer

bench.decode_parsed_plugins:
cd euneus_bench && mix decode_parsed_plugins
dialyzer:
rebar3 dialyzer

.PHONY: test

test.rebar3:
rebar3 as test do ct, eunit
test.erlang:
rebar3 do ct, eunit

test.mix:
test.elixir:
cd euneus_test && mix test

test: test.rebar3 test.mix
test: test.erlang test.elixir

.PHONY: check

check: test
rebar3 dialyzer
.PHONY: bench

.PHONY: publish
bench.encode:
cd euneus_bench && mix encode

publish: check
rebar3 hex publish
bench.decode:
cd euneus_bench && mix decode
823 changes: 70 additions & 753 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions euneus_bench/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule EuneusBench.MixProject do
defp deps do
[
{:euneus, path: "../"},
{:json_polyfill, "~> 0.1"},
{:thoas, "~> 1.2"},
{:jason, "~> 1.4"},
{:jsone, "~> 1.6"},
Expand Down
1 change: 1 addition & 0 deletions euneus_bench/mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"exjsx": {:hex, :exjsx, "4.0.0", "60548841e0212df401e38e63c0078ec57b33e7ea49b032c796ccad8cde794b5c", [:mix], [{:jsx, "~> 2.8.0", [hex: :jsx, repo: "hexpm", optional: false]}], "hexpm", "32e95820a97cffea67830e91514a2ad53b888850442d6d395f53a1ac60c82e07"},
"jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"},
"jiffy": {:hex, :jiffy, "1.1.1", "aca10f47aa91697bf24ab9582c74e00e8e95474c7ef9f76d4f1a338d0f5de21b", [:rebar3], [], "hexpm", "62e1f0581c3c19c33a725c781dfa88410d8bff1bbafc3885a2552286b4785c4c"},
"json_polyfill": {:hex, :json_polyfill, "0.1.0", "6a98a0c6917f39c0fd26761c5a4c40e83fc02127799c8400fa78264a7481cfd0", [:rebar3], [], "hexpm", "6603ff9f08f6bb75e2bce1723389bc8b45d086cd003950b3e35152716de38fd9"},
"jsone": {:hex, :jsone, "1.8.1", "6bc74d3863d55d420077346da97c601711017a057f2fd1df65d6d65dd562fbab", [:rebar3], [], "hexpm", "c78918124148c51a7a84c678e39bbc6281f8cb582f1d88584628a98468e99738"},
"jsx": {:hex, :jsx, "3.1.0", "d12516baa0bb23a59bb35dccaf02a1bd08243fcbb9efe24f2d9d056ccff71268", [:rebar3], [], "hexpm", "0c5cc8fdc11b53cc25cf65ac6705ad39e54ecc56d1c22e4adb8f5a53fb9427f3"},
"statistex": {:hex, :statistex, "1.0.0", "f3dc93f3c0c6c92e5f291704cf62b99b553253d7969e9a5fa713e5481cd858a5", [:mix], [], "hexpm", "ff9d8bee7035028ab4742ff52fc80a2aa35cece833cf5319009b52f1b5a86c27"},
Expand Down
20 changes: 10 additions & 10 deletions euneus_bench/script/decode.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs = %{
}

data = [
"Blockchain",
"Giphy",
"GitHub",
"GovTrack",
"Issue 90",
"JSON Generator (Pretty)",
"JSON Generator",
"Pokedex",
"UTF-8 escaped",
"UTF-8 unescaped"
"Blockchain"
# "Giphy",
# "GitHub",
# "GovTrack",
# "Issue 90",
# "JSON Generator (Pretty)",
# "JSON Generator",
# "Pokedex",
# "UTF-8 escaped",
# "UTF-8 unescaped"
]

inputs =
Expand Down
47 changes: 0 additions & 47 deletions euneus_bench/script/decode_parsed.exs

This file was deleted.

57 changes: 0 additions & 57 deletions euneus_bench/script/decode_parsed_plugins.exs

This file was deleted.

16 changes: 8 additions & 8 deletions euneus_bench/script/encode.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs = %{
}

data = [
"Blockchain",
"Giphy",
"GitHub",
"GovTrack",
"Issue 90",
"JSON Generator",
"Pokedex",
"UTF-8 unescaped"
"Blockchain"
# "Giphy",
# "GitHub",
# "GovTrack",
# "Issue 90",
# "JSON Generator",
# "Pokedex",
# "UTF-8 unescaped"
]

inputs =
Expand Down
46 changes: 0 additions & 46 deletions euneus_bench/script/encode_parsed.exs

This file was deleted.

57 changes: 0 additions & 57 deletions euneus_bench/script/encode_parsed_plugins.exs

This file was deleted.

15 changes: 13 additions & 2 deletions euneus_test/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,20 @@ defmodule EuneusTest.MixProject do

# Run "mix help deps" to learn about dependencies.
defp deps do
[
deps = [
{:euneus, path: "../"},
{:stream_data, "~> 0.4", only: :test},
{:stream_data, "~> 0.4", only: :test}
]

case :erlang.system_info(:otp_release) do
rel when is_integer(rel) and rel >= 27 ->
deps

_ ->
deps ++
[
{:json_polyfill, "~> 0.1", only: :test}
]
end
end
end
1 change: 1 addition & 0 deletions euneus_test/mix.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%{
"json_polyfill": {:hex, :json_polyfill, "0.1.0", "6a98a0c6917f39c0fd26761c5a4c40e83fc02127799c8400fa78264a7481cfd0", [:rebar3], [], "hexpm", "6603ff9f08f6bb75e2bce1723389bc8b45d086cd003950b3e35152716de38fd9"},
"stream_data": {:hex, :stream_data, "0.6.0", "e87a9a79d7ec23d10ff83eb025141ef4915eeb09d4491f79e52f2562b73e5f47", [:mix], [], "hexpm", "b92b5031b650ca480ced047578f1d57ea6dd563f5b57464ad274718c9c29501c"},
}
Loading

0 comments on commit c4f6f1e

Please sign in to comment.