Skip to content

Commit

Permalink
Merge branch 'release/0.9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
haru committed Jun 12, 2020
2 parents c90e871 + 552c536 commit 3b6ac8d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rvm:
env:
- REDMINE_VER=master
- REDMINE_VER=4.0-stable
- REDMINE_VER=4.1-stable
install:
- bash -x ./travis/travis_install.sh
script:
Expand Down
3 changes: 3 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{<img src="https://travis-ci.org/haru/redmine_wiki_extensions.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/haru/redmine_wiki_extensions]
{<img src="https://coveralls.io/repos/github/haru/redmine_wiki_extensions/badge.svg?branch=master" alt="Coverage Status" />}[https://coveralls.io/github/haru/redmine_wiki_extensions?branch=master]

= Redmine Wiki Extensions Plugin

Wiki Extensions is a plugin which adds several useful wiki macros to Redmine.
Expand Down
5 changes: 1 addition & 4 deletions app/controllers/wiki_extensions_settings_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Wiki Extensions plugin for Redmine
# Copyright (C) 2009-2017 Haruyuki Iida
# Copyright (C) 2009-2020 Haruyuki Iida
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -32,9 +32,6 @@ def update
menu_setting.attributes = menu.permit(:enabled, :menu_no, :title, :page_name)
menu_setting.save!
}
#setting.auto_preview_enabled = auto_preview_enabled
setting.attributes = params.require(:setting).permit(:auto_preview_enabled, :tag_disabled)
setting.save!
end
flash[:notice] = l(:notice_successful_update)
rescue => e
Expand Down
4 changes: 2 additions & 2 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Wiki Extensions plugin for Redmine
# Copyright (C) 2009-2017 Haruyuki Iida
# Copyright (C) 2009-2020 Haruyuki Iida
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -36,7 +36,7 @@
author_url 'http://twitter.com/haru_iida'
description 'This is a Wiki Extensions plugin for Redmine'
url 'http://www.r-labs.org/projects/r-labs/wiki/Wiki_Extensions_en'
version '0.9.0'
version '0.9.1'
requires_redmine :version_or_higher => '4.0.0'

project_module :wiki_extensions do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def setup
menus = {}
menus[0] = {:enabled => 'true',:menu_no => 1, :title => 'my_title', :page_name => 'my_page_name'}
menus[1] = {:enabled => 'true',:menu_no => 2, :title => 'my_title2', :page_name => 'my_page_name2'}
post :update, :params => {:setting => {:auto_preview_enabled => 1},
post :update, :params => {
:menus => menus, :id => @project}
assert_response :redirect
setting = WikiExtensionsSetting.find_or_create @project.id
Expand Down

0 comments on commit 3b6ac8d

Please sign in to comment.