mirror of
https://github.com/we-promise/sure
synced 2026-04-25 17:15:07 +02:00
* Replace Maybe for Sure in select code areas * Make sure passwords are consistent * Remove (admin|member) from demo data first name * Database and schema names finally to `sure` * Fix broken test * Another (benchmarking) database name to `sure_*` * More rebranding to Sure * Missed this Maybe mention in the same page * Random nitpicks and more Maybes * Demo data accounts and more Maybes * Test data account updates * Impersonation test accounts * Consistency with `compose.example.yml`
21 lines
290 B
Ruby
21 lines
290 B
Ruby
module Sure
|
|
class << self
|
|
def version
|
|
Semver.new(semver)
|
|
end
|
|
|
|
def commit_sha
|
|
if Rails.env.production?
|
|
ENV["BUILD_COMMIT_SHA"]
|
|
else
|
|
`git rev-parse HEAD`.chomp
|
|
end
|
|
end
|
|
|
|
private
|
|
def semver
|
|
"0.6.3"
|
|
end
|
|
end
|
|
end
|