Commit Graph

92 Commits

Author SHA1 Message Date
Go MAEDA
a1b5495e89 Fix Rubocop Style/ArgumentsForwarding (#42496).
git-svn-id: https://svn.redmine.org/redmine/trunk@23698 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-21 05:57:01 +00:00
Go MAEDA
1d0a389b40 Update RuboCop to 1.74 (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23637 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-12 01:52:56 +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
Marius Balteanu
fb37d2e4fa Upgrade to Rails 7.2.0 (#36320).
Patch by Takashi Kato (user:tohosaku). 


git-svn-id: https://svn.redmine.org/redmine/trunk@22960 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-20 05:54:30 +00:00
Go MAEDA
79873291d7 Fix RuboCop offense Layout/EmptyLinesAroundModuleBody, one of the offenses enabled in rubocop-rails-omakase (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22951 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 07:51:45 +00:00
Go MAEDA
32b5992c22 Fix RuboCop offense Style/MapCompactWithConditionalBlock (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22919 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-11 08:48:35 +00:00
Marius Balteanu
18cb44684b Introduces Redmine::Plugin#attachment_object_type to provide better API for registering plugin models having attachments (#39948, #39862).
Patch by Jens Krämer (@jkraemer).

git-svn-id: https://svn.redmine.org/redmine/trunk@22747 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-27 07:06:47 +00:00
Marius Balteanu
38d950df55 Remove current year from source file copyright headers and update year in footer to 2024 (#40043).
git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-26 22:55:54 +00:00
Go MAEDA
61e223f698 Fix RuntimeError on reload! in the Rails console (#38155).
Patch by Thomas Löber (@tloeber).


git-svn-id: https://svn.redmine.org/redmine/trunk@22681 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-05 13:39:02 +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
380444f085 Fix RuboCop offense Performance/StringIdentifierArgument (#39888).
git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-20 09:23:05 +00:00
Marius Balteanu
ac36333e90 Fix typo (#36320).
git-svn-id: https://svn.redmine.org/redmine/trunk@22506 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-10 03:24:34 +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
945a82b5c0 <=> operator should return nil when invoked with an incomparable object (#38772).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22269 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-06-29 14:42:54 +00:00
Go MAEDA
32d2b1c42f Fix RuboCop offense Style/InverseMethods: Use present? instead of inverting blank? (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@22152 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-03-25 01:32:23 +00:00
Go MAEDA
92bd67c279 Update copyright year to 2023 (#38141).
git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 06:19:35 +00:00
Go MAEDA
a749a6dd83 Database migrations don't run correctly for plugins when specifying the VERSION env variable (#31116).
Contributed by crypto gopher.


git-svn-id: https://svn.redmine.org/redmine/trunk@21933 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-30 06:26:02 +00:00
Marius Balteanu
40ffbff49d Fix Redmine::Plugin.assets_directory is not working after r21283 (#36835).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@21498 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-24 16:47:54 +00:00
Go MAEDA
3686b77eb6 Update copyright year in source files to 2022 (#36379).
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 05:29:10 +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
f223f707da Fix "ArgumentError: wrong number of arguments (given 1, expected 2) on Redmine::PluginTest#test_migrate_redmine_plugin" (#29914, #32939).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@20888 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 15:02:47 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Toshi MARUYAMA
d9ef95afd3 shorten long line of lib/redmine/plugin.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20591 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-09 14:11:45 +00:00
Toshi MARUYAMA
2abe24bc66 remove spaces inside {} of lib/redmine/plugin.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20448 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-20 11:36:29 +00:00
Go MAEDA
b59af050cb Adds a hook after all plugins have been loaded (#34072).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@20151 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-20 00:02:10 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Toshi MARUYAMA
72fec3ae02 code cleanup: rubocop: fix Layout/SpaceAroundBlockParameters in lib/redmine/plugin.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18715 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-17 16:14:45 +00:00
Toshi MARUYAMA
caefd6d115 code cleanup: rubocop: fix Layout/ElseAlignment in lib/redmine/plugin.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18703 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-17 11:22:06 +00:00
Go MAEDA
9eafc3e9a2 Remove trailing whitespaces from lib (#31506).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-06 14:50:14 +00:00
Go MAEDA
4082069c75 Update copyright year.
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
b0e17e8199 Don't rescue Exception class (#31387).
Patch by Go MAEDA and Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 06:50:25 +00:00
Go MAEDA
9cce7e85a2 Raise an exception if the plugin directory name differs from the plugin id (#31110).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18064 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-19 15:30:41 +00:00
Go MAEDA
07b3087fda Enable frozen_string_literal for some files under app and lib directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 09:37:35 +00:00
Jean-Philippe Lang
b916bc8092 Include plugin name in the exception when the plugin required by requires_redmine_plugin is not found (#31030).
Patch by Jérôme BATAILLE and Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@17960 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 08:01:10 +00:00
Jean-Philippe Lang
2010cdc1a3 Add plugin lib directory to rails autoload paths (#30753).
git-svn-id: http://svn.redmine.org/redmine/trunk@17958 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 07:58:07 +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
Go MAEDA
49b1aeee59 Add plugin directories to rails autoload paths (#30753).
Patch by Florian Schwab.


git-svn-id: http://svn.redmine.org/redmine/trunk@17923 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-04 11:33:21 +00:00
Go MAEDA
f65f1d37bf Plugin eager_load should depend on environment setting instead of name (#30725).
Patch by Florian Schwab.


git-svn-id: http://svn.redmine.org/redmine/trunk@17841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-01 09:03:53 +00:00
Jean-Philippe Lang
b345aa7ad6 Update Redmine::Plugin documentation (#28996).
git-svn-id: http://svn.redmine.org/redmine/trunk@17661 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-29 17:19:08 +00:00
Jean-Philippe Lang
5b189317a9 Removed message to stdout (#28934).
git-svn-id: http://svn.redmine.org/redmine/trunk@17535 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-09-29 09:22:07 +00:00
Jean-Philippe Lang
daa7d2ba18 Support migration context for plugins (#28934).
git-svn-id: http://svn.redmine.org/redmine/trunk@17514 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-09-23 14:22:29 +00:00
Go MAEDA
bff0fbce8b Remove RDoc tags (#28943).
Patch by Sho HASHIMOTO.


git-svn-id: http://svn.redmine.org/redmine/trunk@17370 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-08 00:55:41 +00:00
Jean-Philippe Lang
784b9f4aca Rails 5: "Page not found" error when accessing a page of a plugin in production mode (#26636).
Patch by Akiko Takano.

git-svn-id: http://svn.redmine.org/redmine/trunk@17293 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-08 13:45:27 +00:00
Toshi MARUYAMA
6455e0431f fix "schema_migrations_table_name is deprecated" warning during redmine:plugins:migrate (#26615)
Contributed by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16962 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-08-31 15:57:43 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
7b6e6b9370 Removes plugins_path from configuration file (#24007).
git-svn-id: http://svn.redmine.org/redmine/trunk@16675 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-17 10:40:51 +00:00
Jean-Philippe Lang
7a9a22f3dd Change plugins directory through the configuration.yml file (#24007).
Patch by Helder Manuel Torres Vieira.

git-svn-id: http://svn.redmine.org/redmine/trunk@15963 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-11-18 12:14:41 +00:00
Jean-Philippe Lang
cda9c63d9c Updates copyright for 2016.
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
15c7066dde Plugin migration directory should use plugin directory (#14402).
git-svn-id: http://svn.redmine.org/redmine/trunk@14364 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-21 16:32:27 +00:00
Jean-Philippe Lang
0a6f936626 Updates #wiki_format_provider plugin API with changes to wiki formatting (#20141).
git-svn-id: http://svn.redmine.org/redmine/trunk@14363 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-21 16:29:25 +00:00