Marius Balteanu
b88b61444c
Update Rails to 8.1.1 ( #43428 , #43205 ).
...
Patches by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@24248 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-01 18:35:05 +00:00
Go MAEDA
a25321e1e7
Fix assets are not compiled on startup in production mode with Propshaft 1.3.0 ( #43396 ).
...
Patch by Takashi Kato (user:tohosaku) and Takenori TAKAKI (user:takenory).
git-svn-id: https://svn.redmine.org/redmine/trunk@24132 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-11-06 23:51:29 +00:00
Marius Balteanu
928f57073e
Ensures that @Redmine::PluginLoader.load@ is executed before @Doorkeeper.configure@ in order to properly load plugin permissions ( #24808 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-25 05:36:13 +00:00
Marius Balteanu
2d3b3b939e
Add OAuth2 provider capability using doorkeeper gem ( #24808 ).
...
Patch by Jens Krämer (user:jkraemer).
git-svn-id: https://svn.redmine.org/redmine/trunk@23837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-12 07:09:03 +00:00
Marius Balteanu
e56d84b632
Reverts r23835 due to wrong issue ID ( #40856 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23836 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-12 07:05:01 +00:00
Marius Balteanu
ebdd1a40f4
Add OAuth2 provider capability using doorkeeper gem ( #40856 ).
...
Patch by Jens Krämer (user:jkraemer).
git-svn-id: https://svn.redmine.org/redmine/trunk@23835 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-11 20:30:44 +00:00
Marius Balteanu
53da670334
Removes custom backend @Redmine::I18n::Backend@ ( #42859 ):
...
* move custom logic to get the available locales by looking at translation file names to @config.i18n.available_locales@ option.
* remove unnecessary fallback include which does the same thing as @config.i18n.fallbacks = true@.
* include custom pluralization rules as Rails suggests.
git-svn-id: https://svn.redmine.org/redmine/trunk@23830 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-06-11 20:07:28 +00:00
Marius Balteanu
a34072aca8
Fixed an issue where Redmine would not start due to an error in Propshaft ( #39111 ).
...
Patch by user:hidakatsuya.
git-svn-id: https://svn.redmine.org/redmine/trunk@23212 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-05 16:01:27 +00:00
Marius Balteanu
826980bc40
Upgrades propshaft to 1.1.0 ( #39111 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@23174 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-31 08:17:01 +00:00
Marius Balteanu
88519264cf
Adds asset path to default to support old style theme ( #39111 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@23173 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-31 08:15:57 +00:00
Go MAEDA
93645a279e
Use anonymous block forwarding introduced in Ruby 3.1 ( #38585 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22973 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-21 00:46:15 +00:00
Go MAEDA
c069ea3a24
Use Array#intersect? introduced in Ruby 3.1 ( #38585 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22972 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-20 23:40:58 +00:00
Marius Balteanu
9d50075279
Replaces removed ActiveSupport::Deprecation.warn with custom deprecators ( #41141 , #36320 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@22961 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-20 05:58:38 +00:00
Go MAEDA
0ddcb9afff
Fix RuboCop offense Layout/EmptyLineBetweenDefs ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22939 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-19 08:47:05 +00:00
Go MAEDA
b42d7984b1
Fix RuboCop offense Style/SuperArguments ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22842 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-23 11:25:16 +00:00
Marius Balteanu
f59ac49dea
Remove overrides that inserts a non-breaking space (nbsp) to empty option elements ( #40210 ).
...
Patch by Go MAEDA (maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@22701 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-10 10:28:35 +00:00
Marius Balteanu
34f1c52e23
Move public assets (images, javascripts, stylesheets, themes) to app/assets ( #39111 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22696 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-07 20:55:00 +00:00
Marius Balteanu
0fa0848521
Reverts r22694 ( #39111 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22695 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-07 20:48:26 +00:00
Marius Balteanu
9b540ae8af
Move public assets (images, javascripts, stylesheets, themes) to app/assets ( #39111 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22694 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-07 20:44:44 +00:00
Go MAEDA
ae971404cc
Fix RuboCop offense Lint/RedundantDirGlobSort ( #38585 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22651 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-27 06:01:10 +00:00
Marius Balteanu
c99bb27e27
Add Propshaft library to enable the asset pipeline without modifying existing assets ( #39111 ).
...
Patch by Takashi Kato (@tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@22626 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-25 05:38:33 +00:00
Go MAEDA
84c1558be3
Fix RuboCop offense Layout/EmptyLinesAroundModuleBody ( #38975 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22621 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-24 02:32:44 +00:00
Marius Balteanu
13aeb797cf
Use ApplicationRecord instead of ActiveRecord::Base ( #38975 ).
...
Patch by Minoru Maeda (@maeda-m).
git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-23 11:52:38 +00:00
Go MAEDA
6ea1fd551d
Remove backported Rack::RewindableInput.size method due to Rack 3.0 migration ( #36320 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22615 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-21 03:58:09 +00:00
Marius Balteanu
6b82aef321
Switch default backend of ActiveSupport::XmlMini from rexml to Nokogiri ( #37258 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22599 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-11 06:16:17 +00:00
Go MAEDA
52a55f407b
Replace String#sub with delete_prefix / delete_suffix ( #40008 ).
...
Patch by Go MAEDA (@maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@22596 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-08 01:04:37 +00:00
Go MAEDA
c51e4937e7
Fix RuboCop offense Style/SuperWithArgsParentheses ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22530 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-20 07:15:11 +00:00
Marius Balteanu
c0f3fefa44
Fix failing API tests on Ruby 2.7 after migration to Rails 7.1 ( #36320 , #39760 ).
...
Patch by @maeda-m.
git-svn-id: https://svn.redmine.org/redmine/trunk@22509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-10 04:01:40 +00:00
Marius Balteanu
7b911245d3
Updates Rails to 7.1.2 ( #36320 ).
...
Patch by Takashi Kato.
git-svn-id: https://svn.redmine.org/redmine/trunk@22488 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-27 20:58:55 +00:00
Go MAEDA
0bb664e43c
Limit the year to 4 digits in date input ( #38231 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22161 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-03-30 01:11:19 +00:00
Go MAEDA
f376fb6867
Modifying the source code of a plugin does not reload it after r21295 ( #36273 ).
...
Patch by Takashi Kato.
git-svn-id: https://svn.redmine.org/redmine/trunk@21992 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-12-21 01:36:45 +00:00
Go MAEDA
531144e6dd
Fixes for Style/FileWrite offense introduced in RuboCop 1.24.0 ( #35136 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21322 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-24 05:30:56 +00:00
Go MAEDA
9955844da1
Drop OpenID support ( #35755 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21312 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-14 00:09:53 +00:00
Marius Balteanu
a914cf4c40
Switch to zeitwerk autoloader ( #29914 , #32938 ).
...
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21287 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-17 20:55:08 +00:00
Marius Balteanu
e82b0a77e3
Load core plugins using require ( #29914 , #32938 ).
...
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21286 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-17 20:52:59 +00:00
Marius Balteanu
0352ab71cf
Add core extensions in prepare method ( #29914 , #32938 ).
...
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21285 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-17 20:47:53 +00:00
Marius Balteanu
87097f2204
Move preparation code to redmine/preparation.rb ( #29914 , #32938 ).
...
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21284 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-17 20:45:39 +00:00
Marius Balteanu
838e719edf
Extract Redmine::PluginLoader from Redmine::Plugin ( #32938 ).
...
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21283 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-17 20:36:53 +00:00
Go MAEDA
e50050dd8c
Remove redefinition of ActionMailer::LogSubscriber#deliver which is no longer necessary because of the removal of Setting.bcc_recipients. ( #31035 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@21197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-19 13:53:07 +00:00
Go MAEDA
6369d139dd
Uploading a big file fails with NoMemoryError ( #33752 ).
...
Patch by Karel Pičman and Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@20993 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-05-11 05:35:19 +00:00
Go MAEDA
f1b1c2f471
Fix Subclasses must implement a find_templates(name, prefix, partial, details, locals = []) method ( #29914 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20883 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 14:46:15 +00:00
Toshi MARUYAMA
e7ba3cf008
code cleanup: rubocop: fix Rails/Presence in config/initializers/30-redmine.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18521 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-24 15:42:13 +00:00
Toshi MARUYAMA
fe6b965fd5
code cleanup: rubocop: fix Rails/Presence in config/initializers/10-patches.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18520 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-24 15:42:02 +00:00
Go MAEDA
db3ee07a55
Reverts r18245 ( #31582 , #31365 ).
...
Issue subjets are truncated in some cases when they are created via email.
git-svn-id: http://svn.redmine.org/redmine/trunk@18269 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 06:57:45 +00:00
Jean-Philippe Lang
7a66b3b1da
Issue subject may be broken if the subject field is split into multiple lines ( #31365 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18245 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-10 11:40:48 +00:00
Go MAEDA
069577c133
Add support for reloading plugin assets automatically in development mode ( #31457 ).
...
Patch by Kouhei Sutou.
git-svn-id: http://svn.redmine.org/redmine/trunk@18202 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-27 08:53:49 +00:00
Go MAEDA
24d76e94ef
Support frozen_string_literal in config/initializers/10-patches.rb ( #26561 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17983 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 03:29:15 +00:00
Go MAEDA
02b4449414
Enable frozen_string_literal for all files under config directory ( #26561 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17982 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 02:04:38 +00:00
Go MAEDA
d16369b67c
Enable frozen_string_literal for files which don't contain string literals ( #26561 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17981 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 01:47:12 +00:00
Go MAEDA
5861160ffc
Add "frozen_string_literal: false" for all files ( #26561 ).
...
This will be changed to true in the future.
git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00