diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e03bb8d..bcba2cd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,3 +1,5 @@ +require 'calefaction/version' + module ApplicationHelper def get_title(title = '') @@ -10,8 +12,4 @@ module ApplicationHelper year = Time.now.year year > start ? "#{start}–#{year}" : start end - - def get_project_version - '0.1' # todo - end end diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb index 98d8bca..1ba0bc5 100644 --- a/app/views/shared/_footer.html.erb +++ b/app/views/shared/_footer.html.erb @@ -1 +1 @@ -

Copyright © <%= get_copyright_year %> [copyright holders] • Running Calefaction <%= get_project_version %> • [CCP Copyright Info]

+

Copyright © <%= get_copyright_year %> [copyright holders] • Running Calefaction <%= Calefaction::Version::VERSION_STRING %> • EVE Online and all related trademarks are property of CCP hf.

diff --git a/config/routes.rb b/config/routes.rb index 648126f..5b723ba 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,9 +6,6 @@ Rails.application.routes.draw do get '/admin' => 'admin#index' - # Example of regular route: - # get 'products/:id' => 'catalog#view' - # Example of named route that can be invoked with purchase_url(id: product.id) # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase diff --git a/lib/calefaction/version.rb b/lib/calefaction/version.rb new file mode 100644 index 0000000..eb9dddb --- /dev/null +++ b/lib/calefaction/version.rb @@ -0,0 +1,7 @@ +module Calefaction::Version + MAJOR = 0 + MINOR = 1 + PATCH = 0 + RELEASE = false + VERSION_STRING = "#{MAJOR}.#{MINOR}.#{PATCH}#{"-dev" unless RELEASE}" +end