Go MAEDA
2fe36c4128
Fix RuboCop offense Style/RedundantInterpolationUnfreeze ( #39887 ).
...
Since interpolated strings are always unfrozen in Ruby 3.0 and later, the use of `+""` is now redundant.
git-svn-id: https://svn.redmine.org/redmine/trunk@23001 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-09-01 00:38:01 +00:00
Go MAEDA
a9518e28b8
Fix RuboCop offense Rails/HttpStatus ( #39889 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-18 05:56:55 +00:00
Marius Balteanu
b4bfb6b581
Replaces use of Digest::MD5 / Digest::SHA1 with ActiveSupport::Digest ( #35217 ).
...
Patch by Jens Krämer (@jkraemer).
git-svn-id: https://svn.redmine.org/redmine/trunk@22816 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-07 18:36:46 +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
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
Marius Balteanu
54afecb2ca
Revert r21883 which was an workaround for #37626 ( #37732 , #36320 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22489 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-29 07:11:50 +00:00
Go MAEDA
c6fdc7db86
Redirect to repositories#show after repository#fetch_changesets to avoid the user-visible browser URL ( #39238 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22414 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-31 12:45:15 +00:00
Go MAEDA
4973c9014b
Set a strict CSP policy for downloaded attachments, thumbnails, and raw repository files( #38417 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22295 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-09-18 02:16:36 +00:00
Go MAEDA
21a6fc71d6
Fix RuboCop offense Performance/MapMethodChain ( #37247 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22280 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-08-23 09:05:20 +00:00
Go MAEDA
d97beec1d4
Add "View annotation prior to this change" button in the annotate view of Git ( #35432 ).
...
Patch by Takenori TAKAKI.
git-svn-id: https://svn.redmine.org/redmine/trunk@22217 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-30 04:00:57 +00:00
Go MAEDA
90569a4ed0
Code cleanup of RepositoriesController#annotate ( #35432 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22215 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-29 06:59:40 +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
Marius Balteanu
5b78b045b1
Fix rubocop warning ( #37626 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@21886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-02 12:47:33 +00:00
Marius Balteanu
e9adf8088d
Add to do to fix the deprecation warning ( #37626 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@21884 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-02 09:59:11 +00:00
Marius Balteanu
dc54c7a721
Fix show diff of a javascript file in repository module is displayed without layout ( #37626 ).
...
Patch by Trang Tran Thi Quynh.
git-svn-id: https://svn.redmine.org/redmine/trunk@21883 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-02 08:53:09 +00:00
Go MAEDA
8c1fda0b5d
Repository tab is not displayed if no repository is set as the main repository ( #33953 ).
...
Patch by Yuichi HARADA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21741 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-07-27 15:35:25 +00:00
Marius Balteanu
f286a6044b
Deprecate and rename rss_* methods to atom_* methods ( #15118 ).
...
Patch by Mischa The Evil and Marius BĂLTEANU
git-svn-id: http://svn.redmine.org/redmine/trunk@21467 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-19 09:56:46 +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
Go MAEDA
1cf427ee63
Stricter validation of given revisions of repositories ( #35085 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@20962 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-23 00:46:45 +00:00
Go MAEDA
ec989a5420
Fix "DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated: common/error_messages.api" ( #29914 , #34984 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@20897 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 15:36:57 +00:00
Go MAEDA
a7b96ae2ab
Reverts r20895 ( #29914 , #34985 ).
...
Wrong issue number.
git-svn-id: http://svn.redmine.org/redmine/trunk@20896 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 15:34:21 +00:00
Go MAEDA
d67eeabd53
Fix "DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated: common/error_messages.api" ( #29914 , #34985 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@20895 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 15:27:33 +00:00
Go MAEDA
a4ee2963fb
Associated Revision API ( #22008 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20852 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-26 04:37:14 +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
Go MAEDA
4dfa6fc724
Allow manually fetching changesets ( #8875 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20772 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-11 07:00:09 +00:00
Toshi MARUYAMA
9d628068b7
remove spaces inside {} of RepositoriesController
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20107 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-02 12:59:29 +00:00
Toshi MARUYAMA
69e2e8f653
add empty line after guard clause to RepositoriesController
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20106 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-02 12:59:22 +00:00
Toshi MARUYAMA
95ba0ea3c4
add space after comma to RepositoriesController
...
git-svn-id: http://svn.redmine.org/redmine/trunk@20099 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-02 12:58:27 +00:00
Go MAEDA
af36d450e4
Reverts r19569 ( #33071 ).
...
404 error after deleting an attachment.
git-svn-id: http://svn.redmine.org/redmine/trunk@19579 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-14 03:49:44 +00:00
Go MAEDA
463e8163fc
Require sudo mode for actions to delete contents ( #33071 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19569 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-10 03:26:23 +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
Go MAEDA
cc900c0e07
Diff view for .js files in repositories is broken ( #32449 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19531 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-27 01:19:11 +00:00
Go MAEDA
a0b909d523
Repository browser does not render previews for audio/video files ( #32153 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19492 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-04 05:32:04 +00:00
Toshi MARUYAMA
217b091143
code cleanup: rubocop: fix Layout/LeadingCommentSpace in app/controllers/repositories_controller.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18473 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-15 15:08:49 +00:00
Toshi MARUYAMA
f76a85dc5a
scm: fix error when *.yml and *.txt show ( #31141 , #30850 )
...
Contributed by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18211 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-30 12:49:07 +00:00
Toshi MARUYAMA
e0738ac6e9
scm: early return in diff if diff is nil as same as show, changes, and etc. ( #31141 , #30850 )
...
Contributed by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18206 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-30 06:57:09 +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
6d6ea928c8
Custom Exception classes should inherit StandardError instead of Exception ( #31387 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18187 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-21 23:53:10 +00:00
Go MAEDA
72e1451159
Use Regexp#match? to reduce allocations of MatchData object ( #28940 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-27 02:15:24 +00:00
Go MAEDA
7d2f10ccac
Fix FrozenError in RepositoriesController#diff ( #31052 , #26561 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17990 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-19 02:42:58 +00:00
Go MAEDA
bd5977d97e
Support frozen_string_literal in app/**/*.rb ( #26561 ).
...
Contributed by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17987 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 13:36:03 +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
7d615fd516
Repository entry pagination ( #29395 ).
...
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@17568 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-04 13:24:06 +00:00
Jean-Philippe Lang
5c30876f09
Render repository graphs using Chart.js instead of SVG ( #26253 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16699 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 13:51:33 +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
Toshi MARUYAMA
06babbec7e
remove is_binary_data? from String ( #25563 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16644 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-10 04:29:15 +00:00
Jean-Philippe Lang
5975bef084
Don't check that param is a Hash.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16606 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-03 09:20:58 +00:00
Jean-Philippe Lang
34c5b51cf0
Always send images user-uploaded images with Content-Disposition: attachment ( #24199 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@16285 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-29 08:03:26 +00:00
Jean-Philippe Lang
d8de3106ec
Code cleanup.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-04 16:44:53 +00:00
Jean-Philippe Lang
46044b48a3
Adds accessors for report_last_commit.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15885 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-04 16:40:24 +00:00