Skip to content

Commit

Permalink
Merge branch 'feature/redmine_6' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
haru committed Nov 16, 2024
2 parents 4ff4b06 + bad8c5d commit 6ac700d
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ services:
# Update 'VARIANT' to pick a version of Ruby: 3, 3.0, 2, 2.7, 2.6
# Append -bullseye or -buster to pin to an OS version.
# Use -bullseye variants on local arm64/Apple Silicon.
RUBY_VERSION: "3.1"
RUBY_VERSION: "3.2"
# Optional Node.js version to install
NODE_VERSION: "lts/*"
REDMINE_VERSION: "5.1-stable"
REDMINE_VERSION: "6.0-stable"

# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: build
on:
push:
branches-ignore:
pull_request:
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
Expand All @@ -11,17 +10,8 @@ jobs:
strategy:
matrix:
db: [sqlite3, mysql, postgres]
ruby_version: ["2.7", "3.0", "3.1", "3.2"]
redmine_version: [4.2-stable, 5.0-stable, 5.1-stable, master]
exclude:
- ruby_version: "3.0"
redmine_version: 4.2-stable
- ruby_version: "3.1"
redmine_version: 4.2-stable
- ruby_version: "3.2"
redmine_version: 4.2-stable
- ruby_version: "3.2"
redmine_version: 5.0-stable
ruby_version: ["3.1", "3.2", "3.3"]
redmine_version: [6.0-stable, master]
services:
mysql:
image: mysql:5.7
Expand Down
2 changes: 1 addition & 1 deletion Gemfile_for_test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

group :test do
gem 'factory_girl_rails'
# gem 'factory_girl_rails'
#gem 'shoulda-matchers'
gem 'shoulda'
gem 'simplecov-lcov', :require => false
Expand Down
2 changes: 1 addition & 1 deletion app/models/wiki_extensions_comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# 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.
class WikiExtensionsComment < ActiveRecord::Base
class WikiExtensionsComment < ApplicationRecord
belongs_to :user
belongs_to :wiki_page
validates_presence_of :comment, :wiki_page_id, :user_id
Expand Down
2 changes: 1 addition & 1 deletion app/models/wiki_extensions_count.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# 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.
class WikiExtensionsCount < ActiveRecord::Base
class WikiExtensionsCount < ApplicationRecord
belongs_to :project
belongs_to :page, :foreign_key => :page_id, :class_name => 'WikiPage'
validates_presence_of :project
Expand Down
2 changes: 1 addition & 1 deletion app/models/wiki_extensions_menu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# 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.
class WikiExtensionsMenu < ActiveRecord::Base
class WikiExtensionsMenu < ApplicationRecord
include Redmine::SafeAttributes
belongs_to :project
validates_presence_of :project_id
Expand Down
2 changes: 1 addition & 1 deletion app/models/wiki_extensions_setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# 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.
class WikiExtensionsSetting < ActiveRecord::Base
class WikiExtensionsSetting < ApplicationRecord
belongs_to :project
#attr_accessible :auto_preview_enabled, :tag_disabled

Expand Down
2 changes: 1 addition & 1 deletion app/models/wiki_extensions_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# 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.
class WikiExtensionsTag < ActiveRecord::Base
class WikiExtensionsTag < ApplicationRecord
#attr_accessible :name, :project_id
validates_presence_of :name, :project_id
validates_uniqueness_of :name, :scope => :project_id
Expand Down
2 changes: 1 addition & 1 deletion app/models/wiki_extensions_tag_relation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# 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.
class WikiExtensionsTagRelation < ActiveRecord::Base
class WikiExtensionsTagRelation < ApplicationRecord
belongs_to :wiki_page
belongs_to :tag, :class_name => 'WikiExtensionsTag', :foreign_key => :tag_id
validates_presence_of :wiki_page_id, :tag_id
Expand Down
3 changes: 1 addition & 2 deletions app/models/wiki_extensions_vote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

class WikiExtensionsVote < ActiveRecord::Base
class WikiExtensionsVote < ApplicationRecord
validates_presence_of :target_class_name, :target_id, :keystr, :count
validates_uniqueness_of :keystr, :scope => [:target_class_name, :target_id]

Expand Down Expand Up @@ -48,4 +48,3 @@ def self.find_or_create(class_name, obj_id, key_str)
return vote
end
end

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-2023 Haruyuki Iida
# Copyright (C) 2009-2024 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 @@ -43,7 +43,7 @@
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.5'
requires_redmine :version_or_higher => '4.0.0'
requires_redmine :version_or_higher => '6.0.0'

project_module :wiki_extensions do
permission :wiki_extensions_vote, { :wiki_extensions => [:vote, :show_vote] }, :public => true
Expand Down

0 comments on commit 6ac700d

Please sign in to comment.