From c5cc3a82da700d79f026e599a6629f96c171c383 Mon Sep 17 00:00:00 2001 From: msdundar Date: Wed, 8 Aug 2018 03:36:13 +0300 Subject: [PATCH] added latest tag as app version to footer --- app/views/layouts/shared/_footer.html.erb | 4 +++- config/initializers/git_version.rb | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 config/initializers/git_version.rb diff --git a/app/views/layouts/shared/_footer.html.erb b/app/views/layouts/shared/_footer.html.erb index f13ea1ff4..65f3036ac 100644 --- a/app/views/layouts/shared/_footer.html.erb +++ b/app/views/layouts/shared/_footer.html.erb @@ -8,7 +8,9 @@
- Nokul + <%= link_to 'https://github.com/omu/nokul' do %> + Nokul <%= Nokul::VERSION %> + <% end %>  © 2018 BAUM
diff --git a/config/initializers/git_version.rb b/config/initializers/git_version.rb new file mode 100644 index 000000000..2221acea8 --- /dev/null +++ b/config/initializers/git_version.rb @@ -0,0 +1,3 @@ +module Nokul + VERSION = `git describe --tags --abbrev=0`.chomp +end