This repository has been archived by the owner on Apr 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
init.rb
52 lines (42 loc) · 1.55 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require 'redmine'
require File.dirname(__FILE__) + '/lib/google_docs_macros.rb'
Redmine::Plugin.register :redmine_googlesss do
name "Google Docs Plugin"
author 'Tavish Armstrong'
description 'Embed Google Docs in your redmine pages.'
version '0.0.2'
Redmine::WikiFormatting::Macros.register do
desc = "Redmine Google Spreadsheet Macro (gs)"
macro :gs do |obj, args|
out = GoogleSpreadsheetMacros.googless_macro(obj, args)
end
desc = "Redmine Google Spreadsheet Macro (googless)"
macro :googless do |obj, args|
out = GoogleSpreadsheetMacros.googless_macro(obj, args)
end
desc = "Redmine Google Spreadsheet Macro (googlespreadsheet)"
macro :googlespreadsheet do |obj, args|
out = GoogleSpreadsheetMacros.googless_macro(obj, args)
end
desc = "Redmine Google Spreadsheet Macro (googlespread)"
macro :googlespread do |obj, args|
out = GoogleSpreadsheetMacros.googless_macro(obj, args)
end
desc = "Redmine Google Spreadsheet Macro (gi)"
macro :gi do |obj, args|
GoogleSpreadsheetMacros.get_issue(obj, args)
end
desc = "Redmine Google Spreadsheet Macro (googleissue)"
macro :googleissue do |obj, args|
GoogleSpreadsheetMacros.get_issue(obj, args)
end
desc = "Redmine Google Document Macro (googledoc)"
macro :googledoc do |obj, args|
GoogleDocumentMacros.get_doc(obj, args)
end
desc = "Redmine Google Spreadsheet Native Macro (googlessn)"
macro :googlessn do |obj, args|
GoogleSpreadsheetNativeMacros.get_doc(obj, args)
end
end
end