From 86058c9a8883c5f6c71f1d3553ca52f658fdf79e Mon Sep 17 00:00:00 2001 From: lain Date: Tue, 27 Mar 2018 20:09:01 +0200 Subject: [PATCH] Return version in instance endpoint, set version to 0.9.0. --- config/config.exs | 4 ++-- mix.exs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.exs b/config/config.exs index a7429fcdf..b41551895 100644 --- a/config/config.exs +++ b/config/config.exs @@ -39,9 +39,9 @@ config :pleroma, :ostatus, Pleroma.Web.OStatus config :pleroma, :httpoison, Pleroma.HTTP version = with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do - "Pleroma #{String.trim(version)}" + "Pleroma #{Mix.Project.config[:version]} #{String.trim(version)}" else - _ -> "Pleroma dev" + _ -> "Pleroma #{Mix.Project.config[:version]} dev" end # Configures http settings, upstream proxy etc. diff --git a/mix.exs b/mix.exs index 7320ac543..6a518578d 100644 --- a/mix.exs +++ b/mix.exs @@ -3,7 +3,7 @@ defmodule Pleroma.Mixfile do def project do [app: :pleroma, - version: "0.0.1", + version: "0.9.0", elixir: "~> 1.4", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, -- 2.45.2