# frozen_string_literal: true

source "https://rubygems.org"

ruby "4.0.1"
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 8.0.1"
# Use postgresql as the database for Active Record
gem "pg", "~> 1.6", ">= 1.6.2"

gem "active_record_distinct_on"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", ">= 5.0"
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
# gem "jbuilder"

# 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[windows jruby]

# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable
gem "solid_cache"
gem "solid_queue"
gem "solid_cable"

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

# Deploy this application anywhere as a Docker container [https://kamal-deploy.org]
gem "kamal", require: false

# Add HTTP asset caching/compression and X-Sendfile acceleration to Puma [https://github.com/basecamp/thruster/]
gem "thruster", require: false

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

# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin Ajax possible
# gem "rack-cors"

group :development, :test do
  # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
  gem "debug", platforms: %i[mri windows], require: "debug/prelude"

  # Static analysis for security vulnerabilities [https://brakemanscanner.org/]
  gem "brakeman", require: false

  # Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
  gem "rubocop-rails-omakase", require: false
end

# Use faker for generating fake data
gem "faker"
group :development do
  # Use a pure-Ruby Readline implementation when system Readline is unavailable.
  gem "rb-readline"

  # Use the pry gem for better debugging
  gem "pry-rails"
  gem "pry-rescue"

  # for debugging
  gem "mutex_m"

  gem "dotenv-rails"

  gem "json-schema"

  gem "webrick"
  gem "rack"

  gem "ruby-lsp"
  gem "standard"
  gem "overcommit"
end

gem "dry-validation"

gem "active_storage_validations"
gem "aws-sdk-s3"

# Rack::Cors
gem "rack-cors"

gem "jbuilder"

gem "spyke"
gem "multi_json"

gem "parallel"

gem "benchmark"

gem "kaminari"

group :test do
  gem "minitest", "~> 5.25"
  gem "rspec-rails"
  gem "rspec-openapi"
end

gem "csv"

gem "roo", "~> 2.10.0"

gem "recursive-open-struct"

gem "unaccent"

gem "rmagick"

gem "gemini-ai", "~> 4.2.0"
gem "ruby-openai"

gem "mistral-ai", "~> 1.2.0"

gem "wkhtmltopdf-binary"
gem "wicked_pdf"

gem "rails-i18n"

gem "cfadock_api_client", git: "https://github.com/eduvia-app/cfadock_client.git", branch: "main"
gem "convergence_api_client", git: "https://github.com/eduvia-app/convergence_client.git", branch: "main"
gem "oodrive_sign_api", git: "https://github.com/eduvia-app/oodrive-sign-gem.git", branch: "main"

gem "cerfa_10103_filler", git: "https://github.com/eduvia-app/cerfa-10103-filler.git", branch: "main"
gem "convention_filler", git: "https://github.com/eduvia-app/convention-filler.git", branch: "main"
gem "invoice_generator", git: "https://github.com/eduvia-app/invoice-generator.git", branch: "main"
gem "scorm_parser", git: "https://github.com/eduvia-app/scorm-parser.git", branch: "main"

gem "gotenberg-ruby"

gem "pdf-reader"

gem "ruby-progressbar"

gem "creek"

gem "webauthn"

gem "mjml-rails"
gem "mrml"
