forked from hidakatsuya/redmine_issue_wiki_journal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Redmine 2.4 or higher with refactoring
- Loading branch information
1 parent
3e62a1c
commit 2a9fb47
Showing
8 changed files
with
160 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module IssueWikiJournal | ||
class ApplicationHooks < Redmine::Hook::ViewListener | ||
render_on :view_layouts_base_body_bottom, partial: 'layouts/body_bottom' | ||
end | ||
end |
4 changes: 2 additions & 2 deletions
4
...iki_journal/wiki_updates_hook_listener.rb → app/hooks/wiki_controller_hooks.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
require 'redmine' | ||
require_dependency 'issue_wiki_journal' | ||
|
||
Redmine::Plugin.register :redmine_issue_wiki_journal do | ||
name 'Redmine Issue Wiki Journal Plugin' | ||
author 'Katsuya Hidaka' | ||
description 'This plugin will provides the feature which associate Wiki updates to the Issue' | ||
version '0.0.1' | ||
version '1.0.0' | ||
url 'https://github.com/hidakatsuya/redmine_issue_wiki_journal' | ||
author_url 'https://github.com/hidakatsuya' | ||
# Requires Redmine 2.3.x or higher | ||
requires_redmine '2.3' | ||
end | ||
|
||
require 'issue_wiki_journal' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
require 'issue_wiki_journal/wiki_changeset' | ||
require 'issue_wiki_journal/wiki_updates_hook_listener' | ||
require 'issue_wiki_journal/common_view_hooks' | ||
require 'pathname' | ||
|
||
module IssueWikiJournal | ||
def self.root | ||
@root ||= Pathname.new(File.expand_path('../../', __FILE__)) | ||
end | ||
|
||
def self.version | ||
Redmine::Plugin.find(:roots).version | ||
end | ||
end | ||
|
||
# Load libraries | ||
require_relative 'issue_wiki_journal/wiki_changeset' | ||
|
||
# Load hooks | ||
Dir[IssueWikiJournal.root.join('app/hooks/**/*_hooks.rb')].each {|f| require f } |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters