commit
2419efa993
14 changed files with 147 additions and 145 deletions
80
.rubocop.yml
80
.rubocop.yml
|
@ -1,6 +1,9 @@
|
||||||
require:
|
require:
|
||||||
- rubocop/rspec/focused
|
- rubocop/rspec/focused
|
||||||
- ./lib/cops/unscoped.rb
|
- ./lib/cops/unscoped.rb
|
||||||
|
inherit_gem:
|
||||||
|
rubocop-rails_config:
|
||||||
|
- config/rails.yml
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
@ -30,13 +33,13 @@ Gemspec/RequiredRubyVersion:
|
||||||
Layout/AccessModifierIndentation:
|
Layout/AccessModifierIndentation:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Layout/AlignArray:
|
Layout/ArrayAlignment:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Layout/AlignHash:
|
Layout/HashAlignment:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Layout/AlignParameters:
|
Layout/ParameterAlignment:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
EnforcedStyle: with_fixed_indentation
|
EnforcedStyle: with_fixed_indentation
|
||||||
|
|
||||||
|
@ -89,6 +92,7 @@ Layout/EmptyLineAfterGuardClause:
|
||||||
# FIXME: private should not be a column name on TypeDeChamp
|
# FIXME: private should not be a column name on TypeDeChamp
|
||||||
Layout/EmptyLinesAroundAccessModifier:
|
Layout/EmptyLinesAroundAccessModifier:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
EnforcedStyle: around
|
||||||
Exclude:
|
Exclude:
|
||||||
- "spec/factories/type_de_champ.rb"
|
- "spec/factories/type_de_champ.rb"
|
||||||
|
|
||||||
|
@ -141,22 +145,23 @@ Layout/FirstMethodParameterLineBreak:
|
||||||
Layout/FirstParameterIndentation:
|
Layout/FirstParameterIndentation:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Layout/IndentArray:
|
Layout/FirstArrayElementIndentation:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
EnforcedStyle: consistent
|
EnforcedStyle: consistent
|
||||||
|
|
||||||
Layout/IndentAssignment:
|
Layout/AssignmentIndentation:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Layout/IndentHash:
|
Layout/FirstHashElementIndentation:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
EnforcedStyle: consistent
|
EnforcedStyle: consistent
|
||||||
|
|
||||||
Layout/IndentHeredoc:
|
Layout/HeredocIndentation:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Layout/IndentationConsistency:
|
Layout/IndentationConsistency:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
EnforcedStyle: normal
|
||||||
|
|
||||||
Layout/IndentationWidth:
|
Layout/IndentationWidth:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
@ -275,7 +280,7 @@ Layout/SpaceInsideStringInterpolation:
|
||||||
Layout/Tab:
|
Layout/Tab:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Layout/TrailingBlankLines:
|
Layout/TrailingEmptyLines:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Layout/TrailingWhitespace:
|
Layout/TrailingWhitespace:
|
||||||
|
@ -314,7 +319,7 @@ Lint/DuplicateCaseCondition:
|
||||||
Lint/DuplicateMethods:
|
Lint/DuplicateMethods:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/DuplicatedKey:
|
Lint/DuplicateHashKey:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/EachWithObjectArgument:
|
Lint/EachWithObjectArgument:
|
||||||
|
@ -347,7 +352,7 @@ Lint/FloatOutOfRange:
|
||||||
Lint/FormatParameterMismatch:
|
Lint/FormatParameterMismatch:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/HandleExceptions:
|
Lint/SuppressedException:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Lint/ImplicitStringConcatenation:
|
Lint/ImplicitStringConcatenation:
|
||||||
|
@ -374,7 +379,7 @@ Lint/Loop:
|
||||||
Lint/MissingCopEnableDirective:
|
Lint/MissingCopEnableDirective:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/MultipleCompare:
|
Lint/MultipleComparison:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/NestedMethodDefinition:
|
Lint/NestedMethodDefinition:
|
||||||
|
@ -445,7 +450,7 @@ Lint/ShadowedException:
|
||||||
Lint/ShadowingOuterLocalVariable:
|
Lint/ShadowingOuterLocalVariable:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Lint/StringConversionInInterpolation:
|
Lint/RedundantStringCoercion:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/Syntax:
|
Lint/Syntax:
|
||||||
|
@ -457,16 +462,16 @@ Lint/UnderscorePrefixedVariableName:
|
||||||
Lint/UnifiedInteger:
|
Lint/UnifiedInteger:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/UnneededCopDisableDirective:
|
Lint/RedundantCopDisableDirective:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/UnneededCopEnableDirective:
|
Lint/RedundantCopEnableDirective:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/UnneededRequireStatement:
|
Lint/RedundantRequireStatement:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/UnneededSplatExpansion:
|
Lint/RedundantSplatExpansion:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Lint/UnreachableCode:
|
Lint/UnreachableCode:
|
||||||
|
@ -519,7 +524,7 @@ Metrics/ClassLength:
|
||||||
Metrics/CyclomaticComplexity:
|
Metrics/CyclomaticComplexity:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Metrics/LineLength:
|
Layout/LineLength:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Metrics/MethodLength:
|
Metrics/MethodLength:
|
||||||
|
@ -567,10 +572,10 @@ Naming/MethodName:
|
||||||
Naming/PredicateName:
|
Naming/PredicateName:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Naming/UncommunicativeBlockParamName:
|
Naming/BlockParameterName:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Naming/UncommunicativeMethodParamName:
|
Naming/MethodParameterName:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Naming/VariableName:
|
Naming/VariableName:
|
||||||
|
@ -593,6 +598,8 @@ Performance/CompareWithBlock:
|
||||||
|
|
||||||
Performance/Count:
|
Performance/Count:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
Exclude:
|
||||||
|
- "app/services/administrateur_usage_statistics_service.rb"
|
||||||
|
|
||||||
Performance/Detect:
|
Performance/Detect:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
@ -609,9 +616,6 @@ Performance/FixedSize:
|
||||||
Performance/FlatMap:
|
Performance/FlatMap:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Performance/LstripRstrip:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/RangeInclude:
|
Performance/RangeInclude:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
@ -624,7 +628,7 @@ Performance/RedundantMatch:
|
||||||
Performance/RedundantMerge:
|
Performance/RedundantMerge:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Performance/RedundantSortBy:
|
Style/RedundantSortBy:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Performance/RegexpMatch:
|
Performance/RegexpMatch:
|
||||||
|
@ -633,7 +637,7 @@ Performance/RegexpMatch:
|
||||||
Performance/ReverseEach:
|
Performance/ReverseEach:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Performance/Sample:
|
Style/Sample:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Performance/Size:
|
Performance/Size:
|
||||||
|
@ -669,6 +673,12 @@ Rails/ApplicationJob:
|
||||||
Rails/ApplicationRecord:
|
Rails/ApplicationRecord:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
Rails/ApplicationController:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
Rails/RakeEnvironment:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
Rails/Blank:
|
Rails/Blank:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
@ -707,7 +717,7 @@ Rails/Exit:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Rails/FilePath:
|
Rails/FilePath:
|
||||||
Enabled: true
|
Enabled: false
|
||||||
|
|
||||||
Rails/FindBy:
|
Rails/FindBy:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
@ -754,6 +764,9 @@ Rails/Present:
|
||||||
Rails/ReadWriteAttribute:
|
Rails/ReadWriteAttribute:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Rails/RedundantAllowNil:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
Rails/RedundantReceiverInWithOptions:
|
Rails/RedundantReceiverInWithOptions:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
@ -766,9 +779,6 @@ Rails/RequestReferer:
|
||||||
Rails/ReversibleMigration:
|
Rails/ReversibleMigration:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Rails/SafeNavigation:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Rails/SaveBang:
|
Rails/SaveBang:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
@ -846,9 +856,6 @@ Style/BlockDelimiters:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "spec/**/*"
|
- "spec/**/*"
|
||||||
|
|
||||||
Style/BracesAroundHashParameters:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Style/CaseEquality:
|
Style/CaseEquality:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
@ -955,9 +962,6 @@ Style/EvenOdd:
|
||||||
Style/ExpandPathArguments:
|
Style/ExpandPathArguments:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Style/FlipFlop:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/For:
|
Style/For:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
@ -965,7 +969,7 @@ Style/FormatString:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Style/FormatStringToken:
|
Style/FormatStringToken:
|
||||||
Enabled: true
|
Enabled: false
|
||||||
EnforcedStyle: template
|
EnforcedStyle: template
|
||||||
|
|
||||||
Style/FrozenStringLiteralComment:
|
Style/FrozenStringLiteralComment:
|
||||||
|
@ -1267,13 +1271,13 @@ Style/TrivialAccessors:
|
||||||
Style/UnlessElse:
|
Style/UnlessElse:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Style/UnneededCapitalW:
|
Style/RedundantCapitalW:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Style/UnneededInterpolation:
|
Style/RedundantInterpolation:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Style/UnneededPercentQ:
|
Style/RedundantPercentQ:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Style/VariableInterpolation:
|
Style/VariableInterpolation:
|
||||||
|
|
10
Gemfile
10
Gemfile
|
@ -9,7 +9,6 @@ gem 'activestorage-openstack'
|
||||||
gem 'administrate'
|
gem 'administrate'
|
||||||
gem 'after_party'
|
gem 'after_party'
|
||||||
gem 'anchored'
|
gem 'anchored'
|
||||||
gem 'axlsx', '~> 3.0.0.pre' # https://github.com/randym/axlsx/issues/501#issuecomment-373640365
|
|
||||||
gem 'bcrypt'
|
gem 'bcrypt'
|
||||||
gem 'bootstrap-sass', '>= 3.4.1'
|
gem 'bootstrap-sass', '>= 3.4.1'
|
||||||
gem 'bootstrap-wysihtml5-rails', '~> 0.3.3.8'
|
gem 'bootstrap-wysihtml5-rails', '~> 0.3.3.8'
|
||||||
|
@ -29,8 +28,6 @@ gem 'dotenv-rails', require: 'dotenv/rails-now' # dotenv should always be loaded
|
||||||
gem 'flipper'
|
gem 'flipper'
|
||||||
gem 'flipper-active_record'
|
gem 'flipper-active_record'
|
||||||
gem 'flipper-ui'
|
gem 'flipper-ui'
|
||||||
gem 'fog-openstack'
|
|
||||||
gem 'font-awesome-rails'
|
|
||||||
gem 'geocoder'
|
gem 'geocoder'
|
||||||
gem 'gon'
|
gem 'gon'
|
||||||
gem 'graphiql-rails'
|
gem 'graphiql-rails'
|
||||||
|
@ -48,12 +45,10 @@ gem 'mailjet'
|
||||||
gem 'omniauth-github'
|
gem 'omniauth-github'
|
||||||
gem 'omniauth-rails_csrf_protection', '~> 0.1'
|
gem 'omniauth-rails_csrf_protection', '~> 0.1'
|
||||||
gem 'openid_connect'
|
gem 'openid_connect'
|
||||||
gem 'openstack'
|
|
||||||
gem 'pg'
|
gem 'pg'
|
||||||
gem 'phonelib'
|
gem 'phonelib'
|
||||||
gem 'prawn' # PDF Generation
|
gem 'prawn-rails' # PDF Generation
|
||||||
gem 'prawn-svg'
|
gem 'prawn-svg'
|
||||||
gem 'prawn_rails'
|
|
||||||
gem 'premailer-rails'
|
gem 'premailer-rails'
|
||||||
gem 'puma' # Use Puma as the app server
|
gem 'puma' # Use Puma as the app server
|
||||||
gem 'pundit'
|
gem 'pundit'
|
||||||
|
@ -66,11 +61,11 @@ gem 'react-rails'
|
||||||
gem 'rgeo-geojson'
|
gem 'rgeo-geojson'
|
||||||
gem 'sanitize-url'
|
gem 'sanitize-url'
|
||||||
gem 'sassc-rails' # Use SCSS for stylesheets
|
gem 'sassc-rails' # Use SCSS for stylesheets
|
||||||
gem 'scenic'
|
|
||||||
gem 'sentry-raven'
|
gem 'sentry-raven'
|
||||||
gem 'skylight'
|
gem 'skylight'
|
||||||
gem 'smart_listing'
|
gem 'smart_listing'
|
||||||
gem 'spreadsheet_architect'
|
gem 'spreadsheet_architect'
|
||||||
|
gem 'sprockets', '< 4'
|
||||||
gem 'turbolinks' # Turbolinks makes following links in your web application faster
|
gem 'turbolinks' # Turbolinks makes following links in your web application faster
|
||||||
gem 'typhoeus'
|
gem 'typhoeus'
|
||||||
gem 'warden'
|
gem 'warden'
|
||||||
|
@ -102,6 +97,7 @@ group :development do
|
||||||
gem 'haml-lint'
|
gem 'haml-lint'
|
||||||
gem 'letter_opener_web'
|
gem 'letter_opener_web'
|
||||||
gem 'rubocop', require: false
|
gem 'rubocop', require: false
|
||||||
|
gem 'rubocop-rails_config'
|
||||||
gem 'rubocop-rspec-focused', require: false
|
gem 'rubocop-rspec-focused', require: false
|
||||||
gem 'scss_lint', require: false
|
gem 'scss_lint', require: false
|
||||||
gem 'web-console'
|
gem 'web-console'
|
||||||
|
|
161
Gemfile.lock
161
Gemfile.lock
|
@ -78,16 +78,16 @@ GEM
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.7.0)
|
addressable (2.7.0)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
administrate (0.11.0)
|
administrate (0.12.0)
|
||||||
actionpack (>= 4.2, < 6.0)
|
actionpack (>= 4.2)
|
||||||
actionview (>= 4.2, < 6.0)
|
actionview (>= 4.2)
|
||||||
activerecord (>= 4.2, < 6.0)
|
activerecord (>= 4.2)
|
||||||
autoprefixer-rails (>= 6.0)
|
autoprefixer-rails (>= 6.0)
|
||||||
datetime_picker_rails (~> 0.0.7)
|
datetime_picker_rails (~> 0.0.7)
|
||||||
jquery-rails (>= 4.0)
|
jquery-rails (>= 4.0)
|
||||||
kaminari (>= 1.0)
|
kaminari (>= 1.0)
|
||||||
momentjs-rails (~> 2.8)
|
momentjs-rails (~> 2.8)
|
||||||
sass-rails (~> 5.0)
|
sassc-rails (~> 2.1)
|
||||||
selectize-rails (~> 0.6)
|
selectize-rails (~> 0.6)
|
||||||
aes_key_wrap (1.0.1)
|
aes_key_wrap (1.0.1)
|
||||||
after_party (1.10.0)
|
after_party (1.10.0)
|
||||||
|
@ -95,16 +95,11 @@ GEM
|
||||||
arel (9.0.0)
|
arel (9.0.0)
|
||||||
ast (2.4.0)
|
ast (2.4.0)
|
||||||
attr_required (1.0.1)
|
attr_required (1.0.1)
|
||||||
autoprefixer-rails (9.4.4)
|
autoprefixer-rails (9.7.4)
|
||||||
execjs
|
execjs
|
||||||
axlsx (3.0.0.pre)
|
axlsx_styler (1.0.0)
|
||||||
htmlentities (~> 4.3, >= 4.3.4)
|
|
||||||
mimemagic (~> 0.3)
|
|
||||||
nokogiri (~> 1.8, >= 1.8.2)
|
|
||||||
rubyzip (~> 1.2, >= 1.2.1)
|
|
||||||
axlsx_styler (0.2.0)
|
|
||||||
activesupport (>= 3.1)
|
activesupport (>= 3.1)
|
||||||
axlsx (>= 2.0, < 4)
|
caxlsx (>= 2.0.2)
|
||||||
babel-source (5.8.35)
|
babel-source (5.8.35)
|
||||||
babel-transpiler (0.7.0)
|
babel-transpiler (0.7.0)
|
||||||
babel-source (>= 4.0, < 6)
|
babel-source (>= 4.0, < 6)
|
||||||
|
@ -118,7 +113,7 @@ GEM
|
||||||
bootstrap-wysihtml5-rails (0.3.3.8)
|
bootstrap-wysihtml5-rails (0.3.3.8)
|
||||||
railties (>= 3.0)
|
railties (>= 3.0)
|
||||||
brakeman (4.3.1)
|
brakeman (4.3.1)
|
||||||
browser (2.5.3)
|
browser (4.0.0)
|
||||||
builder (3.2.4)
|
builder (3.2.4)
|
||||||
byebug (10.0.2)
|
byebug (10.0.2)
|
||||||
capybara (3.29.0)
|
capybara (3.29.0)
|
||||||
|
@ -140,6 +135,11 @@ GEM
|
||||||
selenium-webdriver
|
selenium-webdriver
|
||||||
case_transform (0.2)
|
case_transform (0.2)
|
||||||
activesupport
|
activesupport
|
||||||
|
caxlsx (3.0.1)
|
||||||
|
htmlentities (~> 4.3, >= 4.3.4)
|
||||||
|
mimemagic (~> 0.3)
|
||||||
|
nokogiri (~> 1.10, >= 1.10.4)
|
||||||
|
rubyzip (>= 1.3.0, < 3)
|
||||||
chartkick (3.3.1)
|
chartkick (3.3.1)
|
||||||
childprocess (0.9.0)
|
childprocess (0.9.0)
|
||||||
ffi (~> 1.0, >= 1.0.11)
|
ffi (~> 1.0, >= 1.0.11)
|
||||||
|
@ -158,21 +158,21 @@ GEM
|
||||||
crack (0.4.3)
|
crack (0.4.3)
|
||||||
safe_yaml (~> 1.0.0)
|
safe_yaml (~> 1.0.0)
|
||||||
crass (1.0.6)
|
crass (1.0.6)
|
||||||
css_parser (1.6.0)
|
css_parser (1.7.1)
|
||||||
addressable
|
addressable
|
||||||
curb (0.9.10)
|
curb (0.9.10)
|
||||||
daemons (1.3.1)
|
daemons (1.3.1)
|
||||||
database_cleaner (1.7.0)
|
database_cleaner (1.7.0)
|
||||||
datetime_picker_rails (0.0.7)
|
datetime_picker_rails (0.0.7)
|
||||||
momentjs-rails (>= 2.8.1)
|
momentjs-rails (>= 2.8.1)
|
||||||
deep_cloneable (2.3.2)
|
deep_cloneable (3.0.0)
|
||||||
activerecord (>= 3.1.0, < 6)
|
activerecord (>= 3.1.0, < 7)
|
||||||
delayed_cron_job (0.7.2)
|
delayed_cron_job (0.7.2)
|
||||||
delayed_job (>= 4.1)
|
delayed_job (>= 4.1)
|
||||||
delayed_job (4.1.5)
|
delayed_job (4.1.8)
|
||||||
activesupport (>= 3.0, < 5.3)
|
activesupport (>= 3.0, < 6.1)
|
||||||
delayed_job_active_record (4.1.3)
|
delayed_job_active_record (4.1.4)
|
||||||
activerecord (>= 3.0, < 5.3)
|
activerecord (>= 3.0, < 6.1)
|
||||||
delayed_job (>= 3.0, < 5)
|
delayed_job (>= 3.0, < 5)
|
||||||
delayed_job_web (1.4.3)
|
delayed_job_web (1.4.3)
|
||||||
activerecord (> 3.0.0)
|
activerecord (> 3.0.0)
|
||||||
|
@ -193,10 +193,11 @@ GEM
|
||||||
activerecord (>= 4.2, < 7)
|
activerecord (>= 4.2, < 7)
|
||||||
domain_name (0.5.20180417)
|
domain_name (0.5.20180417)
|
||||||
unf (>= 0.0.5, < 1.0.0)
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
dotenv (2.5.0)
|
dotenv (2.7.5)
|
||||||
dotenv-rails (2.5.0)
|
dotenv-rails (2.7.5)
|
||||||
dotenv (= 2.5.0)
|
dotenv (= 2.7.5)
|
||||||
railties (>= 3.2, < 6.0)
|
railties (>= 3.2, < 6.1)
|
||||||
|
dry-inflector (0.2.0)
|
||||||
em-websocket (0.5.1)
|
em-websocket (0.5.1)
|
||||||
eventmachine (>= 0.12.9)
|
eventmachine (>= 0.12.9)
|
||||||
http_parser.rb (~> 0.6.0)
|
http_parser.rb (~> 0.6.0)
|
||||||
|
@ -233,8 +234,6 @@ GEM
|
||||||
fog-core (~> 2.1)
|
fog-core (~> 2.1)
|
||||||
fog-json (>= 1.0)
|
fog-json (>= 1.0)
|
||||||
ipaddress (>= 0.8)
|
ipaddress (>= 0.8)
|
||||||
font-awesome-rails (4.7.0.4)
|
|
||||||
railties (>= 3.2, < 6.0)
|
|
||||||
formatador (0.2.5)
|
formatador (0.2.5)
|
||||||
geocoder (1.6.0)
|
geocoder (1.6.0)
|
||||||
globalid (0.4.2)
|
globalid (0.4.2)
|
||||||
|
@ -260,8 +259,8 @@ GEM
|
||||||
bundler (>= 1.14)
|
bundler (>= 1.14)
|
||||||
graphql (~> 1.10)
|
graphql (~> 1.10)
|
||||||
thor (>= 0.19, < 2.0)
|
thor (>= 0.19, < 2.0)
|
||||||
groupdate (4.1.1)
|
groupdate (5.0.0)
|
||||||
activesupport (>= 4.2)
|
activesupport (>= 5)
|
||||||
guard (2.15.0)
|
guard (2.15.0)
|
||||||
formatador (>= 0.2.4)
|
formatador (>= 0.2.4)
|
||||||
listen (>= 2.7, < 4.0)
|
listen (>= 2.7, < 4.0)
|
||||||
|
@ -281,21 +280,20 @@ GEM
|
||||||
guard (~> 2.1)
|
guard (~> 2.1)
|
||||||
guard-compat (~> 1.1)
|
guard-compat (~> 1.1)
|
||||||
rspec (>= 2.99.0, < 4.0)
|
rspec (>= 2.99.0, < 4.0)
|
||||||
haml (5.0.4)
|
haml (5.1.2)
|
||||||
temple (>= 0.8.0)
|
temple (>= 0.8.0)
|
||||||
tilt
|
tilt
|
||||||
haml-lint (0.999.999)
|
haml-lint (0.999.999)
|
||||||
haml_lint
|
haml_lint
|
||||||
haml-rails (1.0.0)
|
haml-rails (2.0.1)
|
||||||
actionpack (>= 4.0.1)
|
actionpack (>= 5.1)
|
||||||
activesupport (>= 4.0.1)
|
activesupport (>= 5.1)
|
||||||
haml (>= 4.0.6, < 6.0)
|
haml (>= 4.0.6, < 6.0)
|
||||||
html2haml (>= 1.0.1)
|
html2haml (>= 1.0.1)
|
||||||
railties (>= 4.0.1)
|
railties (>= 5.1)
|
||||||
haml_lint (0.28.0)
|
haml_lint (0.35.0)
|
||||||
haml (>= 4.0, < 5.1)
|
haml (>= 4.0, < 5.2)
|
||||||
rainbow
|
rainbow
|
||||||
rake (>= 10, < 13)
|
|
||||||
rubocop (>= 0.50.0)
|
rubocop (>= 0.50.0)
|
||||||
sysexits (~> 1.1)
|
sysexits (~> 1.1)
|
||||||
hashdiff (0.3.8)
|
hashdiff (0.3.8)
|
||||||
|
@ -313,12 +311,11 @@ GEM
|
||||||
i18n (1.8.2)
|
i18n (1.8.2)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
ipaddress (0.8.3)
|
ipaddress (0.8.3)
|
||||||
jaro_winkler (1.5.2)
|
jaro_winkler (1.5.4)
|
||||||
jquery-rails (4.3.3)
|
jquery-rails (4.3.5)
|
||||||
rails-dom-testing (>= 1, < 3)
|
rails-dom-testing (>= 1, < 3)
|
||||||
railties (>= 4.2.0)
|
railties (>= 4.2.0)
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
json (2.2.0)
|
|
||||||
json-jwt (1.11.0)
|
json-jwt (1.11.0)
|
||||||
activesupport (>= 4.2)
|
activesupport (>= 4.2)
|
||||||
aes_key_wrap
|
aes_key_wrap
|
||||||
|
@ -418,31 +415,31 @@ GEM
|
||||||
validate_email
|
validate_email
|
||||||
validate_url
|
validate_url
|
||||||
webfinger (>= 1.0.1)
|
webfinger (>= 1.0.1)
|
||||||
openstack (3.3.21)
|
|
||||||
json
|
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
parallel (1.12.1)
|
parallel (1.19.1)
|
||||||
parser (2.5.3.0)
|
parser (2.7.0.4)
|
||||||
ast (~> 2.4.0)
|
ast (~> 2.4.0)
|
||||||
pdf-core (0.7.0)
|
pdf-core (0.7.0)
|
||||||
pg (1.1.3)
|
pg (1.1.3)
|
||||||
phonelib (0.6.39)
|
phonelib (0.6.39)
|
||||||
powerpack (0.1.2)
|
|
||||||
prawn (2.2.2)
|
prawn (2.2.2)
|
||||||
pdf-core (~> 0.7.0)
|
pdf-core (~> 0.7.0)
|
||||||
ttfunk (~> 1.5)
|
ttfunk (~> 1.5)
|
||||||
|
prawn-rails (1.3.0)
|
||||||
|
prawn
|
||||||
|
prawn-table
|
||||||
|
rails (>= 3.1.0)
|
||||||
prawn-svg (0.29.1)
|
prawn-svg (0.29.1)
|
||||||
css_parser (~> 1.6)
|
css_parser (~> 1.6)
|
||||||
prawn (>= 0.11.1, < 3)
|
prawn (>= 0.11.1, < 3)
|
||||||
prawn_rails (0.0.11)
|
prawn-table (0.2.2)
|
||||||
prawn (>= 0.11.1)
|
prawn (>= 1.3.0, < 3.0.0)
|
||||||
railties (>= 3.0.0)
|
|
||||||
premailer (1.11.1)
|
premailer (1.11.1)
|
||||||
addressable
|
addressable
|
||||||
css_parser (>= 1.6.0)
|
css_parser (>= 1.6.0)
|
||||||
htmlentities (>= 4.0.0)
|
htmlentities (>= 4.0.0)
|
||||||
premailer-rails (1.10.2)
|
premailer-rails (1.10.3)
|
||||||
actionmailer (>= 3, < 6)
|
actionmailer (>= 3)
|
||||||
premailer (~> 1.7, >= 1.7.9)
|
premailer (~> 1.7, >= 1.7.9)
|
||||||
promise.rb (0.7.4)
|
promise.rb (0.7.4)
|
||||||
pry (0.12.2)
|
pry (0.12.2)
|
||||||
|
@ -507,7 +504,7 @@ GEM
|
||||||
rake (12.3.3)
|
rake (12.3.3)
|
||||||
rake-progressbar (0.0.5)
|
rake-progressbar (0.0.5)
|
||||||
rb-fsevent (0.10.3)
|
rb-fsevent (0.10.3)
|
||||||
rb-inotify (0.10.0)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
react-rails (2.4.7)
|
react-rails (2.4.7)
|
||||||
babel-transpiler (>= 0.7.0)
|
babel-transpiler (>= 0.7.0)
|
||||||
|
@ -525,12 +522,13 @@ GEM
|
||||||
http-cookie (>= 1.0.2, < 2.0)
|
http-cookie (>= 1.0.2, < 2.0)
|
||||||
mime-types (>= 1.16, < 4.0)
|
mime-types (>= 1.16, < 4.0)
|
||||||
netrc (~> 0.8)
|
netrc (~> 0.8)
|
||||||
|
rexml (3.2.4)
|
||||||
rgeo (2.0.0)
|
rgeo (2.0.0)
|
||||||
rgeo-geojson (2.1.1)
|
rgeo-geojson (2.1.1)
|
||||||
rgeo (>= 1.0.0)
|
rgeo (>= 1.0.0)
|
||||||
rodf (1.0.0)
|
rodf (1.1.1)
|
||||||
activesupport (>= 3.0)
|
|
||||||
builder (>= 3.0)
|
builder (>= 3.0)
|
||||||
|
dry-inflector (~> 0.1)
|
||||||
rubyzip (>= 1.0)
|
rubyzip (>= 1.0)
|
||||||
rouge (3.16.0)
|
rouge (3.16.0)
|
||||||
rspec (3.9.0)
|
rspec (3.9.0)
|
||||||
|
@ -556,36 +554,40 @@ GEM
|
||||||
rspec-support (3.9.2)
|
rspec-support (3.9.2)
|
||||||
rspec_junit_formatter (0.4.1)
|
rspec_junit_formatter (0.4.1)
|
||||||
rspec-core (>= 2, < 4, != 2.12.0)
|
rspec-core (>= 2, < 4, != 2.12.0)
|
||||||
rubocop (0.62.0)
|
rubocop (0.80.1)
|
||||||
jaro_winkler (~> 1.5.1)
|
jaro_winkler (~> 1.5.1)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 2.5, != 2.5.1.1)
|
parser (>= 2.7.0.1)
|
||||||
powerpack (~> 0.1)
|
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
|
rexml
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (~> 1.4.0)
|
unicode-display_width (>= 1.4.0, < 1.7)
|
||||||
|
rubocop-performance (1.5.2)
|
||||||
|
rubocop (>= 0.71.0)
|
||||||
|
rubocop-rails (2.4.2)
|
||||||
|
rack (>= 1.1)
|
||||||
|
rubocop (>= 0.72.0)
|
||||||
|
rubocop-rails_config (0.10.0)
|
||||||
|
railties (>= 5.0)
|
||||||
|
rubocop (~> 0.80)
|
||||||
|
rubocop-performance (~> 1.3)
|
||||||
|
rubocop-rails (~> 2.0)
|
||||||
rubocop-rspec-focused (1.0.0)
|
rubocop-rspec-focused (1.0.0)
|
||||||
rubocop (>= 0.51)
|
rubocop (>= 0.51)
|
||||||
ruby-debug-ide (0.6.1)
|
ruby-debug-ide (0.6.1)
|
||||||
rake (>= 0.8.1)
|
rake (>= 0.8.1)
|
||||||
ruby-progressbar (1.10.0)
|
ruby-progressbar (1.10.1)
|
||||||
ruby_dep (1.5.0)
|
ruby_dep (1.5.0)
|
||||||
ruby_parser (3.12.0)
|
ruby_parser (3.14.2)
|
||||||
sexp_processor (~> 4.9)
|
sexp_processor (~> 4.9)
|
||||||
rubyzip (1.3.0)
|
rubyzip (1.3.0)
|
||||||
safe_yaml (1.0.4)
|
safe_yaml (1.0.4)
|
||||||
sanitize-url (0.1.4)
|
sanitize-url (0.1.4)
|
||||||
sass (3.7.3)
|
sass (3.7.4)
|
||||||
sass-listen (~> 4.0.0)
|
sass-listen (~> 4.0.0)
|
||||||
sass-listen (4.0.0)
|
sass-listen (4.0.0)
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
sass-rails (5.0.7)
|
|
||||||
railties (>= 4.0.0, < 6)
|
|
||||||
sass (~> 3.1)
|
|
||||||
sprockets (>= 2.8, < 4.0)
|
|
||||||
sprockets-rails (>= 2.0, < 4.0)
|
|
||||||
tilt (>= 1.1, < 3)
|
|
||||||
sassc (2.0.0)
|
sassc (2.0.0)
|
||||||
ffi (~> 1.9.6)
|
ffi (~> 1.9.6)
|
||||||
rake
|
rake
|
||||||
|
@ -595,9 +597,6 @@ GEM
|
||||||
sprockets (> 3.0)
|
sprockets (> 3.0)
|
||||||
sprockets-rails
|
sprockets-rails
|
||||||
tilt
|
tilt
|
||||||
scenic (1.4.1)
|
|
||||||
activerecord (>= 4.0.0)
|
|
||||||
railties (>= 4.0.0)
|
|
||||||
scss_lint (0.57.1)
|
scss_lint (0.57.1)
|
||||||
rake (>= 0.9, < 13)
|
rake (>= 0.9, < 13)
|
||||||
sass (~> 3.5, >= 3.5.5)
|
sass (~> 3.5, >= 3.5.5)
|
||||||
|
@ -607,7 +606,7 @@ GEM
|
||||||
rubyzip (~> 1.2, >= 1.2.2)
|
rubyzip (~> 1.2, >= 1.2.2)
|
||||||
sentry-raven (2.7.4)
|
sentry-raven (2.7.4)
|
||||||
faraday (>= 0.7.6, < 1.0)
|
faraday (>= 0.7.6, < 1.0)
|
||||||
sexp_processor (4.11.0)
|
sexp_processor (4.14.1)
|
||||||
shellany (0.0.1)
|
shellany (0.0.1)
|
||||||
shoulda-matchers (4.0.1)
|
shoulda-matchers (4.0.1)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
|
@ -628,9 +627,9 @@ GEM
|
||||||
jquery-rails
|
jquery-rails
|
||||||
kaminari (>= 0.17)
|
kaminari (>= 0.17)
|
||||||
rails (>= 3.2)
|
rails (>= 3.2)
|
||||||
spreadsheet_architect (3.2.0)
|
spreadsheet_architect (4.0.0)
|
||||||
axlsx (>= 2, < 4)
|
axlsx_styler (>= 1.0.0, < 2)
|
||||||
axlsx_styler (>= 0.1.7, < 2)
|
caxlsx (>= 2.0.2, < 4)
|
||||||
rodf (>= 1.0.0, < 2)
|
rodf (>= 1.0.0, < 2)
|
||||||
spring (2.0.2)
|
spring (2.0.2)
|
||||||
activesupport (>= 4.2)
|
activesupport (>= 4.2)
|
||||||
|
@ -648,10 +647,10 @@ GEM
|
||||||
attr_required (>= 0.0.5)
|
attr_required (>= 0.0.5)
|
||||||
httpclient (>= 2.4)
|
httpclient (>= 2.4)
|
||||||
sysexits (1.2.0)
|
sysexits (1.2.0)
|
||||||
temple (0.8.0)
|
temple (0.8.2)
|
||||||
thor (1.0.1)
|
thor (1.0.1)
|
||||||
thread_safe (0.3.6)
|
thread_safe (0.3.6)
|
||||||
tilt (2.0.9)
|
tilt (2.0.10)
|
||||||
timecop (0.9.1)
|
timecop (0.9.1)
|
||||||
ttfunk (1.5.1)
|
ttfunk (1.5.1)
|
||||||
turbolinks (5.2.0)
|
turbolinks (5.2.0)
|
||||||
|
@ -664,7 +663,7 @@ GEM
|
||||||
unf (0.1.4)
|
unf (0.1.4)
|
||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.7.5)
|
unf_ext (0.0.7.5)
|
||||||
unicode-display_width (1.4.1)
|
unicode-display_width (1.6.1)
|
||||||
validate_email (0.1.6)
|
validate_email (0.1.6)
|
||||||
activemodel (>= 3.0)
|
activemodel (>= 3.0)
|
||||||
mail (>= 2.2.5)
|
mail (>= 2.2.5)
|
||||||
|
@ -721,7 +720,6 @@ DEPENDENCIES
|
||||||
administrate
|
administrate
|
||||||
after_party
|
after_party
|
||||||
anchored
|
anchored
|
||||||
axlsx (~> 3.0.0.pre)
|
|
||||||
bcrypt
|
bcrypt
|
||||||
bootstrap-sass (>= 3.4.1)
|
bootstrap-sass (>= 3.4.1)
|
||||||
bootstrap-wysihtml5-rails (~> 0.3.3.8)
|
bootstrap-wysihtml5-rails (~> 0.3.3.8)
|
||||||
|
@ -749,8 +747,6 @@ DEPENDENCIES
|
||||||
flipper
|
flipper
|
||||||
flipper-active_record
|
flipper-active_record
|
||||||
flipper-ui
|
flipper-ui
|
||||||
fog-openstack
|
|
||||||
font-awesome-rails
|
|
||||||
geocoder
|
geocoder
|
||||||
gon
|
gon
|
||||||
graphiql-rails
|
graphiql-rails
|
||||||
|
@ -776,12 +772,10 @@ DEPENDENCIES
|
||||||
omniauth-github
|
omniauth-github
|
||||||
omniauth-rails_csrf_protection (~> 0.1)
|
omniauth-rails_csrf_protection (~> 0.1)
|
||||||
openid_connect
|
openid_connect
|
||||||
openstack
|
|
||||||
pg
|
pg
|
||||||
phonelib
|
phonelib
|
||||||
prawn
|
prawn-rails
|
||||||
prawn-svg
|
prawn-svg
|
||||||
prawn_rails
|
|
||||||
premailer-rails
|
premailer-rails
|
||||||
pry-byebug
|
pry-byebug
|
||||||
puma
|
puma
|
||||||
|
@ -797,11 +791,11 @@ DEPENDENCIES
|
||||||
rspec-rails (~> 4.0.0.beta)
|
rspec-rails (~> 4.0.0.beta)
|
||||||
rspec_junit_formatter
|
rspec_junit_formatter
|
||||||
rubocop
|
rubocop
|
||||||
|
rubocop-rails_config
|
||||||
rubocop-rspec-focused
|
rubocop-rspec-focused
|
||||||
ruby-debug-ide
|
ruby-debug-ide
|
||||||
sanitize-url
|
sanitize-url
|
||||||
sassc-rails
|
sassc-rails
|
||||||
scenic
|
|
||||||
scss_lint
|
scss_lint
|
||||||
sentry-raven
|
sentry-raven
|
||||||
shoulda-matchers
|
shoulda-matchers
|
||||||
|
@ -811,6 +805,7 @@ DEPENDENCIES
|
||||||
spreadsheet_architect
|
spreadsheet_architect
|
||||||
spring
|
spring
|
||||||
spring-commands-rspec
|
spring-commands-rspec
|
||||||
|
sprockets (< 4)
|
||||||
timecop
|
timecop
|
||||||
turbolinks
|
turbolinks
|
||||||
typhoeus
|
typhoeus
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
|
|
||||||
// = require_self
|
// = require_self
|
||||||
// = require leaflet
|
// = require leaflet
|
||||||
// = require font-awesome
|
|
||||||
// = require franceconnect
|
// = require franceconnect
|
||||||
// = require bootstrap-wysihtml5
|
// = require bootstrap-wysihtml5
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,7 @@ class ApplicationController < ActionController::Base
|
||||||
key: sentry[:client_key],
|
key: sentry[:client_key],
|
||||||
enabled: sentry[:enabled],
|
enabled: sentry[:enabled],
|
||||||
environment: sentry[:environment],
|
environment: sentry[:environment],
|
||||||
browser: { modern: browser.modern? },
|
browser: { modern: BrowserSupport.supported?(browser) },
|
||||||
user: sentry_user
|
user: sentry_user
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -58,7 +58,6 @@ class StatsController < ApplicationController
|
||||||
.includes(:procedure, :user)
|
.includes(:procedure, :user)
|
||||||
.in_batches
|
.in_batches
|
||||||
.flat_map do |dossiers|
|
.flat_map do |dossiers|
|
||||||
|
|
||||||
dossiers
|
dossiers
|
||||||
.pluck(
|
.pluck(
|
||||||
"dossiers.id",
|
"dossiers.id",
|
||||||
|
|
|
@ -131,4 +131,12 @@ module ApplicationHelper
|
||||||
def has_dismissed_outdated_browser_banner?
|
def has_dismissed_outdated_browser_banner?
|
||||||
cookies[:dismissed_outdated_browser_banner] == 'true'
|
cookies[:dismissed_outdated_browser_banner] == 'true'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def supported_browser?
|
||||||
|
BrowserSupport.supported?(browser)
|
||||||
|
end
|
||||||
|
|
||||||
|
def show_outdated_browser_banner?
|
||||||
|
!supported_browser? && !has_dismissed_outdated_browser_banner?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -692,7 +692,6 @@ class Dossier < ApplicationRecord
|
||||||
.includes(:procedure, :user)
|
.includes(:procedure, :user)
|
||||||
.group_by(&:user)
|
.group_by(&:user)
|
||||||
.each do |(user, dossiers)|
|
.each do |(user, dossiers)|
|
||||||
|
|
||||||
dossier_hashes = dossiers.map(&:hash_for_deletion_mail)
|
dossier_hashes = dossiers.map(&:hash_for_deletion_mail)
|
||||||
DossierMailer.notify_brouillon_deletion(user, dossier_hashes).deliver_later
|
DossierMailer.notify_brouillon_deletion(user, dossier_hashes).deliver_later
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,6 @@ class Instructeur < ApplicationRecord
|
||||||
def email_notification_data
|
def email_notification_data
|
||||||
groupe_instructeur_with_email_notifications
|
groupe_instructeur_with_email_notifications
|
||||||
.reduce([]) do |acc, groupe|
|
.reduce([]) do |acc, groupe|
|
||||||
|
|
||||||
procedure = groupe.procedure
|
procedure = groupe.procedure
|
||||||
|
|
||||||
h = {
|
h = {
|
||||||
|
|
13
app/services/browser_support.rb
Normal file
13
app/services/browser_support.rb
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
class BrowserSupport
|
||||||
|
def self.supported?(browser)
|
||||||
|
# See .browserslistrc
|
||||||
|
[
|
||||||
|
browser.chrome? && browser.version.to_i >= 50 && !browser.platform.ios?,
|
||||||
|
browser.edge? && browser.version.to_i >= 14 && !browser.compatibility_view?,
|
||||||
|
browser.firefox? && browser.version.to_i >= 50 && !browser.platform.ios?,
|
||||||
|
browser.opera? && browser.version.to_i >= 40,
|
||||||
|
browser.safari? && browser.version.to_i >= 8,
|
||||||
|
browser.platform.ios? && browser.platform.version.to_i >= 8
|
||||||
|
].any?
|
||||||
|
end
|
||||||
|
end
|
|
@ -1,5 +1,4 @@
|
||||||
-# See config/browser.rb
|
- if show_outdated_browser_banner?
|
||||||
- if !browser.modern? && !has_dismissed_outdated_browser_banner?
|
|
||||||
#outdated-browser-banner.site-banner
|
#outdated-browser-banner.site-banner
|
||||||
.container
|
.container
|
||||||
.site-banner-icon ⚠️
|
.site-banner-icon ⚠️
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
# See .browserslistrc
|
|
||||||
Browser.modern_rules.clear
|
|
||||||
Browser.modern_rules << -> b { b.chrome? && b.version.to_i >= 50 && !b.platform.ios? }
|
|
||||||
Browser.modern_rules << -> b { b.edge? && b.version.to_i >= 14 && !b.compatibility_view? }
|
|
||||||
Browser.modern_rules << -> b { b.firefox? && b.version.to_i >= 50 && !b.platform.ios? }
|
|
||||||
Browser.modern_rules << -> b { b.opera? && b.version.to_i >= 40 }
|
|
||||||
Browser.modern_rules << -> b { b.safari? && b.version.to_i >= 8 }
|
|
||||||
Browser.modern_rules << -> b { b.platform.ios? && b.platform.version.to_i >= 8 }
|
|
|
@ -1 +0,0 @@
|
||||||
OpenStack::VERSION = 2.0
|
|
|
@ -14,7 +14,7 @@ FactoryBot.define do
|
||||||
path { SecureRandom.uuid }
|
path { SecureRandom.uuid }
|
||||||
|
|
||||||
transient do
|
transient do
|
||||||
administrateur {}
|
administrateur { }
|
||||||
instructeurs { [] }
|
instructeurs { [] }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue