Skip to content

Commit

Permalink
feat: add rails app version
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Jan 3, 2025
1 parent 27acbd7 commit 73d02ae
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 91 deletions.
8 changes: 5 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

gem "dotenv-rails", require: "dotenv/rails-now"
gem "dotenv-rails", require: "dotenv/load"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
rails_version = "~> 7.2"
Expand All @@ -16,6 +16,8 @@ gem "sidekiq"
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

gem "rails_app_version"

group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri mingw x64_mingw ]
Expand All @@ -42,7 +44,7 @@ group :development, :test do
end

group :development do
gem "capistrano-sidekiq", require: false, github: "seuros/capistrano-sidekiq"
gem "capistrano3-puma", require: false, github: "seuros/capistrano-puma"
gem "capistrano-sidekiq", require: false
gem "capistrano3-puma", require: false
end

179 changes: 91 additions & 88 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
GIT
remote: https://github.com/seuros/capistrano-puma.git
revision: 9cd5e5df4dec324d75493d24b498d91285ddea9e
specs:
capistrano3-puma (6.0.0.beta.1)
capistrano (~> 3.7)
capistrano-bundler
puma (>= 5.1, < 7.0)

GIT
remote: https://github.com/seuros/capistrano-sidekiq.git
revision: c8e1766b39478d5e9cfe10100d648dfd28c6c06b
specs:
capistrano-sidekiq (3.0.0.alpha.2)
capistrano (>= 3.9.0)
capistrano-bundler
sidekiq (>= 6.0.6)

GEM
remote: https://rubygems.org/
specs:
actionpack (7.2.2)
actionview (= 7.2.2)
activesupport (= 7.2.2)
actionpack (7.2.2.1)
actionview (= 7.2.2.1)
activesupport (= 7.2.2.1)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4, < 3.2)
Expand All @@ -30,19 +12,19 @@ GEM
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actionview (7.2.2)
activesupport (= 7.2.2)
actionview (7.2.2.1)
activesupport (= 7.2.2.1)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activemodel (7.2.2)
activesupport (= 7.2.2)
activerecord (7.2.2)
activemodel (= 7.2.2)
activesupport (= 7.2.2)
activemodel (7.2.2.1)
activesupport (= 7.2.2.1)
activerecord (7.2.2.1)
activemodel (= 7.2.2.1)
activesupport (= 7.2.2.1)
timeout (>= 0.4.0)
activesupport (7.2.2)
activesupport (7.2.2.1)
base64
benchmark (>= 0.3)
bigdecimal
Expand All @@ -60,16 +42,24 @@ GEM
sshkit (>= 1.6.1, != 1.7.0)
ansi (1.5.0)
base64 (0.2.0)
benchmark (0.3.0)
bigdecimal (3.1.8)
benchmark (0.4.0)
bigdecimal (3.1.9)
builder (3.3.0)
capistrano (3.19.1)
capistrano (3.19.2)
airbrussh (>= 1.0.0)
i18n
rake (>= 10.0.0)
sshkit (>= 1.9.0)
capistrano-bundler (2.1.1)
capistrano (~> 3.1)
capistrano-sidekiq (3.0.0)
capistrano (>= 3.9.0)
capistrano-bundler
sidekiq (>= 6.0.6)
capistrano3-puma (6.0.0)
capistrano (~> 3.7)
capistrano-bundler
puma (>= 5.1, < 7.0)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
crack (1.0.0)
Expand All @@ -82,107 +72,119 @@ GEM
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
debug (1.9.2)
date (3.4.1)
debug (1.10.0)
irb (~> 1.10)
reline (>= 0.3.8)
docile (1.4.1)
dotenv (3.1.4)
dotenv-rails (3.1.4)
dotenv (= 3.1.4)
dotenv (3.1.7)
dotenv-rails (3.1.7)
dotenv (= 3.1.7)
railties (>= 6.1)
drb (2.2.1)
erubi (1.13.0)
erubi (1.13.1)
fabrication (2.31.0)
hashdiff (1.1.1)
hashdiff (1.1.2)
hashie (5.0.0)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.14.1)
io-console (0.8.0)
irb (1.14.3)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
logger (1.6.1)
loofah (2.23.1)
logger (1.6.4)
loofah (2.24.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
maxitest (5.7.1)
maxitest (5.8.0)
minitest (>= 5.14.0, < 5.26.0)
minitest (5.25.1)
mini_portile2 (2.8.8)
minitest (5.25.4)
minitest-reporters (1.7.1)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
minitest-spec-rails (7.3.0)
minitest-spec-rails (7.4.1)
minitest (>= 5.0)
railties (>= 4.1)
minitest-stackprof (0.2.0)
minitest (>= 5.0)
stackprof (>= 0.2.7)
mocha (2.5.0)
mocha (2.7.1)
ruby2_keywords (>= 0.0.5)
net-scp (4.0.0)
net-ssh (>= 2.6.5, < 8.0.0)
net-sftp (4.0.0)
net-ssh (>= 5.0.0, < 8.0.0)
net-ssh (7.3.0)
nio4r (2.7.4)
nokogiri (1.16.7-aarch64-linux)
nokogiri (1.18.1)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.18.1-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.1-aarch64-linux-musl)
racc (~> 1.4)
nokogiri (1.18.1-arm-linux-gnu)
racc (~> 1.4)
nokogiri (1.16.7-arm-linux)
nokogiri (1.18.1-arm-linux-musl)
racc (~> 1.4)
nokogiri (1.16.7-arm64-darwin)
nokogiri (1.18.1-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86-linux)
nokogiri (1.18.1-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-darwin)
nokogiri (1.18.1-x86_64-linux-gnu)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
nokogiri (1.18.1-x86_64-linux-musl)
racc (~> 1.4)
ostruct (0.6.0)
psych (5.1.2)
ostruct (0.6.1)
psych (5.2.2)
date
stringio
public_suffix (6.0.1)
puma (6.4.3)
puma (6.5.0)
nio4r (~> 2.0)
racc (1.8.1)
rack (3.1.8)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack-test (2.2.0)
rack (>= 1.3)
rackup (2.2.0)
rackup (2.2.1)
rack (>= 3)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
rails-html-sanitizer (1.6.2)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.2.2)
actionpack (= 7.2.2)
activesupport (= 7.2.2)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
rails_app_version (1.2.4)
railties (>= 7.0, < 8.1)
railties (7.2.2.1)
actionpack (= 7.2.2.1)
activesupport (= 7.2.2.1)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rake (13.2.1)
rdoc (6.7.0)
rdoc (6.10.0)
psych (>= 4.0.0)
redis-client (0.22.2)
redis-client (0.23.0)
connection_pool
reline (0.5.10)
reline (0.6.0)
io-console (~> 0.5)
rexml (3.3.9)
rexml (3.4.0)
ruby-prof (1.7.1)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
sd_notify (0.1.1)
securerandom (0.3.1)
selenium-webdriver (4.26.0)
securerandom (0.4.1)
selenium-webdriver (4.27.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
Expand All @@ -194,7 +196,7 @@ GEM
shoulda-context (2.0.0)
shoulda-matchers (4.5.1)
activesupport (>= 4.2.0)
sidekiq (7.3.4)
sidekiq (7.3.7)
connection_pool (>= 2.3.0)
logger
rack (>= 2.2.4)
Expand All @@ -213,35 +215,35 @@ GEM
sqlite3
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sqlite3 (2.2.0-aarch64-linux-gnu)
sqlite3 (2.2.0-aarch64-linux-musl)
sqlite3 (2.2.0-arm-linux-gnu)
sqlite3 (2.2.0-arm-linux-musl)
sqlite3 (2.2.0-arm64-darwin)
sqlite3 (2.2.0-x86-linux-gnu)
sqlite3 (2.2.0-x86-linux-musl)
sqlite3 (2.2.0-x86_64-darwin)
sqlite3 (2.2.0-x86_64-linux-gnu)
sqlite3 (2.2.0-x86_64-linux-musl)
sqlite3 (2.5.0-aarch64-linux-gnu)
sqlite3 (2.5.0-aarch64-linux-musl)
sqlite3 (2.5.0-arm-linux-gnu)
sqlite3 (2.5.0-arm-linux-musl)
sqlite3 (2.5.0-arm64-darwin)
sqlite3 (2.5.0-x86-linux-gnu)
sqlite3 (2.5.0-x86-linux-musl)
sqlite3 (2.5.0-x86_64-darwin)
sqlite3 (2.5.0-x86_64-linux-gnu)
sqlite3 (2.5.0-x86_64-linux-musl)
sshkit (1.23.2)
base64
net-scp (>= 1.1.2)
net-sftp (>= 2.1.2)
net-ssh (>= 2.8.0)
ostruct
stackprof (0.2.26)
stringio (3.1.1)
stringio (3.1.2)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
test-prof (1.4.2)
test-prof (1.4.3)
thor (1.3.2)
timecop (0.9.10)
timeout (0.4.1)
trailblazer-activity (0.16.3)
timeout (0.4.3)
trailblazer-activity (0.17.0)
trailblazer-context (~> 0.5.0)
trailblazer-option (~> 0.1.0)
trailblazer-activity-dsl-linear (1.2.5)
trailblazer-activity (>= 0.16.0, < 0.17.0)
trailblazer-activity-dsl-linear (1.2.6)
trailblazer-activity (>= 0.17.0, < 0.18.0)
trailblazer-declarative (>= 0.0.1, < 0.1.0)
trailblazer-context (0.5.1)
hashie (>= 3.0.0)
Expand All @@ -254,7 +256,7 @@ GEM
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0)
useragent (0.16.10)
useragent (0.16.11)
vcr (6.3.1)
base64
webmock (3.24.0)
Expand Down Expand Up @@ -282,8 +284,8 @@ PLATFORMS

DEPENDENCIES
actionpack (~> 7.2)
capistrano-sidekiq!
capistrano3-puma!
capistrano-sidekiq
capistrano3-puma
database_cleaner
debug
dotenv-rails
Expand All @@ -294,6 +296,7 @@ DEPENDENCIES
minitest-stackprof
mocha
puma
rails_app_version
railties (~> 7.2)
ruby-prof
sd_notify
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0
3 changes: 3 additions & 0 deletions config/app_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
shared:
middleware:
enabled: true

0 comments on commit 73d02ae

Please sign in to comment.