discourse/config/initializers
Sam Saffron d0d5a138c3
DEV: stop freezing frozen strings
We have the `# frozen_string_literal: true` comment on all our
files. This means all string literals are frozen. There is no need
to call #freeze on any literals.

For files with `# frozen_string_literal: true`

```
puts %w{a b}[0].frozen?
=> true

puts "hi".frozen?
=> true

puts "a #{1} b".frozen?
=> true

puts ("a " + "b").frozen?
=> false

puts (-("a " + "b")).frozen?
=> true
```

For more details see: https://samsaffron.com/archive/2018/02/16/reducing-string-duplication-in-ruby
2020-04-30 16:48:53 +10:00
..
001-redis.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
002-freedom_patches.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
003-sql_builder.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
004-message_bus.rb FEATURE: Stricter rules for user presence 2020-03-26 17:36:52 +11:00
005-site_settings.rb FIX: Fix rake db:create after zeitwerk changes 2019-10-08 12:22:34 +01:00
006-ensure_login_hint.rb FEATURE: SKIP_DB_AND_REDIS env var (#7756) 2019-06-13 12:58:27 +10:00
006-mini_profiler.rb FIX: Ignore secure-media-uploads for miniprofiler (#9070) 2020-02-28 12:11:30 +10:00
008-rack-cors.rb FEATURE: Stricter rules for user presence 2020-03-26 17:36:52 +11:00
009-omniauth.rb DEV: Drop legacy OpenID 2.0 support (#8894) 2020-02-07 17:32:35 +00:00
012-web_hook_events.rb DEV: Use more specific error responses (#9472) 2020-04-21 03:50:20 +02:00
013-excon_defaults.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
014-track-setting-changes.rb PERF: Cache Category.subcategory_ids (#9350) 2020-04-09 15:42:24 +03:00
099-anon-cache.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
099-drain_pool.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-i18n.rb FIX: Failed to restore backups from versions without translation overrides 2020-03-14 00:00:22 +01:00
100-logster.rb DEV: Bump logster version to 2.6.1 and enable new logster feature 2020-02-07 13:35:26 +00:00
100-oj.rb DEV: default Oj to compat mode 2020-01-16 07:52:28 +11:00
100-onebox_options.rb FIX: include onebox default options in development environment 2019-11-07 15:42:53 +05:30
100-push-notifications.rb FIX: Make initializer work on first db:migrate 2019-07-30 10:23:24 +02:00
100-quiet_logger.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-secret_token.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-session_store.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-sidekiq.rb PERF: avoid shelling to get hostname aggressively 2020-02-18 15:13:19 +11:00
100-silence_logger.rb DEV: stop freezing frozen strings 2020-04-30 16:48:53 +10:00
100-strong_parameters.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-verify_config.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-watch_for_restart.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
100-wrap_parameters.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
101-lograge.rb DEV: check for specifics when looking at ENABLE_LOGRAGE 2019-06-13 15:59:20 +10:00
200-first_middlewares.rb REFACTOR: Move the multisite middleware to the front 2020-04-02 16:44:44 +01:00
300-perf.rb FEATURE: add hook after all initializers 2019-08-26 10:49:26 +10:00
000-mini_sql.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
000-post_migration.rb FIX: Migration paths were being forgotten 2019-12-16 14:13:47 -05:00
000-trace_pg_connections.rb DEV: Silence spurious rubocop lint warning 2020-02-19 13:10:30 +11:00