Working on Redmine 4 support
This commit is contained in:
@@ -7,7 +7,7 @@ rvm:
|
||||
|
||||
env:
|
||||
- REDMINE_VER=3.4-stable DB=postgresql
|
||||
# - REDMINE_VER=master
|
||||
- REDMINE_VER=master
|
||||
|
||||
sudo: true
|
||||
cache: bundler
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
1.0.3
|
||||
-----
|
||||
|
||||
- Redmine 4 support
|
||||
|
||||
|
||||
1.0.2
|
||||
-----
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class CreateMessengerSettings < ActiveRecord::Migration
|
||||
class CreateMessengerSettings < Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :messenger_settings do |t|
|
||||
t.references :project, null: false, index: true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class AddDefaultMentions < ActiveRecord::Migration
|
||||
class AddDefaultMentions < Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :messenger_settings, :default_mentions, :string
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class AddPrivateSettings < ActiveRecord::Migration
|
||||
class AddPrivateSettings < Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :messenger_settings, :post_private_contacts, :integer, default: 0, null: false
|
||||
add_column :messenger_settings, :post_private_db, :integer, default: 0, null: false
|
||||
|
||||
2
init.rb
2
init.rb
@@ -7,7 +7,7 @@ Redmine::Plugin.register :redmine_messenger do
|
||||
url 'https://github.com/alphanodes/redmine_messenger'
|
||||
author_url 'https://alphanodes.com/'
|
||||
description 'Messenger integration for Slack, Discord, Rocketchat and Mattermost support'
|
||||
version '1.0.2'
|
||||
version '1.0.3'
|
||||
|
||||
requires_redmine version_or_higher: '3.0.0'
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@ module RedmineMessenger
|
||||
def self.included(base)
|
||||
base.send(:include, InstanceMethods)
|
||||
base.class_eval do
|
||||
alias_method_chain :project_settings_tabs, :messenger
|
||||
alias_method :project_settings_tabs_without_additionals, :project_settings_tabs
|
||||
alias_method :project_settings_tabs, :project_settings_tabs_with_additionals
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user