Commit Graph

11 Commits

Author SHA1 Message Date
9fea43e46a DEV: Remove use of cd in the app (#8337)
`FileUtils.cd` and `Dir.chdir` cause the working directory to change for the entire process. We run sidekiq jobs, hijacked requests and deferred jobs in threads, which can make working directory changes have unintended side-effects.

- Add a rubocop rule to warn about usage of Dir.chdir and FileUtils.cd
- Added rubocop:disable for scripts used outside the app
- Refactored code using cd to use alternative methods
- Temporarily skipped the rubocop check for lib/backup_restore. This will require more complex refactoring, so I will create a separate PR for review
2019-11-13 09:57:39 +00:00
cc46de8f46 s/discourse-staff-notes/discourse-user-notes (#7936) 2019-07-24 20:04:27 +02:00
30990006a9 DEV: enable frozen string literal on all files
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.

Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
4653627a40 update plugin-translations.rb script to update .tx/config file in plugins when languages are added or removed 2018-09-10 14:22:45 -04:00
30722240e4 add discourse-checklist to plugin-translations.rb 2018-08-23 10:00:27 -04:00
88217ca0b6 Configure Transifex for local-dates plugin 2018-05-04 10:13:15 +02:00
78435833a5 FEATURE: discourse-cronos is now a core plugin 2018-05-03 20:15:57 +02:00
17f9c5494d add discourse-chronos to plugin-translations.rb 2018-04-05 16:41:29 -04:00
421713f1be include saved-searches in plugin-translations.rb 2018-01-31 11:19:21 -05:00
86d13c0d62 Pull translations for discourse-characters-required plugin 2018-01-05 14:35:52 +01:00
3cba858930 add a script to update plugin translations from Transifex 2017-12-29 16:57:06 -05:00