Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

bump disposable

ulfertsd3904d5dc9cc
diff --git a/Gemfile b/Gemfile
index f5eb88154c8..acf63ea7ad7 100644
--- a/Gemfile
+++ b/Gemfile
@@ -295,9 +295,7 @@ gem 'roar', '~> 1.1.0'
gem 'rack-cors', '~> 1.1.1'
# Required for contracts
-# Not requiring since it needs to be patched before initialization:
-# See lib/open_project/patches/disposable.rb
-gem 'disposable', '~> 0.6.1', require: false
+gem 'disposable', '~> 0.6.2'
platforms :mri, :mingw, :x64_mingw do
group :postgres do
diff --git a/Gemfile.lock b/Gemfile.lock
index 3b8a93301e4..d14a6a98afc 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -406,7 +406,7 @@ GEM
activerecord (>= 3.0, < 6.2)
delayed_job (>= 3.0, < 5)
diff-lcs (1.4.4)
- disposable (0.6.1)
+ disposable (0.6.2)
declarative (>= 0.0.9, < 1.0.0)
representable (>= 3.1.1, < 3.2.0)
domain_name (0.5.20190701)
@@ -1008,7 +1008,7 @@ DEPENDENCIES
deckar01-task_list (~> 2.3.1)
delayed_cron_job (~> 0.9.0)
delayed_job_active_record (~> 4.1.5)
- disposable (~> 0.6.1)
+ disposable (~> 0.6.2)
doorkeeper (~> 5.5.0)
email_validator (~> 2.2.3)
equivalent-xml (~> 0.6)
diff --git a/lib/open_project/patches/disposable.rb b/lib/open_project/patches/disposable.rb
deleted file mode 100644
index 5fd71bede98..00000000000
--- a/lib/open_project/patches/disposable.rb
+++ /dev/null
@@ -1,61 +0,0 @@
-#-- copyright
-# OpenProject is an open source project management software.
-# Copyright (C) 2012-2021 the OpenProject GmbH
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License version 3.
-#
-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
-# Copyright (C) 2006-2013 Jean-Philippe Lang
-# Copyright (C) 2010-2013 the ChiliProject Team
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# See COPYRIGHT and LICENSE files for more details.
-#++
-
-# Disposable from 0.6.0 on includes Forwardable into every
-# class inheriting from Disposable::Twin. OpenProject
-# uses Disposable::Twin for the contracts.
-# Including Forwardable overwrites the rails core_ext delegate
-# on which e.g. ActiveModel::Naming relies.
-OpenProject::Patches.patch_gem_version 'disposable', '6.0.1' do
- # The patch thus loads the module including Forwardable, then removes the
- # code and defines its own empty module.
- module Disposable
- class Twin
- module Property
-
- end
- end
- end
-
- require "disposable/twin/property/unnest"
- Disposable::Twin::Property.send(:remove_const, :Unnest)
-
- module Disposable
- class Twin
- module Property
- module Unnest
- def unnest(_name, _options)
- raise 'Relying on patched away method'
- end
- end
- end
- end
- end
-
- require 'disposable'
-end