Commit Graph

49 Commits

Author SHA1 Message Date
Jan Sandbrink ba2cec4629 Remove Bootsnap
It's a gem that is intimately coupled with the
implementation of Ruby, which adds chances to
introduce errors in random pieces of code that
would not exist otherwise.

Capturing the room temperature among core contributors
to OpenProject showed that no one was there to defend
the presence of Bootsnap and some people (including myself)
had an opinion on removing it.
2026-05-06 07:52:03 +02:00
Alexander Brandon Coles 78ed9ea580 Freeze string literals in config
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze config
2025-08-19 17:04:00 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard 8fa8584538 Run rubocop --autocorrect on all files
Only the safe cops have run. rubocop version is 1.59.0.
2024-01-05 15:27:09 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
ulferts cb63949c58 replace deprecated File.exists? 2022-01-24 13:25:19 +01:00
Oliver Günther 349a15b3af Revert "Revert "bump ruby to 3.0""
This reverts commit 4f83d28651.
2022-01-11 09:40:32 +01:00
ulferts 4f83d28651 Revert "bump ruby to 3.0"
This reverts commit 632e2c9f41.
2022-01-11 07:11:02 +01:00
ulferts 632e2c9f41 bump ruby to 3.0 2022-01-07 13:28:51 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
Oliver Günther f63d0c981d Use StructuredWarning to disable builtin and deprecations used with it 2020-09-02 08:16:18 +02:00
Oliver Günther 3ab94fde79 Silence deprecation warnings in production mode 2020-09-02 08:08:13 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
ulferts f1142c6654 move AccessControl into OpenProject namespace 2019-05-31 20:36:32 +02:00
Oliver Günther eab27c230f Fix dockerfile on 8.3.0
[ci skip]
2019-03-07 16:38:15 +01:00
Oliver Günther 4bb14e2a62 Upgrade to Rails 5.2 2018-12-03 10:29:18 +01:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther ed1a0c87de [25999] Make timeline labels configurable
https://community.openproject.com/wp/25999
2017-08-22 13:04:11 +02:00
Oliver Günther cc86742496 Experiment: bootsnap (#5540)
[ci skip]
2017-08-09 11:19:46 +02:00
Oliver Günther f28e88e89f [25464] Optional additional_boot instructions to evaluate early
The hashie warnings from 25464 are evalauted early on while bundler requires all necessary gems,
so silencing them is not possible without modifications to the code, subject to be overridden on each release.

Since there may be other instructions before Rails boots, let's add a simple `additional_boot.rb` functionality
similary to the `additional_environment.rb`, that a user MAY use to provide these statements.

https://community.openproject.com/projects/openproject/work_packages/25464/activity
2017-06-14 11:37:37 +02:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Alex Coles fe39696801 Update Rails configs: boot.rb
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-09-13 14:45:51 +02:00
Alex Coles 3d30080d12 Update Rails configs: boot.rb
Based on freshly-generated Rails 4.0.13 application.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-06-06 15:30:25 +02:00
Alex Coles e0191e759c Update year in copyright header to 2015
[ci skip]
2015-01-01 00:02:57 +00:00
Johannes Wollert 8b096975fe updates copyright headers
updates more copyright

more copyright headers
2014-02-27 16:39:51 +01:00
Philipp Tessenow a1e67dd460 new copyright header #1903 2013-09-16 17:59:31 +02:00
Jens Ulferts 21459a384f provide every possible file with a short copyright notice
This was done using the rake task: rake copyright:update
2013-06-07 10:49:57 +02:00
Jens Ulferts 4e42f69ba4 adds/modifies files required for starting the application with rails 3 2012-07-31 10:04:59 +02:00
Holger Just 91070236db Set source encoding to UTF-8 2011-10-29 14:48:03 +02:00
Holger Just 07185fb169 [#436] Remove trailing whitespace 2011-05-30 20:52:25 +02:00
Eric Davis 99507a0391 [#197] Upgrade the copyright in the code files 2011-05-29 13:11:52 -07:00
Gregor Schmidt 87d8634b04 [#290] using bundler
* following setup instructions from http://gembundler.com/rails23.html
* adding generated files to .gitignore and .hgignore
* removing config.gem calls
* adding Gemfile that should work with all supported dbs and interpreters
* removing work-around for rubygems 1.5 deprecation. this seems to be fixed since now bundler handles the gem loading
2011-05-10 08:40:42 +02:00
Eric Davis d29315341d [#196 #216 #216] Complete the upgrade to Rails 2.3.11 2011-05-06 15:44:38 -07:00
Gregor Schmidt da45dfcc72 adding require 'thread' since active support needs it but rubygems 1.6 removed it
fixes #251
2011-03-02 14:56:21 +01:00
Thibaut Deloffre 28bbee155c [#133] Provide workaround for rubygems 1.5 compatibility
Remove the deprecation warnings for version_requirements with rubygems < 1.5
and allow ChiliProject to run with rubygems >= 1.5.
2011-02-22 14:51:13 +01:00
Jean-Philippe Lang 3c1576e364 Manually require i18n 0.4.2 before Rails tries to load the most recent gem (#7013).
This workaround makes Redmine work even if i18n 0.5.0 gem is installed.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4516 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-17 08:34:29 +00:00
Eric Davis 7b0cb6aba8 Upgraded to Rails 2.3.4 (#3597)
* Ran the Rails upgrade
* Upgraded to Rails Engines 2.3.2
* Added a plugin to let Engines override application views.
* Converted tests to use the new classes:
** ActionController::TestCase for functional
** ActiveSupport::TestCase for units
* Converted ActiveRecord::Error message to a string.
* ActiveRecord grouping returns an ordered hash which doesn't have #sort!
* Updated the I18n storage_units format.
* Added some default initializers from a fresh rails app
* Changed the order of check_box_tags and hidden_field_tags.  The hidden tag
  needs to appear first in Rails 2.3, otherwise it will override any value in
  the check_box_tag.
* Removed the custom handler for when the cookie store is tampered with.
  Rails 2.3 removed the TamperedWithCookie exception and instead Rails will not
  load the data from it when it's been tampered with (e.g. no user login).
* Fixed mail layouts, 2.3 has problems with implicit multipart emails that
  use layouts.  Also removed some custom Redmine mailer code.
* Fixed a bug that occurred in tests where the "required" span tag would be
  added to the :field_status translation.  This resulted in an email string of:

    <li>Status<span class="required"> *</span><span class="required"> *</span>

  Instead of:

    <li>Status: New</li>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2887 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-13 17:14:35 +00:00
Jean-Philippe Lang fe28193e4e Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-21 11:04:50 +00:00
Jean-Philippe Lang 1f1fd9e034 Expand RAILS_ROOT path on startup (#1892).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1820 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-09-13 18:32:37 +00:00
Jean-Philippe Lang 7cdd88a6ce Merged Rails 2.1 compatibility branch.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1623 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-07-04 17:58:14 +00:00
Jean-Philippe Lang 96f83cc8f0 trunk moved from /trunk/redmine to /trunk
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81
2006-12-05 20:45:04 +00:00