Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TeDomum
Prismo
Commits
c41264cd
Commit
c41264cd
authored
Oct 29, 2018
by
mbajur
Browse files
Add version info
parent
f42746f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/views/shared/_footer.html.slim
View file @
c41264cd
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
}
config/application.rb
View file @
c41264cd
...
...
@@ -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
}
...
...
lib/prismo/version.rb
0 → 100644
View file @
c41264cd
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment