From a19ab57632ee1ee5c74366118b0f2e6aae942077 Mon Sep 17 00:00:00 2001 From: Piotr Przetacznik Date: Fri, 29 Mar 2024 01:15:38 +0100 Subject: [PATCH 1/2] feat: Bump elixir version --- .github/workflows/build_workflow.yml | 6 +++--- .github/workflows/docker_workflow.yml | 8 +++++++- .github/workflows/docs_workflow.yml | 2 +- .github/workflows/elixir.yml | 2 ++ .github/workflows/generate_version.yml | 7 ++++++- README.md | 13 ++++++++++--- VERSION | 2 +- config/config.exs | 2 +- config/dev.exs | 2 +- config/docs.exs | 2 +- config/prod.exs | 2 +- config/test.exs | 2 +- lib/ielixir/sandbox.ex | 4 ++-- mix.exs | 2 +- 14 files changed, 38 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build_workflow.yml b/.github/workflows/build_workflow.yml index 75eb38f..c299811 100644 --- a/.github/workflows/build_workflow.yml +++ b/.github/workflows/build_workflow.yml @@ -20,12 +20,12 @@ jobs: strategy: matrix: os: ['ubuntu-22.04'] - elixir-version: ['1.14'] + elixir-version: ['1.15'] otp-version: ['26'] - python-version: ['3.8', '3.12'] + python-version: ['3.12'] steps: - name: Checkout IElixir project - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set version if: inputs.is_release == 'true' run: | diff --git a/.github/workflows/docker_workflow.yml b/.github/workflows/docker_workflow.yml index c6cc6e8..9eec06b 100644 --- a/.github/workflows/docker_workflow.yml +++ b/.github/workflows/docker_workflow.yml @@ -6,6 +6,12 @@ on: version: required: true type: string + build_docker_version: + required: true + type: string + is_release: + required: true + type: string secrets: DOCKERHUB_USERNAME: required: true @@ -18,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout IElixir project - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx diff --git a/.github/workflows/docs_workflow.yml b/.github/workflows/docs_workflow.yml index 2a077f5..073e035 100644 --- a/.github/workflows/docs_workflow.yml +++ b/.github/workflows/docs_workflow.yml @@ -27,7 +27,7 @@ jobs: HEX_API_KEY: ${{ secrets.HEX_API_KEY }} steps: - name: Checkout IElixir project - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set version if: inputs.is_release == 'true' run: | diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 8bfd2d1..8194cdd 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -26,6 +26,8 @@ jobs: needs: [generate_version, build_ielixir] with: version: ${{ needs.generate_version.outputs.version }} + build_docker_version: ${{ needs.generate_version.outputs.build_docker_version }} + is_release: ${{ needs.generate_version.outputs.is_release }} secrets: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/generate_version.yml b/.github/workflows/generate_version.yml index db62381..0be8e36 100644 --- a/.github/workflows/generate_version.yml +++ b/.github/workflows/generate_version.yml @@ -9,6 +9,9 @@ on: build_version: description: "Generated build version" value: ${{ jobs.generate_version.outputs.build_version }} + build_docker_version: + description: "Generated build docker version" + value: ${{ jobs.generate_version.outputs.build_docker_version }} is_release: description: "Generated is release flag" value: ${{ jobs.generate_version.outputs.is_release }} @@ -20,15 +23,17 @@ jobs: outputs: version: ${{ steps.gen_ielixir_version.outputs.IELIXIR_VERSION }} build_version: ${{ steps.gen_ielixir_version.outputs.IELIXIR_BUILD_VERSION }} + build_docker_version: ${{ steps.gen_ielixir_version.outputs.IELIXIR_BUILD_DOCKER_VERSION }} is_release: ${{ steps.gen_ielixir_version.outputs.IELIXIR_IS_RELEASE }} steps: - name: Checkout IElixir project - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Generate version id: gen_ielixir_version run: | echo "IELIXIR_VERSION=$(cat ./VERSION)" >> $GITHUB_OUTPUT echo "IELIXIR_BUILD_VERSION=$(cat ./VERSION)+dev$(date '+%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT + echo "IELIXIR_BUILD_DOCKER_VERSION=$(cat ./VERSION).$(date '+%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT - name: Check if release id: check_if_release run: | diff --git a/README.md b/README.md index f538fb1..fd6843b 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,17 @@ IElixir ======= -Jupyter's kernel for Elixir +Jupyter's kernel for Elixir. [![Build Status](https://travis-ci.org/pprzetacznik/IElixir.svg?branch=master)](https://travis-ci.org/pprzetacznik/IElixir) [![IElixir CI](https://github.com/pprzetacznik/IElixir/workflows/IElixir%20CI/badge.svg)](https://github.com/pprzetacznik/IElixir/actions?query=workflow%3A"IElixir+CI") -[![IElixir Docker](https://github.com/pprzetacznik/IElixir/workflows/IElixir%20Docker/badge.svg)](https://github.com/pprzetacznik/IElixir/actions?query=workflow%3A"IElixir+Docker") [![Inline docs](http://inch-ci.org/github/pprzetacznik/IElixir.svg?branch=master)](http://inch-ci.org/github/pprzetacznik/IElixir) [![Coverage Status](https://coveralls.io/repos/github/pprzetacznik/IElixir/badge.svg?branch=master)](https://coveralls.io/github/pprzetacznik/IElixir?branch=master) [![Join the chat at https://gitter.im/pprzetacznik/IElixir](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pprzetacznik/IElixir?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Hex: https://hex.pm/packages/ielixir. - Please see generated documentation for implementation details: http://hexdocs.pm/ielixir/. +Docker: [pprzetacznik/ielixir](https://hub.docker.com/r/pprzetacznik/ielixir). ## Getting Started @@ -27,6 +26,7 @@ Please see generated documentation for implementation details: http://hexdocs.pm * [Generate documentation](#generate-documentation) * [Docker](#docker) * [Some issues](#some-issues) +* [Publish new release](#publish-new-release) * [Contribution](#contribution) * [References](#references) * [License](#license) @@ -223,6 +223,13 @@ This option has been included inside `install_script.sh` and `start_script.sh` s $ jupyter kernelspec list ``` +### Publish new release + +```Bash +$ git tag v1.0.1 +$ git push origin v1.0.1 +``` + ### Contribution * Try to write some description of the feature or bug fix you're working in pull request's description and concise description of new modules or functions in moduledoc annotations, diff --git a/VERSION b/VERSION index 7dea76e..6d7de6e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.1 +1.0.2 diff --git a/config/config.exs b/config/config.exs index 50e463e..43ba225 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :logger, level: :info diff --git a/config/dev.exs b/config/dev.exs index 6ee8090..70766a1 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :logger, level: :debug diff --git a/config/docs.exs b/config/docs.exs index 41729d1..2c466c0 100644 --- a/config/docs.exs +++ b/config/docs.exs @@ -1,6 +1,6 @@ # This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. -use Mix.Config +import Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this diff --git a/config/prod.exs b/config/prod.exs index c09beaa..22d8692 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :logger, level: :info diff --git a/config/test.exs b/config/test.exs index 882b619..1709ba5 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :logger, level: :debug diff --git a/lib/ielixir/sandbox.ex b/lib/ielixir/sandbox.ex index 918992f..cbc9dbd 100644 --- a/lib/ielixir/sandbox.ex +++ b/lib/ielixir/sandbox.ex @@ -116,11 +116,11 @@ defmodule IElixir.Sandbox do {:ok, ":sampleatom", "", "", 1} iex> IElixir.Sandbox.execute_code(%{"code" => "asdf"}) - {:error, "CompileError", ["** (CompileError) console:1 \"undefined function asdf/0 (there is no such import)\""], 1} + {:error, "CompileError", ["** (CompileError) console:0 \"cannot compile file (errors have been logged)\""], 1} iex> IElixir.Sandbox.execute_code(%{"code" => "hd []"}) {:error, "ArgumentError", ["** (ArgumentError) \"errors were found at the given arguments:\\n\\n * 1st argument: not a nonempty list\\n\""], 1} - + iex> abc = IElixir.Sandbox.execute_code(%{"code" => "\"a\" + 5"}) iex> elem(abc, 0) :error diff --git a/mix.exs b/mix.exs index ed8b270..01c0097 100644 --- a/mix.exs +++ b/mix.exs @@ -39,7 +39,7 @@ defmodule IElixir.Mixfile do {:floki, "~> 0.29.0"}, {:poison, "~> 3.0"}, {:uuid, "~> 1.7.5", [hex: "uuid_erl", repo: "hexpm"]}, - {:sqlite_ecto2, "~> 2.4.0"}, + {:sqlite_ecto2, "~> 2.4.1"}, # Docs dependencies {:earmark, "~> 1.3.6", only: :docs}, From bde0cc707c4781addc897ccc7ee1981519f556ab Mon Sep 17 00:00:00 2001 From: Piotr Przetacznik Date: Sun, 31 Mar 2024 21:29:52 +0200 Subject: [PATCH 2/2] feat: Switch to ecto_sqlite3 --- .github/workflows/build_workflow.yml | 2 +- config/dev.exs | 3 +- config/prod.exs | 2 +- config/test.exs | 3 +- lib/ielixir/boyle.ex | 23 ++++++++-------- lib/ielixir/repo.ex | 4 ++- lib/ielixir/sandbox.ex | 2 +- mix.exs | 4 +-- mix.lock | 41 +++++++++++----------------- test/boyle_test.exs | 2 +- test/test_connection_file | 18 ++++++------ 11 files changed, 48 insertions(+), 56 deletions(-) diff --git a/.github/workflows/build_workflow.yml b/.github/workflows/build_workflow.yml index c299811..3d302dc 100644 --- a/.github/workflows/build_workflow.yml +++ b/.github/workflows/build_workflow.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: os: ['ubuntu-22.04'] - elixir-version: ['1.15'] + elixir-version: ['1.15.7'] otp-version: ['26'] python-version: ['3.12'] steps: diff --git a/config/dev.exs b/config/dev.exs index 70766a1..1a12c7f 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -8,6 +8,5 @@ config :ielixir, working_directory: System.get_env("WORKING_DIRECTORY") config :ielixir, IElixir.Repo, - adapter: Sqlite.Ecto, + adapter: Ecto.Adapters.SQLite3, database: "dev_db.sqlite3" - diff --git a/config/prod.exs b/config/prod.exs index 22d8692..425a4a4 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -8,5 +8,5 @@ config :ielixir, working_directory: System.get_env("WORKING_DIRECTORY") config :ielixir, IElixir.Repo, - adapter: Sqlite.Ecto, + adapter: Ecto.Adapters.SQLite3, database: "prod_db.sqlite3" diff --git a/config/test.exs b/config/test.exs index 1709ba5..089ce02 100644 --- a/config/test.exs +++ b/config/test.exs @@ -6,6 +6,5 @@ config :logger, config :ielixir, connection_file: "test/test_connection_file" config :ielixir, IElixir.Repo, - adapter: Sqlite.Ecto, + adapter: Ecto.Adapters.SQLite3, database: "test_db.sqlite3" - diff --git a/lib/ielixir/boyle.ex b/lib/ielixir/boyle.ex index 68fa302..9475c63 100644 --- a/lib/ielixir/boyle.ex +++ b/lib/ielixir/boyle.ex @@ -252,6 +252,7 @@ defmodule Boyle do Code.load_file("mix.exs") # Mix.Project.push(CustomEnvironment) # IO.inspect(CustomEnvironment.project()) + Mix.Task.run("deps.get") Mix.Tasks.Deps.Compile.run([]) end) @@ -338,22 +339,22 @@ defmodule Boyle do defp create_mix_exs_file(env_path) do File.write!(Path.join(env_path, "mix.exs"), """ - defmodule CustomEnvironment do - use Mix.Project + defmodule CustomEnvironment do + use Mix.Project - def project do + def project do [app: :customenv, version: "1.0.0", build_per_environment: false, deps: deps()] - end - - def deps do - {deps, _bindings} = Code.eval_file("deps.lock") - deps - end - end - """) + end + + def deps do + {deps, _bindings} = Code.eval_file("deps.lock") + deps + end + end + """) end defp create_deps_lock_file(env_path) do diff --git a/lib/ielixir/repo.ex b/lib/ielixir/repo.ex index 573535e..171a8fe 100644 --- a/lib/ielixir/repo.ex +++ b/lib/ielixir/repo.ex @@ -1,5 +1,7 @@ defmodule IElixir.Repo do use Ecto.Repo, otp_app: :ielixir, - adapter: Sqlite.Ecto2 + adapter: Ecto.Adapters.SQLite3, + # locking_mode: :exclusive, + pool_size: 1 end diff --git a/lib/ielixir/sandbox.ex b/lib/ielixir/sandbox.ex index cbc9dbd..10362ab 100644 --- a/lib/ielixir/sandbox.ex +++ b/lib/ielixir/sandbox.ex @@ -116,7 +116,7 @@ defmodule IElixir.Sandbox do {:ok, ":sampleatom", "", "", 1} iex> IElixir.Sandbox.execute_code(%{"code" => "asdf"}) - {:error, "CompileError", ["** (CompileError) console:0 \"cannot compile file (errors have been logged)\""], 1} + {:error, "CompileError", ["** (CompileError) console:1 \"undefined function asdf/0 (there is no such import)\""], 1} iex> IElixir.Sandbox.execute_code(%{"code" => "hd []"}) {:error, "ArgumentError", ["** (ArgumentError) \"errors were found at the given arguments:\\n\\n * 1st argument: not a nonempty list\\n\""], 1} diff --git a/mix.exs b/mix.exs index 01c0097..108ef13 100644 --- a/mix.exs +++ b/mix.exs @@ -29,7 +29,7 @@ defmodule IElixir.Mixfile do def application do [ mod: {IElixir, []}, - applications: [:logger, :iex, :ecto, :erlzmq, :poison, :uuid, :floki] + applications: [:logger, :iex, :ecto_sqlite3, :erlzmq, :poison, :uuid, :floki] ] end @@ -39,7 +39,7 @@ defmodule IElixir.Mixfile do {:floki, "~> 0.29.0"}, {:poison, "~> 3.0"}, {:uuid, "~> 1.7.5", [hex: "uuid_erl", repo: "hexpm"]}, - {:sqlite_ecto2, "~> 2.4.1"}, + {:ecto_sqlite3, "~> 0.14"}, # Docs dependencies {:earmark, "~> 1.3.6", only: :docs}, diff --git a/mix.lock b/mix.lock index 1e602e4..58e839c 100644 --- a/mix.lock +++ b/mix.lock @@ -1,37 +1,28 @@ %{ - "bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm", "7af5c7e09fe1d40f76c8e4f9dd2be7cebd83909f31fee7cd0e9eadc567da8353"}, - "certifi": {:hex, :certifi, "2.6.1", "dbab8e5e155a0763eea978c913ca280a6b544bfa115633fa20249c3d396d9493", [:rebar3], [], "hexpm", "524c97b4991b3849dd5c17a631223896272c6b0af446778ba4675a1dff53bb7e"}, - "connection": {:hex, :connection, "1.0.4", "a1cae72211f0eef17705aaededacac3eb30e6625b04a6117c1b2db6ace7d5976", [:mix], [], "hexpm", "4a0850c9be22a43af9920a71ab17c051f5f7d45c209e40269a1938832510e4d9"}, - "db_connection": {:hex, :db_connection, "1.1.3", "89b30ca1ef0a3b469b1c779579590688561d586694a3ce8792985d4d7e575a61", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm", "5f0a16a58312a610d5eb0b07506280c65f5137868ad479045f2a2dc4ced80550"}, - "decimal": {:hex, :decimal, "1.9.0", "83e8daf59631d632b171faabafb4a9f4242c514b0a06ba3df493951c08f64d07", [:mix], [], "hexpm", "b1f2343568eed6928f3e751cf2dffde95bfaa19dd95d09e8a9ea92ccfd6f7d85"}, + "bunt": {:hex, :bunt, "0.2.1", "e2d4792f7bc0ced7583ab54922808919518d0e57ee162901a16a1b6664ef3b14", [:mix], [], "hexpm", "a330bfb4245239787b15005e66ae6845c9cd524a288f0d141c148b02603777a5"}, + "cc_precompiler": {:hex, :cc_precompiler, "0.1.10", "47c9c08d8869cf09b41da36538f62bc1abd3e19e41701c2cea2675b53c704258", [:mix], [{:elixir_make, "~> 0.7", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "f6e046254e53cd6b41c6bacd70ae728011aa82b2742a80d6e2214855c6e06b22"}, + "db_connection": {:hex, :db_connection, "2.6.0", "77d835c472b5b67fc4f29556dee74bf511bbafecdcaf98c27d27fa5918152086", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c2f992d15725e721ec7fbc1189d4ecdb8afef76648c746a8e1cad35e3b8a35f3"}, + "decimal": {:hex, :decimal, "2.1.1", "5611dca5d4b2c3dd497dec8f68751f1f1a54755e8ed2a966c2633cf885973ad6", [:mix], [], "hexpm", "53cfe5f497ed0e7771ae1a475575603d77425099ba5faef9394932b35020ffcc"}, "earmark": {:hex, :earmark, "1.3.6", "ce1d0675e10a5bb46b007549362bd3f5f08908843957687d8484fe7f37466b19", [:mix], [], "hexpm", "1476378df80982302d5a7857b6a11dd0230865057dec6d16544afecc6bc6b4c2"}, - "earmark_parser": {:hex, :earmark_parser, "1.4.15", "b29e8e729f4aa4a00436580dcc2c9c5c51890613457c193cc8525c388ccb2f06", [:mix], [], "hexpm", "044523d6438ea19c1b8ec877ec221b008661d3c27e3b848f4c879f500421ca5c"}, - "ecto": {:hex, :ecto, "2.2.11", "4bb8f11718b72ba97a2696f65d247a379e739a0ecabf6a13ad1face79844791c", [:mix], [{:db_connection, "~> 1.1", [hex: :db_connection, repo: "hexpm", optional: true]}, {:decimal, "~> 1.2", [hex: :decimal, repo: "hexpm", optional: false]}, {:mariaex, "~> 0.8.0", [hex: :mariaex, repo: "hexpm", optional: true]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, repo: "hexpm", optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.13.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm", "e7e50d6bb2254777d304bad064af31cc1d76a3bf043bbd9913990c450d428109"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, + "ecto": {:hex, :ecto, "3.11.2", "e1d26be989db350a633667c5cda9c3d115ae779b66da567c68c80cfb26a8c9ee", [:mix], [{:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "3c38bca2c6f8d8023f2145326cc8a80100c3ffe4dcbd9842ff867f7fc6156c65"}, + "ecto_sql": {:hex, :ecto_sql, "3.11.1", "e9abf28ae27ef3916b43545f9578b4750956ccea444853606472089e7d169470", [:mix], [{:db_connection, "~> 2.4.1 or ~> 2.5", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.11.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.6.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.16.0 or ~> 0.17.0 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "ce14063ab3514424276e7e360108ad6c2308f6d88164a076aac8a387e1fea634"}, + "ecto_sqlite3": {:hex, :ecto_sqlite3, "0.15.1", "40f2fbd9e246455f8c42e7e0a77009ef806caa1b3ce6f717b2a0a80e8432fcfd", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "~> 3.11", [hex: :ecto, repo: "hexpm", optional: false]}, {:ecto_sql, "~> 3.11", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:exqlite, "~> 0.19", [hex: :exqlite, repo: "hexpm", optional: false]}], "hexpm", "28b16e177123c688948357176662bf9ff9084daddf950ef5b6baf3ee93707064"}, + "elixir_make": {:hex, :elixir_make, "0.8.3", "d38d7ee1578d722d89b4d452a3e36bcfdc644c618f0d063b874661876e708683", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.0", [hex: :certifi, repo: "hexpm", optional: true]}], "hexpm", "5c99a18571a756d4af7a4d89ca75c28ac899e6103af6f223982f09ce44942cc9"}, "erlzmq": {:hex, :erlzmq, "3.0.1", "bbd882d65f6c8f9d29c0f2502df2e77531de9622b47eaeaac5178d8a254dcc57", [:rebar3], [], "hexpm", "1a2289ec0f8b56629662182cc93d6173457eb78e38ab069d09d43408041edc54"}, - "esqlite": {:hex, :esqlite, "0.4.1", "ba5d0bab6b9c8432ffe1bf12fee8e154a50f1c3c40eadc3a9c870c23ca94d961", [:rebar3], [], "hexpm", "3584ca33172f4815ce56e96eed9835f5d8c987a9000fbc8c376c86acef8bf965"}, - "ex_doc": {:hex, :ex_doc, "0.25.1", "4b736fa38dc76488a937e5ef2944f5474f3eff921de771b25371345a8dc810bc", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "3200b0a69ddb2028365281fbef3753ea9e728683863d8cdaa96580925c891f67"}, + "ex_doc": {:hex, :ex_doc, "0.31.2", "8b06d0a5ac69e1a54df35519c951f1f44a7b7ca9a5bb7a260cd8a174d6322ece", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.1", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "317346c14febaba9ca40fd97b5b5919f7751fb85d399cc8e7e8872049f37e0af"}, "excoveralls": {:hex, :excoveralls, "0.18.0", "b92497e69465dc51bc37a6422226ee690ab437e4c06877e836f1c18daeb35da9", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "1109bb911f3cb583401760be49c02cbbd16aed66ea9509fc5479335d284da60b"}, + "exqlite": {:hex, :exqlite, "0.20.0", "99b711eb1a3309b380ff54901d3d7db8e7afaf4b68a34398a69e1fa1b9b2054e", [:make, :mix], [{:cc_precompiler, "~> 0.1", [hex: :cc_precompiler, repo: "hexpm", optional: false]}, {:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:elixir_make, "~> 0.8", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "385ed37b8317101b7f9b58333910798ebe395e77ee6ca261be74a1a06b3d61f6"}, "floki": {:hex, :floki, "0.29.0", "b1710d8c93a2f860dc2d7adc390dd808dc2fb8f78ee562304457b75f4c640881", [:mix], [{:html_entities, "~> 0.5.0", [hex: :html_entities, repo: "hexpm", optional: false]}], "hexpm", "008585ce64b9f74c07d32958ec9866f4b8a124bf4da1e2941b28e41384edaaad"}, - "hackney": {:hex, :hackney, "1.17.4", "99da4674592504d3fb0cfef0db84c3ba02b4508bae2dff8c0108baa0d6e0977c", [:rebar3], [{:certifi, "~>2.6.1", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~>6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~>1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.3.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~>1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "de16ff4996556c8548d512f4dbe22dd58a587bf3332e7fd362430a7ef3986b16"}, "html_entities": {:hex, :html_entities, "0.5.2", "9e47e70598da7de2a9ff6af8758399251db6dbb7eebe2b013f2bbd2515895c3c", [:mix], [], "hexpm", "c53ba390403485615623b9531e97696f076ed415e8d8058b1dbaa28181f4fdcc"}, - "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, "inch_ex": {:hex, :inch_ex, "2.0.0", "24268a9284a1751f2ceda569cd978e1fa394c977c45c331bb52a405de544f4de", [:mix], [{:bunt, "~> 0.2", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "96d0ec5ecac8cf63142d02f16b7ab7152cf0f0f1a185a80161b758383c9399a8"}, "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, - "makeup": {:hex, :makeup, "1.0.5", "d5a830bc42c9800ce07dd97fa94669dfb93d3bf5fcf6ea7a0c67b2e0e4a7f26c", [:mix], [{:nimble_parsec, "~> 0.5 or ~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cfa158c02d3f5c0c665d0af11512fed3fba0144cf1aadee0f2ce17747fba2ca9"}, - "makeup_elixir": {:hex, :makeup_elixir, "0.15.1", "b5888c880d17d1cc3e598f05cdb5b5a91b7b17ac4eaf5f297cb697663a1094dd", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.1", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "db68c173234b07ab2a07f645a5acdc117b9f99d69ebf521821d89690ae6c6ec8"}, - "makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"}, - "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"}, - "mimerl": {:hex, :mimerl, "1.2.0", "67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3", [:rebar3], [], "hexpm", "f278585650aa581986264638ebf698f8bb19df297f66ad91b18910dfc6e19323"}, - "nimble_parsec": {:hex, :nimble_parsec, "1.1.0", "3a6fca1550363552e54c216debb6a9e95bd8d32348938e13de5eda962c0d7f89", [:mix], [], "hexpm", "08eb32d66b706e913ff748f11694b17981c0b04a33ef470e33e11b3d3ac8f54b"}, - "parse_trans": {:hex, :parse_trans, "3.3.1", "16328ab840cc09919bd10dab29e431da3af9e9e7e7e6f0089dd5a2d2820011d8", [:rebar3], [], "hexpm", "07cd9577885f56362d414e8c4c4e6bdf10d43a8767abb92d24cbe8b24c54888b"}, + "makeup": {:hex, :makeup, "1.1.1", "fa0bc768698053b2b3869fa8a62616501ff9d11a562f3ce39580d60860c3a55e", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5dc62fbdd0de44de194898b6710692490be74baa02d9d108bc29f007783b0b48"}, + "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, + "makeup_erlang": {:hex, :makeup_erlang, "0.1.5", "e0ff5a7c708dda34311f7522a8758e23bfcd7d8d8068dc312b5eb41c6fd76eba", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "94d2e986428585a21516d7d7149781480013c56e30c6a233534bedf38867a59a"}, + "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, "poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm", "fec8660eb7733ee4117b85f55799fd3833eb769a6df71ccf8903e8dc5447cfce"}, - "poolboy": {:hex, :poolboy, "1.5.2", "392b007a1693a64540cead79830443abf5762f5d30cf50bc95cb2c1aaafa006b", [:rebar3], [], "hexpm", "dad79704ce5440f3d5a3681c8590b9dc25d1a561e8f5a9c995281012860901e3"}, "quickrand": {:hex, :quickrand, "1.7.5", "e3086a153eb13a057fc19192d05e2d4c6bb2bdbb55746a699beae9847ac17ca8", [:rebar3], [], "hexpm", "6a1da81fe098c0dfcfb55c5e35c20be430128e88bbfa03d18fcf9e0ee8e342d7"}, - "sbroker": {:hex, :sbroker, "1.0.0", "28ff1b5e58887c5098539f236307b36fe1d3edaa2acff9d6a3d17c2dcafebbd0", [:rebar3], [], "hexpm", "ba952bfa35b374e1e5d84bc5f5efe8360c6f99dc93b3118f714a9a2dff6c9e19"}, - "sqlite_ecto2": {:hex, :sqlite_ecto2, "2.4.1", "a292b807c7670f1c2c136f7224934bf5929c998ea1b9ded63b710f3dd5140e4c", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:db_connection, "~> 1.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "2.2.11", [hex: :ecto, repo: "hexpm", optional: false]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.13", [hex: :postgrex, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: false]}, {:sqlitex, "~> 1.6", [hex: :sqlitex, repo: "hexpm", optional: false]}], "hexpm", "19358813676eb058d1b0630cd6914817e7dbf001022c49159510241f14f0eea7"}, - "sqlitex": {:hex, :sqlitex, "1.7.1", "022d477aab2ae999c43ae6fbd1782ff1457e0e95c251c7b5fa6f7b7b102040ff", [:mix], [{:decimal, "~> 1.7", [hex: :decimal, repo: "hexpm", optional: false]}, {:esqlite, "~> 0.4", [hex: :esqlite, repo: "hexpm", optional: false]}], "hexpm", "ef16cda37b151136a47a6c0830dc9eb5e5f8f5f029b649e9f3a58a6eed634b80"}, - "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"}, - "unicode_util_compat": {:hex, :unicode_util_compat, "0.7.0", "bc84380c9ab48177092f43ac89e4dfa2c6d62b40b8bd132b1059ecc7232f9a78", [:rebar3], [], "hexpm", "25eee6d67df61960cf6a794239566599b09e17e668d3700247bc498638152521"}, + "telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"}, "uuid": {:hex, :uuid_erl, "1.7.5", "3862ff9a21c42566dfd0376b97512fa202922897129e09a05e2afa0d9cafd97a", [:rebar3], [{:quickrand, "~> 1.7.5", [hex: :quickrand, repo: "hexpm", optional: false]}], "hexpm", "6529f1c5d8c6b796374318fd1966659faa6ee832c914e93b1deb1d4701694aa9"}, - "uuid_erl": {:hex, :uuid_erl, "1.7.5", "3862ff9a21c42566dfd0376b97512fa202922897129e09a05e2afa0d9cafd97a", [:rebar3], [{:quickrand, "~> 1.7.5", [hex: :quickrand, repo: "hexpm", optional: false]}], "hexpm", "6529f1c5d8c6b796374318fd1966659faa6ee832c914e93b1deb1d4701694aa9"}, } diff --git a/test/boyle_test.exs b/test/boyle_test.exs index 020a94b..f1dff2e 100644 --- a/test/boyle_test.exs +++ b/test/boyle_test.exs @@ -6,7 +6,7 @@ defmodule IElixir.BoyleTest do setup_all do {:ok, _} = Boyle.mk("boyle_test_env") :ok = Boyle.activate("boyle_test_env") - :ok = Boyle.install({:decimal, "~> 1.7.0", app: false}) + :ok = Boyle.install({:decimal, "~> 2.0", app: false}) :ok = Boyle.deactivate() {:ok, _} = Boyle.mk("test_env_for_removal") diff --git a/test/test_connection_file b/test/test_connection_file index f8f6a2a..dc4a126 100644 --- a/test/test_connection_file +++ b/test/test_connection_file @@ -1,11 +1,11 @@ { - "stdin_port": 59547, - "ip": "127.0.0.1", - "control_port": 42483, - "hb_port": 44970, - "signature_scheme": "hmac-sha256", - "key": "7534565f-e742-40f3-85b4-bf4e5f35390a", - "shell_port": 52657, - "transport": "tcp", + "stdin_port": 59547, + "ip": "127.0.0.1", + "control_port": 42483, + "hb_port": 44970, + "signature_scheme": "hmac-sha256", + "key": "7534565f-e742-40f3-85b4-bf4e5f35390a", + "shell_port": 52657, + "transport": "tcp", "iopub_port": 46793 -} \ No newline at end of file +}