Skip to content

Commit

Permalink
Merge branch 'devel-2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed May 13, 2022
2 parents e23f223 + 083a547 commit 7e34510
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog for Custom Workflows
==============================

2.0.1 *2022-05-13*
------------------

Ruby 2.7 backward compatibility

* Bug: #257 - IssueRelation.to_s is broken after #257 bug
* Bug: #258 - Tried to create Proc object without a block

2.0.0 *2022-04-27*
------------------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Custom Workflows plug-in
========================

The current version of Redmine CustomWorkflows is **2.0.0**
The current version of Redmine CustomWorkflows is **2.0.1**

[![pipeline status](https://gitlab.kontron.com/redmine-plugins/redmine_custom_workflows/badges/master/pipeline.svg)](https://gitlab.kontron.com/redmine-plugins/redmine_custom_workflows/-/commits/master)
[![Support Ukraine Badge](https://bit.ly/support-ukraine-now)](https://github.com/support-ukraine/support-ukraine)
Expand Down
10 changes: 9 additions & 1 deletion lib/redmine_custom_workflows/patches/issue_relation_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ def self.prepended(base)
alias_method :old_to_s, :to_s

def to_s(issue=nil)
block_given? ? old_to_s(issue, &Proc.new {}) : old_to_s(issue)
if block_given?
if Gem.ruby_version < Gem::Version.new('3.0')
old_to_s issue, &Proc.new
else
old_to_s issue, &Proc.new {}
end
else
old_to_s issue
end
rescue NoMethodError => e
if issue_from.present? || issue_to.present?
raise e
Expand Down

0 comments on commit 7e34510

Please sign in to comment.