Commit 6ad0a28a authored by Ryan Lee's avatar Ryan Lee

move closer to openproject plugin format

parent 641eeb91
......@@ -4,12 +4,12 @@ module OpenProject::VideoWikiMacro
class Engine < ::Rails::Engine
engine_name :openproject_video_wiki_macro
include OpenProject::Plugins::ActsAsOpEngine
register 'openproject-video_wiki_macro',
:author_url => 'http://zepheira.com/',
:requires_openproject => '>= 3.0.0'
:requires_openproject => '>= 3.0.0' do
config.to_prepare do
require 'redmine'
Redmine::WikiFormatting::Macros.register do
desc = "OpenProject video macro. Use as {{video(&lt;url&gt;[,&lt;width&gt;,&lt;height&gt;])}}."
macro :video do |video_wiki_content, args|
......@@ -29,6 +29,5 @@ module OpenProject::VideoWikiMacro
end
end
end
end
end
module OpenProject
module VideoWikiMacro
VERSION = "1.0.0"
end
end
......@@ -12,10 +12,12 @@ Gem::Specification.new do |s|
s.description = "Adds a wiki macro for embedding external video."
s.email = "ryanlee@zepheira.com"
s.files = ["README.md", "lib/openproject-video_wiki_macro.rb", "lib/open_project/video_wiki_macro.rb", "lib/open_project/video_wiki_macro/engine.rb"]
s.homepage = "http://zepheira.com"
s.licenses = ["BSD"]
s.rubygems_version = "2.2.2"
s.summary = "OpenProject Video Wiki Macro"
s.test_files = []
if s.respond_to? :specification_version then
s.specification_version = 4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment