55 Commits

Author SHA1 Message Date
Dombi Attila 90d54206a4 Add cooldown to the module Gemfiles too 2026-06-09 17:06:34 +03:00
Alexander 04f611b238 Freese strings in plugin generator 2025-07-30 18:31:53 +03:00
Oliver Günther fb2bca5608 Remove leftover files and licenses already covered in root folder 2024-08-08 14:43:03 +02: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
Ivan Kuchin 099bbf7244 change quotes in lib/generators/**/*.tt 2024-03-20 18:05:21 +01:00
Alexander c6c3bb267f Add version to gemspec 2024-03-07 06:56:26 +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
Aaron Contreras 8a72aa8c6d Namespace generator under open_project: 2023-09-22 08:05:02 -05:00
Aaron Contreras 50e8608393 Create RSpec "service" spec generator
This generator is born from the tediousness of having to set up
boilerplate code every time I need to write a new service spec.

As a developer, I'd like to be able to leverage the beauty of
Rails generators to aid in my productivity.

When writing a new service spec, I'd like two things:

* Provide conventions for a good service spec: We have thorough
  shared examples for services that are in-line with the behavior
  provided by BaseServices. I'd like to be able to uncomment and keep
  the action (Create, Update, Delete) shared examples that apply for
  the service I'm testing and benefit from these already great
  specs (and not to mention... remember that they exist).

* Provide some good starting points for repetitive setup: Most service
  specs that deviate a bit from Base Services' shared examples
  require some custom setup. I'd like to get a head start at this
  and focus only on tuning and extending with very specific criteria
  that my spec requires.
2023-09-22 08:05:01 -05:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02: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 fc6fe5e59c move require at the top of the file 2022-03-07 11:16:41 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther eeb2b7eefa Fix Generator namespace 2022-02-08 15:45:04 +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
ulferts 399e8c3ed9 rename according to zeitwerk 2020-02-21 20:47:25 +01:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 54d753262b Fix issues caused by eager loading in production 2019-07-15 15:41:38 +02:00
Oliver Günther 4bb14e2a62 Upgrade to Rails 5.2 2018-12-03 10:29:18 +01:00
Oliver Günther a94ba2431d Make module engines refer to core version 2018-11-20 08:41:24 +01:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Aidas Kasparas f6702eb532 Enable rails generators out of the box (#6043)
* Enable rails generators out of the box

Add bin/rails and Gemfile to generated plugin.
This enables use of rails generators in the generated plugin
right after including it into OP's Gemfile.plugins and setting OPENPROJECT_ROOT environment variable.

[ci skip]
2017-12-07 13:28:18 +01:00
Oliver Günther 391d3ada08 Merge remote-tracking branch 'origin/release/6.1' into dev 2017-01-11 15:46:46 +01:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Markus Kahl 70018d197b updated generated plugin and docs 2017-01-09 14:20:17 +00:00
Kiffin Gish a2a0d2428b Plugin generator gemspec template should use same rails version. 2017-01-05 23:22:09 +01:00
Alex Coles 639252f81e Update OpenProject URLs
See e7db3798.

[ci skip]

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2015-01-27 17:03:42 +01:00
Alex Coles e0191e759c Update year in copyright header to 2015
[ci skip]
2015-01-01 00:02:57 +00:00
Alex Coles 45297523c2 Fix syntax (w/Rubocop) in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-03 23:49:01 +01:00
Alex Coles e7400af52a Use 1.9+ Hash syntax in lib code
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-03 22:15:13 +01:00
Jens Ulferts 33de51d157 remove dependency from plugins plugin in generated gemspec 2014-07-25 13:49:15 +02:00
Alex Coles bba0c49d51 Amend copyright headers for plugins code
[ci skip]

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-07-24 17:30:51 +02:00
Sebastian Schuster 172b70fb77 Updated readme and copyright notices 2014-03-21 18:12:20 +01:00
Sebastian Schuster b47d565b26 Fixed non-functional plugin generation taking this gem from github
Also small readme fixes

Conflicts:
	lib/open_project/plugins/engine.rb
	openproject-plugins.gemspec
2014-02-26 16:17:44 +01:00
Michael Frister 737b5993ad Generator: Add explicit require to fix load-order problems 2013-11-19 10:01:18 +01:00
Michael Frister ab7c779e80 Generator: Add dependency on openproject-plugins to gemspec 2013-09-25 16:21:24 +01:00
Philipp Tessenow c266b7e54d harmonize copyright header 2013-09-24 15:14:41 +02:00
Philipp Tessenow 12f6f88485 update copyright header 2013-09-17 12:05:22 +02:00
Michael Frister 6bb5d08ca5 Update generator and Gemspec to match modified register method 2013-09-16 16:09:42 +01:00
Michael Frister d54a673af5 Fix homepage URL in generated gemspec 2013-09-13 08:49:20 +01:00
Philipp Tessenow cacb4f3e5d prepare for release 2013-09-10 10:15:24 +02:00
Michael Frister 53de1ef7a7 Readme template: Fix heading 2013-09-03 09:16:32 +01:00
Michael Frister ce91ba8533 Update engine.rb generator to include register 2013-08-29 14:38:43 +01:00
Michael Frister 671b02df2a Generate readme, remove development dependencies, update Rails version 2013-08-09 15:44:19 +01:00