Explorar el Código

Add version, CCP copyright info.

old-ruby
Ben Kurtovic hace 9 años
padre
commit
35f0a27bee
Se han modificado 4 ficheros con 10 adiciones y 8 borrados
  1. +2
    -4
      app/helpers/application_helper.rb
  2. +1
    -1
      app/views/shared/_footer.html.erb
  3. +0
    -3
      config/routes.rb
  4. +7
    -0
      lib/calefaction/version.rb

+ 2
- 4
app/helpers/application_helper.rb Ver fichero

@@ -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

+ 1
- 1
app/views/shared/_footer.html.erb Ver fichero

@@ -1 +1 @@
<p>Copyright &copy; <%= get_copyright_year %> [copyright holders] &bull; Running Calefaction <%= get_project_version %> &bull; [CCP Copyright Info]</p>
<p>Copyright &copy; <%= get_copyright_year %> [copyright holders] &bull; Running Calefaction <%= Calefaction::Version::VERSION_STRING %> &bull; <a href="//eveonline.com">EVE Online</a> and all related trademarks are property of <a href="//ccpgames.com">CCP hf</a>.</p>

+ 0
- 3
config/routes.rb Ver fichero

@@ -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



+ 7
- 0
lib/calefaction/version.rb Ver fichero

@@ -0,0 +1,7 @@
module Calefaction::Version
MAJOR = 0
MINOR = 1
PATCH = 0
RELEASE = false
VERSION_STRING = "#{MAJOR}.#{MINOR}.#{PATCH}#{"-dev" unless RELEASE}"
end

Cargando…
Cancelar
Guardar