Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.7
4.0.2
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax = docker/dockerfile:1

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

# Rails app lives here
Expand Down
9 changes: 5 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

source "https://rubygems.org"

ruby "3.4.7"
ruby "4.0.2"

git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end

gem "benchmark"
gem "bootsnap", require: false

# Active admin
Expand Down Expand Up @@ -40,7 +41,7 @@ gem "paranoia"
# Rails and DB
gem "activerecord-postgis-adapter"
gem "pg"
gem "rails", "~> 7.2.3.1"
gem "rails", "~> 8.0.5"
gem "rgeo"
gem "rgeo-geojson"
gem "gdal"
Expand Down Expand Up @@ -107,7 +108,7 @@ gem "maxmind-geoip2"
gem "device_detector" # for analytics bot detection

group :development, :test do
gem "debug", platforms: %i[mri mingw x64_mingw]
gem "debug", platforms: %i[mri windows]
gem "rubocop-rails", require: false
gem "standard", require: false
end
Expand Down Expand Up @@ -154,5 +155,5 @@ end
gem "dotenv-rails"
gem "puma"
gem "rack-cors", groups: [:development, :e2e]
gem "redis-rails"
gem "redis"
gem "tzinfo-data"
167 changes: 72 additions & 95 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,49 +56,46 @@ GIT
GEM
remote: https://rubygems.org/
specs:
actioncable (7.2.3.1)
actionpack (= 7.2.3.1)
activesupport (= 7.2.3.1)
actioncable (8.0.5)
actionpack (= 8.0.5)
activesupport (= 8.0.5)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
actionmailbox (7.2.3.1)
actionpack (= 7.2.3.1)
activejob (= 7.2.3.1)
activerecord (= 7.2.3.1)
activestorage (= 7.2.3.1)
activesupport (= 7.2.3.1)
actionmailbox (8.0.5)
actionpack (= 8.0.5)
activejob (= 8.0.5)
activerecord (= 8.0.5)
activestorage (= 8.0.5)
activesupport (= 8.0.5)
mail (>= 2.8.0)
actionmailer (7.2.3.1)
actionpack (= 7.2.3.1)
actionview (= 7.2.3.1)
activejob (= 7.2.3.1)
activesupport (= 7.2.3.1)
actionmailer (8.0.5)
actionpack (= 8.0.5)
actionview (= 8.0.5)
activejob (= 8.0.5)
activesupport (= 8.0.5)
mail (>= 2.8.0)
rails-dom-testing (~> 2.2)
actionpack (7.2.3.1)
actionview (= 7.2.3.1)
activesupport (= 7.2.3.1)
cgi
actionpack (8.0.5)
actionview (= 8.0.5)
activesupport (= 8.0.5)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4, < 3.3)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actiontext (7.2.3.1)
actionpack (= 7.2.3.1)
activerecord (= 7.2.3.1)
activestorage (= 7.2.3.1)
activesupport (= 7.2.3.1)
actiontext (8.0.5)
actionpack (= 8.0.5)
activerecord (= 8.0.5)
activestorage (= 8.0.5)
activesupport (= 8.0.5)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.2.3.1)
activesupport (= 7.2.3.1)
actionview (8.0.5)
activesupport (= 8.0.5)
builder (~> 3.1)
cgi
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
Expand All @@ -124,27 +121,27 @@ GEM
xdan-datetimepicker-rails (~> 2.5.1)
activeadmin_quill_editor (1.3.0)
activeadmin (>= 2.9, < 4)
activejob (7.2.3.1)
activesupport (= 7.2.3.1)
activejob (8.0.5)
activesupport (= 8.0.5)
globalid (>= 0.3.6)
activemodel (7.2.3.1)
activesupport (= 7.2.3.1)
activerecord (7.2.3.1)
activemodel (= 7.2.3.1)
activesupport (= 7.2.3.1)
activemodel (8.0.5)
activesupport (= 8.0.5)
activerecord (8.0.5)
activemodel (= 8.0.5)
activesupport (= 8.0.5)
timeout (>= 0.4.0)
activerecord-import (2.2.0)
activerecord (>= 4.2)
activerecord-postgis-adapter (10.0.3)
activerecord (~> 7.2)
activerecord-postgis-adapter (11.0.0)
activerecord (~> 8.0.0)
rgeo-activerecord (~> 8.0.0)
activestorage (7.2.3.1)
actionpack (= 7.2.3.1)
activejob (= 7.2.3.1)
activerecord (= 7.2.3.1)
activesupport (= 7.2.3.1)
activestorage (8.0.5)
actionpack (= 8.0.5)
activejob (= 8.0.5)
activerecord (= 8.0.5)
activesupport (= 8.0.5)
marcel (~> 1.0)
activesupport (7.2.3.1)
activesupport (8.0.5)
base64
benchmark (>= 0.3)
bigdecimal
Expand All @@ -153,19 +150,20 @@ GEM
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1, < 6)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
acts_as_list (1.2.6)
activerecord (>= 6.1)
activesupport (>= 6.1)
addressable (2.9.0)
public_suffix (>= 2.0.2, < 8.0)
airbrussh (1.6.1)
sshkit (>= 1.6.1, != 1.7.0)
annotate (3.2.0)
activerecord (>= 3.2, < 8.0)
rake (>= 10.4, < 14.0)
annotate (2.6.5)
activerecord (>= 2.3.0)
rake (>= 0.8.7)
arbre (1.7.0)
activesupport (>= 3.0.0)
ruby2_keywords (>= 0.0.2)
Expand Down Expand Up @@ -232,7 +230,6 @@ GEM
carrierwave (>= 2.2.1)
marcel (~> 1.0.0)
mime-types (~> 3.0)
cgi (0.5.1)
chartkick (5.2.1)
childprocess (5.1.0)
logger (~> 1.5)
Expand Down Expand Up @@ -476,8 +473,9 @@ GEM
mini_magick (5.3.1)
logger
mini_mime (1.1.5)
mini_portile2 (2.8.9)
minitest (5.27.0)
minitest (6.0.6)
drb (~> 2.0)
prism (~> 1.5)
mjml-rails (4.16.0)
msgpack (1.8.0)
multi_json (1.21.1)
Expand All @@ -499,9 +497,6 @@ GEM
net-protocol
net-ssh (7.3.2)
nio4r (2.7.5)
nokogiri (1.19.3)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.19.3-x86_64-linux-gnu)
racc (~> 1.4)
oj (3.17.0)
Expand Down Expand Up @@ -551,31 +546,30 @@ GEM
rack (>= 1.3)
rackup (2.3.1)
rack (>= 3)
rails (7.2.3.1)
actioncable (= 7.2.3.1)
actionmailbox (= 7.2.3.1)
actionmailer (= 7.2.3.1)
actionpack (= 7.2.3.1)
actiontext (= 7.2.3.1)
actionview (= 7.2.3.1)
activejob (= 7.2.3.1)
activemodel (= 7.2.3.1)
activerecord (= 7.2.3.1)
activestorage (= 7.2.3.1)
activesupport (= 7.2.3.1)
rails (8.0.5)
actioncable (= 8.0.5)
actionmailbox (= 8.0.5)
actionmailer (= 8.0.5)
actionpack (= 8.0.5)
actiontext (= 8.0.5)
actionview (= 8.0.5)
activejob (= 8.0.5)
activemodel (= 8.0.5)
activerecord (= 8.0.5)
activestorage (= 8.0.5)
activesupport (= 8.0.5)
bundler (>= 1.15.0)
railties (= 7.2.3.1)
railties (= 8.0.5)
rails-dom-testing (2.3.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.7.0)
loofah (~> 2.25)
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)
railties (7.2.3.1)
actionpack (= 7.2.3.1)
activesupport (= 7.2.3.1)
cgi
railties (8.0.5)
actionpack (= 8.0.5)
activesupport (= 8.0.5)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
Expand All @@ -595,24 +589,8 @@ GEM
redcarpet (3.6.1)
redis (5.4.1)
redis-client (>= 0.22.0)
redis-actionpack (5.5.0)
actionpack (>= 5)
redis-rack (>= 2.1.0, < 4)
redis-store (>= 1.1.0, < 2)
redis-activesupport (5.3.0)
activesupport (>= 3, < 8)
redis-store (>= 1.3, < 2)
redis-client (0.28.0)
connection_pool
redis-rack (3.0.0)
rack-session (>= 0.2.0)
redis-store (>= 1.2, < 2)
redis-rails (5.0.2)
redis-actionpack (>= 5.0, < 6)
redis-activesupport (>= 5.0, < 6)
redis-store (>= 1.2, < 2)
redis-store (1.11.0)
redis (>= 4, < 6)
regexp_parser (2.12.0)
reline (0.6.3)
io-console (~> 0.5)
Expand Down Expand Up @@ -788,11 +766,10 @@ GEM
warden (1.2.9)
rack (>= 2.0.9)
warning (1.5.0)
web-console (4.2.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
web-console (4.3.0)
actionview (>= 8.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
railties (>= 8.0.0)
webmock (3.26.2)
addressable (>= 2.8.0)
crack (>= 0.3.2)
Expand All @@ -812,7 +789,6 @@ GEM
zeitwerk (2.7.5)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
Expand All @@ -827,6 +803,7 @@ DEPENDENCIES
acts_as_list
annotate
bcrypt
benchmark
bootsnap
brakeman
bullet
Expand Down Expand Up @@ -876,8 +853,8 @@ DEPENDENCIES
puma
rack-cors
rack-mini-profiler (~> 2.0)
rails (~> 7.2.3.1)
redis-rails
rails (~> 8.0.5)
redis
rgeo
rgeo-geojson
rspec-collection_matchers
Expand Down Expand Up @@ -908,7 +885,7 @@ DEPENDENCIES
whenever

RUBY VERSION
ruby 3.4.7p58
ruby 4.0.2p0

BUNDLED WITH
2.5.6
4.0.9
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ bin/dev

### REQUIREMENTS ###

- **Ruby version:** 3.4.7
- **Ruby version:** 4.0.2
- **PostgreSQL 12.1+** [How to install](http://exponential.io/blog/2015/02/21/install-postgresql-on-mac-os-x-via-brew/)

**Just execute the script file in `bin/setup`**
Expand Down
8 changes: 4 additions & 4 deletions app/admin/operator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,15 @@
grouped_sod = ScoreOperatorDocument.where(operator_id: resource.id).group_by_day(:date, series: false)
row :total_documents do
render partial: "score_evolution", locals: {
scores: grouped_sod.maximum(:total)
scores: grouped_sod.maximum("total")
}
end
row :percentage_by_type do
render partial: "score_evolution", locals: {
scores: [
{name: "all", data: grouped_sod.maximum(:all)},
{name: "per_country", data: grouped_sod.maximum(:country)},
{name: "per_fmus", data: grouped_sod.maximum(:fmu)}
{name: "all", data: grouped_sod.maximum("all")},
{name: "per_country", data: grouped_sod.maximum("country")},
{name: "per_fmus", data: grouped_sod.maximum("fmu")}
]
}
end
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/v1/passwords_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def update
private

def create_params
params.require(:password).permit(:email)
params.expect(password: [:email])
end

def update_params
params.require(:password).permit(:reset_password_token, :password, :password_confirmation)
params.expect(password: [:reset_password_token, :password, :password_confirmation])
end
end
end
Loading
Loading