From 35f0a27bee9ec3d228629d5701505f9c8cea8a35 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 12 Mar 2015 23:46:30 -0500 Subject: [PATCH] Add version, CCP copyright info. --- app/helpers/application_helper.rb | 6 ++---- app/views/shared/_footer.html.erb | 2 +- config/routes.rb | 3 --- lib/calefaction/version.rb | 7 +++++++ 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 lib/calefaction/version.rb 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