Skip to content

Commit

Permalink
Merge branch 'release-v1.4.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikitex70 committed Jan 28, 2023
2 parents fc87e4c + b2e1d82 commit 02ab177
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,30 @@

## development (unreleased)

### v1.4.5 (2022-12-09)
### Fix

* Fixes some tests. [Liane Hampe]

Since Ruby 3 passing method argumentes changed. A Hash won't be
converted to a keyword argument anymore. Therefore, keyword argumentes
needs to be entered explicitly by default. To keep the behaviour double
splat needs to be added to hash arguments.

See https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

* Fixes common mark support. [Liane Hampe]

The helper for supporting common mark was prepared but not loaded.
Therefore, the wikitool bar does not extend with the required
drawio buttons.

By requiring the helper file in lib/redmine_drawio.rb the code will
be executed now.


## v1.4.5 (2022-12-09)

### Other

* Fix mail sending error. [Hunt Lin]

Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name 'Redmine Drawio plugin'
author 'Michele Tessaro'
description 'Wiki macro plugin for inserting drawio diagrams into Wiki pages and Issues'
version '1.4.5'
version '1.4.6'
url 'https://github.com/mikitex70/redmine_drawio'
author_url 'https://github.com/mikitex70'

Expand Down
1 change: 1 addition & 0 deletions lib/redmine_drawio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require File.expand_path('../redmine_drawio/patches/rbpdf_patch', __FILE__)

# Helpers
require File.expand_path('../redmine_drawio/helpers/common_mark_helper', __FILE__)
require File.expand_path('../redmine_drawio/helpers/drawio_dmsf_helper', __FILE__)
require File.expand_path('../redmine_drawio/helpers/drawio_settings_helper', __FILE__)
require File.expand_path('../redmine_drawio/helpers/textile_helper', __FILE__)
Expand Down
4 changes: 2 additions & 2 deletions test/integration/macro_dialog_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ def teardown
end

test 'render macro diaglog without svg' do
with_settings(redmine_drawio({ drawio_svg_enabled: false })) do
with_settings(redmine_drawio(**{ drawio_svg_enabled: false })) do
render_marcro_dialog
assert_select 'input[value=?]', 'svg', 0
end
end

test 'render macro diaglog with svg' do
with_settings(redmine_drawio({ drawio_svg_enabled: true })) do
with_settings(redmine_drawio(**{ drawio_svg_enabled: true })) do
render_marcro_dialog
assert_select 'input[value=?]', 'svg'
end
Expand Down
4 changes: 2 additions & 2 deletions test/unit/drawio_settings_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ def teardown
end

def test_svg_disabled
with_settings(redmine_drawio({ drawio_svg_enabled: false })) do
with_settings(redmine_drawio(**{ drawio_svg_enabled: false })) do
assert_not svg_enabled?
end
end

def test_svg_enabled
with_settings(redmine_drawio({ drawio_svg_enabled: true })) do
with_settings(redmine_drawio(**{ drawio_svg_enabled: true })) do
assert svg_enabled?
end
end
Expand Down

0 comments on commit 02ab177

Please sign in to comment.