Added a better way of setting/reading the app version; fixed some of the flexbox sizing
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
3
src/appinfo.rb
Normal file
3
src/appinfo.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
module AppInfo
|
||||
VERSION = '0.1.0'
|
||||
end
|
@@ -8,7 +8,7 @@ module Helpers
|
||||
end
|
||||
|
||||
def app_version()
|
||||
`git describe --tags`.strip
|
||||
return AppInfo::VERSION
|
||||
end
|
||||
|
||||
def date_format(date)
|
||||
|
@@ -5,6 +5,8 @@ require 'sinatra/json'
|
||||
require 'sequel'
|
||||
require 'sqlite3'
|
||||
|
||||
require_relative './appinfo'
|
||||
|
||||
# Load the Sequel timestamps plugin
|
||||
Sequel::Model.plugin(:timestamps)
|
||||
# Initialize Sequel gem for database actions
|
||||
|
Reference in New Issue
Block a user