Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
8b81505
feat: arquivo .txt com integrantes
eriqueto May 26, 2026
bf3a2ea
init: features dir
caselli05 May 26, 2026
33e3492
feat: adiciona testes bdd
eriqueto May 26, 2026
e251965
feat: adiciona modelo ER
eriqueto May 26, 2026
3abc589
bdd sprint 1
davibraganca10 May 26, 2026
c817126
feat: wiki com registros da sprint 1
eriqueto May 26, 2026
d090913
Merge pull request #1 from eriqueto/bdd-eric
eriqueto May 26, 2026
a637a09
Merge pull request #2 from eriqueto/bdd/davibraganca
eriqueto May 26, 2026
7f689ec
Rename Sistema_de_gerenciamento_por_departamento.feature to sistema_d…
eriqueto May 26, 2026
7ef70bc
Merge pull request #3 from eriqueto/main
eriqueto May 26, 2026
8d17ac6
bdd: issues 113, 112, 104
caselli05 May 26, 2026
2d73310
Merge pull request #4 from eriqueto/bdd-caselli
caselli05 May 26, 2026
8a709d3
issues 98, 99, 100
daviggalvao May 26, 2026
0ec8fc4
BDD-Caio: issues #101 #102 #103
caiof-albuquerque May 26, 2026
c1c7953
Merge pull request #5 from eriqueto/BDD_Caio
caiof-albuquerque May 26, 2026
6f8a071
Merge pull request #6 from eriqueto/bdd-galvao
daviggalvao May 26, 2026
973e0b1
Add branching policy and user registration details
caselli05 May 26, 2026
d343f65
issue 110
daviggalvao May 26, 2026
0485f45
Merge branch 'sprint-1' of https://github.com/eriqueto/CAMAAR into sp…
daviggalvao May 26, 2026
910f175
feat: base rails
daviggalvao Jun 8, 2026
9adcc14
feat: gemfile completo
daviggalvao Jun 8, 2026
546f815
feat: models prontos
daviggalvao Jun 8, 2026
dd1af00
feat/primeiro-controller
davibraganca10 Jun 9, 2026
7ce2144
fix: schema.rb completo
daviggalvao Jun 9, 2026
90d854e
Merge pull request #23 from eriqueto/feat-models
daviggalvao Jun 9, 2026
322771e
Adiciona novamente as features das issues #101, #102 e #103 após erro…
caiof-albuquerque Jun 10, 2026
fc9a1b0
feat: models 100% agora
daviggalvao Jun 10, 2026
290560b
feat: controller aplication e session
daviggalvao Jun 10, 2026
3d2d2e9
feat: alguns controller de admin
daviggalvao Jun 11, 2026
cd730be
feat: mais alguns controllers e fix routes
daviggalvao Jun 12, 2026
481c75b
feat/algumas step definitions
davibraganca10 Jun 14, 2026
da18aa7
feat/mais step definitions
davibraganca10 Jun 14, 2026
6e4d334
rename: rename files to UTF8
caselli05 Jun 16, 2026
465dda2
structure: changes on rails version
caselli05 Jun 16, 2026
b18cbd0
feat: step definition - caselli
caselli05 Jun 16, 2026
d273409
structure: changes on rails version
eriqueto Jun 16, 2026
fb58959
feat: telas de fluxo de usuario e inicial do admin
eriqueto Jun 16, 2026
6bd7e32
feat: models corrigidos
eriqueto Jun 16, 2026
82dc34e
fix: admin formulario controller
daviggalvao Jun 16, 2026
14d2ddc
fix: erros de rspec
daviggalvao Jun 17, 2026
41f603d
feat: adiciona wiki da sprint 2
eriqueto Jun 17, 2026
aff8cec
Merge branch 'sprint-2' of https://github.com/eriqueto/CAMAAR into sp…
eriqueto Jun 17, 2026
bbed49b
fix: arrumando as features
daviggalvao Jun 17, 2026
176610f
fix: arrumando
daviggalvao Jun 17, 2026
bfdb3a5
fix: rspec rodando mais verde do que o ponto mais belo da mais bela á…
daviggalvao Jun 17, 2026
819a23f
feat: admin views
caiof-albuquerque Jun 17, 2026
1c6cab2
feat: base da refatoracao
daviggalvao Jun 17, 2026
8f092c7
fix: resposta spec
daviggalvao Jun 18, 2026
6385d4c
fix: cucumber ta bom mas n ta bombom
daviggalvao Jun 29, 2026
1926322
ignore: add SimpleCov reports to gitignore
caselli05 Jun 30, 2026
37ae973
ignore: add SimpleCov reports to gitignore 2
caselli05 Jun 30, 2026
c5faa67
version: change ruby version to 3.3.8
caselli05 Jun 30, 2026
9017631
fix: fix cucumber test
caselli05 Jun 30, 2026
fedffad
fix: rubycritic fixes
caselli05 Jun 30, 2026
9ed186d
feat/testes rspec
davibraganca10 Jun 30, 2026
369d483
fix: arrumando spec
daviggalvao Jun 30, 2026
1df3b05
fix: 90% rspec e 10% fé
daviggalvao Jun 30, 2026
c8eb258
fix: ta la
daviggalvao Jun 30, 2026
baebde3
feat: adiciona RDoc nos controllers e modelse e adiciona wiki sprint 3
caiof-albuquerque Jul 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
37 changes: 37 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.

# Ignore git directory.
/.git/

# Ignore bundler config.
/.bundle

# Ignore all environment files (except templates).
/.env*
!/.env*.erb

# Ignore all default key files.
/config/master.key
/config/credentials/*.key

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

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

# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/.keep

# Ignore assets.
/node_modules/
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 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
config/credentials/*.yml.enc diff=rails_credentials
config/credentials.yml.enc diff=rails_credentials
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 all environment files (except templates).
/.env*
!/.env*.erb

# 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 storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep

/public/assets

# Ignore bundler local installation.
/vendor/bundle

# Ignore master key for decrypting credentials and more.
/config/master.key

# Ignore SimpleCov coverage reports.
/coverage/

# Ignore RDoc generated documentation.
/doc/
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-3.3.8
62 changes: 62 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# syntax = docker/dockerfile:1

# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.0.2
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base

# Rails app lives here
WORKDIR /rails

# Set production environment
ENV RAILS_ENV="production" \
BUNDLE_DEPLOYMENT="1" \
BUNDLE_PATH="/usr/local/bundle" \
BUNDLE_WITHOUT="development"


# Throw-away build stage to reduce size of final image
FROM base as build

# Install packages needed to build gems
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential git libvips pkg-config

# Install application gems
COPY Gemfile Gemfile.lock ./
RUN bundle install && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
bundle exec bootsnap precompile --gemfile

# Copy application code
COPY . .

# Precompile bootsnap code for faster boot times
RUN bundle exec bootsnap precompile app/ lib/

# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile


# Final stage for app image
FROM base

# Install packages needed for deployment
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y curl libsqlite3-0 libvips && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives

# Copy built artifacts: gems, application
COPY --from=build /usr/local/bundle /usr/local/bundle
COPY --from=build /rails /rails

# Run and own only the runtime files as a non-root user for security
RUN useradd rails --create-home --shell /bin/bash && \
chown -R rails:rails db log storage tmp
USER rails:rails

# Entrypoint prepares the database.
ENTRYPOINT ["/rails/bin/docker-entrypoint"]

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD ["./bin/rails", "server"]
76 changes: 76 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
source "https://rubygems.org"

ruby "3.3.8"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.1.6"

gem 'csv'

# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem "sprockets-rails"

# Use sqlite3 as the database for Active Record
gem "sqlite3", ">= 1.4"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", ">= 5.0"

# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
gem "importmap-rails"

# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"

# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"

# Use Redis adapter to run Action Cable in production
# gem "redis", ">= 4.0.1"

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
gem "bcrypt", "~> 3.1.7"

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

# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false

# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"

group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri mswin mswin64 mingw x64_mingw ]
gem 'getoptlong'
gem "rubycritic", require: false
gem 'simplecov', require: false, group: :test
gem 'rdoc'
end

group :development do
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"
gem 'rspec-rails'

# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
# gem "rack-mini-profiler"

# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
# gem "spring"
end

group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem 'cucumber-rails', require: false
gem 'database_cleaner'
gem "capybara"
gem "selenium-webdriver"
end
Loading