From d2af670dba8e4c2e8e79cf8b3b8a9e5cc3ccb4f0 Mon Sep 17 00:00:00 2001 From: zzak Date: Thu, 23 Feb 2023 19:38:16 +0900 Subject: [PATCH] Remove Copyright years (#47467) * Remove Copyright years * Basecamp is now 37signals... again Co-authored-by: David Heinemeier Hansson --------- Co-authored-by: David Heinemeier Hansson --- MIT-LICENSE | 2 +- actioncable/MIT-LICENSE | 2 +- actioncable/lib/action_cable.rb | 2 +- actionmailbox/MIT-LICENSE | 2 +- actionmailer/MIT-LICENSE | 2 +- actionmailer/lib/action_mailer.rb | 2 +- actionpack/MIT-LICENSE | 2 +- actionpack/lib/action_dispatch.rb | 2 +- actionpack/lib/action_pack.rb | 2 +- actiontext/MIT-LICENSE | 2 +- actiontext/package.json | 2 +- actionview/MIT-LICENSE | 2 +- actionview/app/javascript/MIT-LICENSE | 2 +- actionview/lib/action_view.rb | 2 +- activejob/MIT-LICENSE | 2 +- activejob/lib/active_job.rb | 2 +- activemodel/MIT-LICENSE | 2 +- activemodel/lib/active_model.rb | 2 +- activerecord/MIT-LICENSE | 2 +- activerecord/lib/active_record.rb | 2 +- activestorage/MIT-LICENSE | 2 +- activestorage/lib/active_storage.rb | 2 +- activesupport/MIT-LICENSE | 2 +- activesupport/lib/active_support.rb | 2 +- railties/MIT-LICENSE | 2 +- .../generators/rails/plugin/templates/MIT-LICENSE.tt | 2 +- railties/test/generators/plugin_generator_test.rb | 9 +++++++++ 27 files changed, 35 insertions(+), 26 deletions(-) diff --git a/MIT-LICENSE b/MIT-LICENSE index 83667355ca..f12cfa766c 100644 --- a/MIT-LICENSE +++ b/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2005-2023 David Heinemeier Hansson +Copyright (c) David Heinemeier Hansson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/actioncable/MIT-LICENSE b/actioncable/MIT-LICENSE index 2d6b1f8e97..be1075927c 100644 --- a/actioncable/MIT-LICENSE +++ b/actioncable/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2015-2023 Basecamp, LLC +Copyright (c) 37signals LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/actioncable/lib/action_cable.rb b/actioncable/lib/action_cable.rb index 7e1870cdc4..4e6ea5eb43 100644 --- a/actioncable/lib/action_cable.rb +++ b/actioncable/lib/action_cable.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2015-2023 Basecamp, LLC +# Copyright (c) 37signals LLC # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/actionmailbox/MIT-LICENSE b/actionmailbox/MIT-LICENSE index fb21f82fa8..18b341857b 100644 --- a/actionmailbox/MIT-LICENSE +++ b/actionmailbox/MIT-LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018-2023 Basecamp, LLC +Copyright (c) 37signals LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/actionmailer/MIT-LICENSE b/actionmailer/MIT-LICENSE index 43725da6c5..7be9ac633f 100644 --- a/actionmailer/MIT-LICENSE +++ b/actionmailer/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2004-2023 David Heinemeier Hansson +Copyright (c) David Heinemeier Hansson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/actionmailer/lib/action_mailer.rb b/actionmailer/lib/action_mailer.rb index 1cea67f69e..7e222e049c 100644 --- a/actionmailer/lib/action_mailer.rb +++ b/actionmailer/lib/action_mailer.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2004-2023 David Heinemeier Hansson +# Copyright (c) David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/actionpack/MIT-LICENSE b/actionpack/MIT-LICENSE index 43725da6c5..7be9ac633f 100644 --- a/actionpack/MIT-LICENSE +++ b/actionpack/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2004-2023 David Heinemeier Hansson +Copyright (c) David Heinemeier Hansson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/actionpack/lib/action_dispatch.rb b/actionpack/lib/action_dispatch.rb index caa6f58509..3e983b3789 100644 --- a/actionpack/lib/action_dispatch.rb +++ b/actionpack/lib/action_dispatch.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2004-2023 David Heinemeier Hansson +# Copyright (c) David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/actionpack/lib/action_pack.rb b/actionpack/lib/action_pack.rb index 2487a3101a..057124751d 100644 --- a/actionpack/lib/action_pack.rb +++ b/actionpack/lib/action_pack.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2004-2023 David Heinemeier Hansson +# Copyright (c) David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/actiontext/MIT-LICENSE b/actiontext/MIT-LICENSE index 414073efdb..18b341857b 100644 --- a/actiontext/MIT-LICENSE +++ b/actiontext/MIT-LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2023 Basecamp, LLC +Copyright (c) 37signals LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/actiontext/package.json b/actiontext/package.json index fedc1250b3..786cc5f6fc 100644 --- a/actiontext/package.json +++ b/actiontext/package.json @@ -15,7 +15,7 @@ "bugs": { "url": "https://github.com/rails/rails/issues" }, - "author": "Basecamp, LLC", + "author": "37signals LLC", "contributors": [ "Javan Makhmali ", "Sam Stephenson " diff --git a/actionview/MIT-LICENSE b/actionview/MIT-LICENSE index 43725da6c5..7be9ac633f 100644 --- a/actionview/MIT-LICENSE +++ b/actionview/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2004-2023 David Heinemeier Hansson +Copyright (c) David Heinemeier Hansson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/actionview/app/javascript/MIT-LICENSE b/actionview/app/javascript/MIT-LICENSE index 074ae47ded..9255cf1748 100644 --- a/actionview/app/javascript/MIT-LICENSE +++ b/actionview/app/javascript/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2007-2023 Rails Core team +Copyright (c) Rails Core team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/actionview/lib/action_view.rb b/actionview/lib/action_view.rb index bb9ed7c608..2f585587ff 100644 --- a/actionview/lib/action_view.rb +++ b/actionview/lib/action_view.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2004-2023 David Heinemeier Hansson +# Copyright (c) David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/activejob/MIT-LICENSE b/activejob/MIT-LICENSE index 475ca11ee8..7be9ac633f 100644 --- a/activejob/MIT-LICENSE +++ b/activejob/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2014-2023 David Heinemeier Hansson +Copyright (c) David Heinemeier Hansson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/activejob/lib/active_job.rb b/activejob/lib/active_job.rb index e4f9d8b565..48032da151 100644 --- a/activejob/lib/active_job.rb +++ b/activejob/lib/active_job.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2014-2023 David Heinemeier Hansson +# Copyright (c) David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/activemodel/MIT-LICENSE b/activemodel/MIT-LICENSE index 43725da6c5..7be9ac633f 100644 --- a/activemodel/MIT-LICENSE +++ b/activemodel/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2004-2023 David Heinemeier Hansson +Copyright (c) David Heinemeier Hansson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/activemodel/lib/active_model.rb b/activemodel/lib/active_model.rb index 8c90fefec6..56d8648377 100644 --- a/activemodel/lib/active_model.rb +++ b/activemodel/lib/active_model.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2004-2023 David Heinemeier Hansson +# Copyright (c) David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/activerecord/MIT-LICENSE b/activerecord/MIT-LICENSE index 8874abdbea..5b86109107 100644 --- a/activerecord/MIT-LICENSE +++ b/activerecord/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2004-2023 David Heinemeier Hansson +Copyright (c) David Heinemeier Hansson Arel originally copyright (c) 2007-2016 Nick Kallen, Bryan Helmkamp, Emilio Tagua, Aaron Patterson diff --git a/activerecord/lib/active_record.rb b/activerecord/lib/active_record.rb index fd6b69fb91..2137f79129 100644 --- a/activerecord/lib/active_record.rb +++ b/activerecord/lib/active_record.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2004-2023 David Heinemeier Hansson +# Copyright (c) David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/activestorage/MIT-LICENSE b/activestorage/MIT-LICENSE index 1aef48934d..7088436b7c 100644 --- a/activestorage/MIT-LICENSE +++ b/activestorage/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2017-2023 David Heinemeier Hansson, Basecamp +Copyright (c) David Heinemeier Hansson, 37signals LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/activestorage/lib/active_storage.rb b/activestorage/lib/active_storage.rb index ed7b2b9cf6..dd1d70bf80 100644 --- a/activestorage/lib/active_storage.rb +++ b/activestorage/lib/active_storage.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2017-2023 David Heinemeier Hansson, Basecamp +# Copyright (c) David Heinemeier Hansson, 37signals LLC # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/activesupport/MIT-LICENSE b/activesupport/MIT-LICENSE index 83667355ca..f12cfa766c 100644 --- a/activesupport/MIT-LICENSE +++ b/activesupport/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2005-2023 David Heinemeier Hansson +Copyright (c) David Heinemeier Hansson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb index 042c36f610..bc52a3f2ce 100644 --- a/activesupport/lib/active_support.rb +++ b/activesupport/lib/active_support.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true #-- -# Copyright (c) 2005-2023 David Heinemeier Hansson +# Copyright (c) David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/railties/MIT-LICENSE b/railties/MIT-LICENSE index 647beade9d..f12cfa766c 100644 --- a/railties/MIT-LICENSE +++ b/railties/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2004-2023 David Heinemeier Hansson +Copyright (c) David Heinemeier Hansson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/railties/lib/rails/generators/rails/plugin/templates/MIT-LICENSE.tt b/railties/lib/rails/generators/rails/plugin/templates/MIT-LICENSE.tt index ff2fb3ba4e..f02896d8ac 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/MIT-LICENSE.tt +++ b/railties/lib/rails/generators/rails/plugin/templates/MIT-LICENSE.tt @@ -1,4 +1,4 @@ -Copyright <%= Date.today.year %> <%= author %> +Copyright <%= author %> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb index 9be829850d..198c71dabe 100644 --- a/railties/test/generators/plugin_generator_test.rb +++ b/railties/test/generators/plugin_generator_test.rb @@ -783,6 +783,15 @@ def test_git_name_in_license_file end end + def test_no_year_in_license_file + year = Date.today.year + + run_generator + assert_file "MIT-LICENSE" do |contents| + assert_no_match(/#{year}/, contents) + end + end + def test_no_details_from_git_when_skip_git name = "TODO: Write your name" email = "TODO: Write your email address"