Skip to content

Commit

Permalink
App
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-2112 committed Dec 12, 2022
0 parents commit 63f75d3
Show file tree
Hide file tree
Showing 260 changed files with 12,821 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Mark the database schema as having been generated.
db/schema.rb linguist-generated

# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-*

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep

# Ignore uploaded files in development.
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep

/public/assets

# Ignore master key for decrypting credentials and more.
/config/master.key
129 changes: 129 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Rubocop setup
# Aca se agregan los cops que consideremos convenientes

# Para ejecutarlo: bundle exec rubocop

require:
- rubocop-rails

AllCops:
NewCops: enable
Exclude:
- 'vendor/**/*'
- 'config/**/*'
- 'bin/**/*'
- 'db/**/*'
- 'log/**/*'
- 'tmp/**/*'
- 'test/**/*'
- 'app/views/**/*'
- 'spec/**/*'
- 'app/controllers/**/*'
- 'app/models/**/*'
- 'app/helpers/application_helper.rb'

Style/Documentation:
Enabled: false

Metrics/MethodLength:
Max: 100

# Layout
Layout/LineLength:
Max: 120
Enabled: true
Layout/AssignmentIndentation:
Enabled: true
Layout/ClosingParenthesisIndentation:
Enabled: true
Layout/IndentationStyle:
Enabled: true
Layout/IndentationWidth:
Enabled: true
Width: 2
Layout/MultilineMethodCallIndentation:
Enabled: true
Layout/ArgumentAlignment:
Enabled: true
Layout/EmptyLinesAroundMethodBody:
Enabled: true
Layout/ArrayAlignment:
Enabled: true
Layout/EndOfLine:
Enabled: false

# Metrics
Metrics/BlockLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
# Naming
Naming/ConstantName:
Enabled: true
Naming/FileName:
Enabled: true
Naming/MethodName:
Enabled: true
Naming/AsciiIdentifiers:
Enabled: true
Naming/BlockParameterName:
Enabled: true
MinNameLength: 2
Naming/VariableName:
Enabled: true

# Style
Style/Next:
Enabled: true
Style/RedundantArgument:
Enabled: true
Style/RedundantAssignment:
Enabled: true
Style/RedundantParentheses:
Enabled: true
Style/ReturnNil:
Enabled: true
Style/SelfAssignment:
Enabled: true
Style/CombinableLoops:
Enabled: true
Style/DoubleNegation:
Enabled: true
Style/EmptyElse:
Enabled: true
Style/GuardClause:
Enabled: false

# Lint
Lint/AmbiguousAssignment:
Enabled: true
Lint/AmbiguousOperator:
Enabled: true
Lint/DuplicateMethods:
Enabled: true
Lint/RedundantWithIndex:
Enabled: true
Lint/SelfAssignment:
Enabled: true
Lint/UnreachableCode:
Enabled: true
Lint/UnreachableLoop:
Enabled: true
Lint/UnusedMethodArgument:
Enabled: true
Lint/UselessAssignment:
Enabled: true
Lint/EmptyBlock:
Enabled: true
Lint/AssignmentInCondition:
Enabled: true
Lint/EmptyExpression:
Enabled: true
Lint/ShadowedArgument:
Enabled: true
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-3.1.2
42 changes: 42 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# frozen_string_literal: true

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

ruby '3.1.2'

gem 'acts-as-messageable'
gem 'bootsnap', require: false
gem 'bootstrap', '~> 5.2.2'
gem 'devise'
gem 'erb_lint'
gem 'factory_bot_rails'
gem 'faker', '~> 1.6', '>= 1.6.6'
gem 'importmap-rails'
gem 'jbuilder'
gem 'mailboxer'
gem 'pg'
gem 'puma', '~> 5.0'
gem 'rails', '~> 7.0.3', '>= 7.0.3.1'
gem 'simplecov', require: false, group: :test
gem 'sprockets-rails'
gem 'sqlite3', '~> 1.4'
gem 'stimulus-rails'
gem 'turbo-rails'
gem 'tzinfo-data'

group :development, :test do
gem 'debug', platforms: %i[mri mingw x64_mingw]
gem 'rubocop-rails', require: false
end

group :development do
gem 'web-console'
end

group :test do
gem 'capybara'
gem 'rspec-rails'
gem 'selenium-webdriver'
gem 'webdrivers'
end
Loading

0 comments on commit 63f75d3

Please sign in to comment.