Commit c41264cd authored by mbajur's avatar mbajur
Browse files

Add version info

parent f42746f9
footer.text-center
p powered by <a href="https://gitlab.com/mbajur/prismo"><span></span> Prismo</a>
p powered by <a href="https://gitlab.com/mbajur/prismo"><span></span> Prismo</a> #{Prismo::Version}
......@@ -16,6 +16,8 @@ require "sprockets/railtie"
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
require_relative '../lib/prismo/version'
module Prismo
class Application < Rails::Application
port = ENV.fetch('PORT') { 3000 }
......
module Prismo
module Version
module_function
def major
0
end
def minor
0
end
def patch
1
end
def pre
nil
end
def flags
nil
end
def to_a
[major, minor, patch, pre].compact
end
def to_s
[to_a.join('.'), flags].join
end
end
end
Supports Markdown
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