Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
/tmp
/log
/public
/vendor/*
.byebug_history
/fixtures/
62 changes: 62 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
AllCops:
DisplayCopNames: true
Exclude:
- "bin/**"
- "db/schema.rb"
- "db/migrate/**"
- "vendor/**/*"
- "node_modules/**/*"
NewCops: enable
TargetRailsVersion: 6
TargetRubyVersion: 3.2

Layout/LineLength:
Enabled: false

Metrics/AbcSize:
Enabled: false

Metrics/ModuleLength:
Enabled: false

Metrics/BlockLength:
Enabled: false

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/ClassLength:
Enabled: false

Metrics/MethodLength:
Enabled: false

Metrics/PerceivedComplexity:
Enabled: false

Rails:
Enabled: true

Rails/UnknownEnv:
Environments:
- production
- development
- staging
- test

require:
- rubocop-performance
- rubocop-rails

Style/AsciiComments:
Enabled: false

Style/ClassAndModuleChildren:
Enabled: false

Style/Documentation:
Enabled: false

Style/IfUnlessModifier:
Enabled: false
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.3
3.3.4
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ruby:3.3.4

ENV NODE_VERSION 19.x

RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -

RUN apt-get update \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*

ENV PROJECT_ROOT /app
RUN mkdir -p ${PROJECT_ROOT}

WORKDIR ${PROJECT_ROOT}

ENV BUNDLE_APP_CONFIG ${PROJECT_ROOT}/bundle/config
ENV GEM_HOME ${PROJECT_ROOT}/vendor/bundle
ENV BUNDLE_PATH ${GEM_HOME}
44 changes: 35 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,52 @@
# frozen_string_literal: true

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.3'
ruby '3.3.4'

gem 'rails', '~> 5.2.3'
gem 'pg', '>= 0.18', '< 2.0'
gem 'puma', '~> 3.11'
gem 'bootsnap', '>= 1.1.0', require: false
gem 'activerecord-import'
gem 'bootsnap', require: false
gem 'flamegraph'
gem 'json-stream'
gem 'kaminari'
gem 'meta_request'
gem 'pg'
gem 'puma'
gem 'rack-mini-profiler'
gem 'rails', '~> 7'
gem 'rubocop-rails', require: false
gem 'sprockets-rails'
gem 'yajl-ruby', require: 'yajl'
gem "pghero"

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'benchmark'
gem 'bullet'
gem 'byebug', platforms: %i[mri mingw x64_mingw]
gem 'memory_profiler'
gem 'rubocop-performance'
gem 'ruby-prof'
gem 'stackprof'
gem 'strong_migrations'
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'listen'
gem 'web-console'
end

group :test do
gem 'minitest-power_assert'
gem 'capybara'
gem 'selenium-webdriver'
# Easy installation and use of web drivers to run system tests with browsers
gem 'webdrivers'
gem 'sqlite3'
gem 'rspec-benchmark'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
Loading