Commit Graph

79 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
Jean-Philippe Lang
0c78056a69 Send emails asynchronously (#26791).
Custom async_* delivery methods are removed in favor of ActiveJob (Async by default).

git-svn-id: http://svn.redmine.org/redmine/trunk@17588 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-10 17:13:09 +00:00
Go MAEDA
b7f15fbadc Replace String#gsub with faster String#tr (#29363).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17469 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-08-12 23:40:44 +00:00
Toshi MARUYAMA
26f7d35ee3 add newline at end of config/initializers/10-patches.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@16880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-25 13:41:56 +00:00
Jean-Philippe Lang
b99c3caae8 Renames column comments.comments to comments.content to please Rails 5.1 (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16860 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:40:14 +00:00
Jean-Philippe Lang
d74f0bfd5c Merged rails-5.1 branch (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
Jean-Philippe Lang
df347c5c01 Restore timestamp in asset paths (#24617).
Patch by Hiroshi Shirosaki.

git-svn-id: http://svn.redmine.org/redmine/trunk@16448 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-03 05:49:16 +00:00
Jean-Philippe Lang
9d9e26317a Don't use alias_chain_method.
git-svn-id: http://svn.redmine.org/redmine/trunk@15660 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 07:55:36 +00:00
Jean-Philippe Lang
dfb78be2a7 Code cleanup (#22383).
git-svn-id: http://svn.redmine.org/redmine/trunk@15331 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-12 19:07:54 +00:00
Jean-Philippe Lang
223141a20b Support of default Active Record (I18n) transliteration paths (#22383).
Patch by Ivan Zabrovskiy.

git-svn-id: http://svn.redmine.org/redmine/trunk@15330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-12 18:54:28 +00:00
Jean-Philippe Lang
5b1fb525b8 Error when using views/issues/index.api.rsb in a plugin (#13924).
git-svn-id: http://svn.redmine.org/redmine/trunk@14375 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-27 08:04:21 +00:00
Jean-Philippe Lang
d85f73a30d Upgrade to Rails 4.2.0 (#14534).
git-svn-id: http://svn.redmine.org/redmine/trunk@13892 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-17 17:02:55 +00:00
Jean-Philippe Lang
e3618bdbec Add support for multiple email addresses per user (#4244).
git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-17 14:14:12 +00:00
Jean-Philippe Lang
1a851318fd Replaces awesome_nested_set gem with a simple and more robust implementation of nested sets.
The concurrency tests added in this commit trigger dead locks and/or nested set inconsistency with awesome_nested_set.

git-svn-id: http://svn.redmine.org/redmine/trunk@13841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 20:19:49 +00:00
Jean-Philippe Lang
2d1866d966 Merged rails-4.1 branch (#14534).
git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 17:37:16 +00:00
Toshi MARUYAMA
b4c903c035 remove awesome_nested_set patch from config/initializers/10-patches.rb (#6579)
git-svn-id: http://svn.redmine.org/redmine/trunk@13147 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-05-24 10:17:50 +00:00
Toshi MARUYAMA
82fa2cf79a add patch for regression of Hash#reject in Ruby 2.1.1 (#16194)
git-svn-id: http://svn.redmine.org/redmine/trunk@13115 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-05-01 01:59:39 +00:00
Toshi MARUYAMA
ba75aa504b move r12689 awesome_nested_set modification to config/initializers/10-patches.rb (#7920)
git-svn-id: http://svn.redmine.org/redmine/trunk@12733 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-27 06:47:46 +00:00
Toshi MARUYAMA
94e3eb2b8b move awesome_nested_set leaf? modification to config/initializers/10-patches.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@12682 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-20 17:54:47 +00:00
Jean-Philippe Lang
e162f87964 Replaces <option value=""></option> which is not HTML5 valid (#15191).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12237 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-10-26 08:08:45 +00:00
Jean-Philippe Lang
f09be68323 Adds cc and bcc to email log messages (#12090).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10683 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-21 03:38:54 +00:00
Jean-Philippe Lang
af5a814f4c Prevents "Overwriting existing method Issue.open" warning (#11545).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10208 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-08-17 14:34:10 +00:00
Jean-Philippe Lang
d79bcc4369 Fixed that text email templates are escaped (#11355).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10205 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-08-13 19:05:42 +00:00