Commit 8af1928d authored by Mikko Ahlroth's avatar Mikko Ahlroth

Version 1.2.0. Modify level algorithm

Levels were scaled back to prevent level inflation.
Changes and source page were combined.
Corrected the required Elixir version in mix.exs.
parent 4d539fb4
......@@ -3,7 +3,7 @@ defmodule CodeStats.XPCalculator do
Calculations for levels based on XP.
"""
@level_factor 0.05
@level_factor 0.025
@doc """
Get the level based on given XP.
......
......@@ -3,8 +3,8 @@ defmodule CodeStats.Mixfile do
def project do
[app: :code_stats,
version: "1.1.1",
elixir: "~> 1.0",
version: "1.2.0",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
......
......@@ -76,10 +76,6 @@ defmodule CodeStats.PageController do
render(conn, "plugins.html")
end
def source(conn, _params) do
render(conn, "source.html")
end
def changes(conn, _params) do
render(conn, "changes.html")
end
......
......@@ -30,7 +30,6 @@ defmodule CodeStats.Router do
get "/api-docs", PageController, :api_docs
get "/tos", PageController, :terms
get "/plugins", PageController, :plugins
get "/source", PageController, :source
get "/changes", PageController, :changes
get "/login", AuthController, :render_login
......
......@@ -50,7 +50,7 @@
<p>
<center>
<a href="<%= page_path(@conn, :source)%>"><%= unquote(Mix.Project.config[:version]) %></a>
<a href="<%= page_path(@conn, :changes)%>"><%= unquote(Mix.Project.config[:version]) %></a>
<%= CodeStats.RequestTime.calculate_time(@conn) %>
......@@ -59,8 +59,6 @@
<a href="<%= page_path(@conn, :terms) %>">Legal</a>
<a href="<%= page_path(@conn, :plugins) %>">Plugins</a>
<a href="<%= page_path(@conn, :changes) %>">Changes</a>
</center>
</p>
</footer>
......
<h2>Source</h2>
<p>
Code::Stats and its plugins are open source software, licensed under the 3-clause BSD licence. You can study the inner workings of the code and suggest improvements. You are also free to fork the code.
</p>
<h3>Code repositories</h3>
<p>
<ul>
<li>
<strong>Code::Stats main site:</strong>
<a href="https://github.com/Nicd/code-stats">https://github.com/Nicd/code-stats</a>
</li>
<li>
<strong>Atom plugin:</strong>
<a href="https://github.com/Nicd/code-stats-atom">https://github.com/Nicd/code-stats-atom</a>
</li>
</ul>
</p>
<hr />
<h2>Changelog</h2>
<h3>1.2.0 – Scaling back levels</h3>
<p>
<ul>
<li>Scaled back the level algorithm to grant less levels. XP is not affected. The aim is to prevent an inflation of levels. The level algorithm may be modified further later on.</li>
<li>Combined the source and changes page.</li>
</ul>
</p>
<h3>1.1.1 – Clock drift</h3>
<ul>
<li>Fixed a case where clock drift either on the client or the server caused pulses to not be accepted.</li>
</ul>
<p>
<ul>
<li>Fixed a case where clock drift either on the client or the server caused pulses to not be accepted.</li>
</ul>
</p>
<h3>1.1.0 – First public release</h3>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment