bor-sh / redmine_doc_pu Goto Github PK
View Code? Open in Web Editor NEWThis project forked from incas3/redmine_doc_pu
Redmine doc pu plugin
This project forked from incas3/redmine_doc_pu
Redmine doc pu plugin
I had to apply the following patch to make images be rendered in pdf (Redmine 2.3.2)
diff --git a/lib/latex_wiki_page.rb b/lib/latex_wiki_page.rb index 4873803..ae51daa 100755 --- a/lib/latex_wiki_page.rb +++ b/lib/latex_wiki_page.rb @@ -7,8 +7,8 @@ module ModuleLatexWikiPage # Collect all attached images and get disk filename file_sub = {} self.wiki_page.attachments.each do |att| - unless att.content_type.match(/^image/i).nil? - file_sub[att.filename] = att.disk_filename + unless !att.content_type.nil? and att.content_type.match(/^image/i).nil? + file_sub[att.filename] = "#{att.disk_directory}/#{att.disk_filename}" end end
LoadError (no such file to load -- redcloth):
activesupport (3.2.3) lib/active_support/dependencies.rb:251:in require' activesupport (3.2.3) lib/active_support/dependencies.rb:251:in
require'
activesupport (3.2.3) lib/active_support/dependencies.rb:234:in load_dependency' activesupport (3.2.3) lib/active_support/dependencies.rb:639:in
new_constants_in'
activesupport (3.2.3) lib/active_support/dependencies.rb:234:in load_dependency' activesupport (3.2.3) lib/active_support/dependencies.rb:251:in
require'
plugins/redmine_doc_pu/lib/textile_doc_latex.rb:1
activesupport (3.2.3) lib/active_support/dependencies.rb:469:in load' activesupport (3.2.3) lib/active_support/dependencies.rb:469:in
load_file'
activesupport (3.2.3) lib/active_support/dependencies.rb:639:in new_constants_in' activesupport (3.2.3) lib/active_support/dependencies.rb:468:in
load_file'
activesupport (3.2.3) lib/active_support/dependencies.rb:353:in require_or_load' activesupport (3.2.3) lib/active_support/dependencies.rb:502:in
load_missing_constant'
activesupport (3.2.3) lib/active_support/dependencies.rb:192:in const_missing' activesupport (3.2.3) lib/active_support/dependencies.rb:190:in
each'
activesupport (3.2.3) lib/active_support/dependencies.rb:190:in const_missing' activesupport (3.2.3) lib/active_support/dependencies.rb:514:in
load_missing_constant'
activesupport (3.2.3) lib/active_support/dependencies.rb:192:in const_missing' activesupport (3.2.3) lib/active_support/dependencies.rb:190:in
each'
activesupport (3.2.3) lib/active_support/dependencies.rb:190:in const_missing' plugins/redmine_doc_pu/lib/latex_wiki_page.rb:51:in
to_latex'
plugins/redmine_doc_pu/app/models/doc_pu_wiki_page.rb:22:in to_latex' plugins/redmine_doc_pu/lib/latex_doc.rb:65:in
to_latex'
plugins/redmine_doc_pu/lib/latex_doc.rb:64:in each' plugins/redmine_doc_pu/lib/latex_doc.rb:64:in
to_latex'
plugins/redmine_doc_pu/lib/latex_doc.rb:72:in build' plugins/redmine_doc_pu/app/models/doc_pu_document.rb:23:in
build'
plugins/redmine_doc_pu/app/controllers/doc_pu_controller.rb:97:in build_remote' actionpack (3.2.3) lib/action_controller/metal/implicit_render.rb:4:in
send_action'
actionpack (3.2.3) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.3) lib/abstract_controller/base.rb:167:in
process_action'
actionpack (3.2.3) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.3) lib/abstract_controller/callbacks.rb:18:in
process_action'
activesupport (3.2.3) lib/active_support/callbacks.rb:469:in _run__139005594__process_action__432084278__callbacks' activesupport (3.2.3) lib/active_support/callbacks.rb:405:in
send'
activesupport (3.2.3) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.3) lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks'
activesupport (3.2.3) lib/active_support/callbacks.rb:81:in send' activesupport (3.2.3) lib/active_support/callbacks.rb:81:in
run_callbacks'
actionpack (3.2.3) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.3) lib/action_controller/metal/rescue.rb:29:in
process_action'
actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:30:in process_action' activesupport (3.2.3) lib/active_support/notifications.rb:123:in
instrument'
activesupport (3.2.3) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.3) lib/active_support/notifications.rb:123:in
instrument'
actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.3) lib/action_controller/metal/params_wrapper.rb:205:in
process_action'
activerecord (3.2.3) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.3) lib/abstract_controller/base.rb:121:in
process'
actionpack (3.2.3) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.3) lib/action_controller/metal.rb:203:in
dispatch'
actionpack (3.2.3) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.3) lib/action_controller/metal.rb:246:in
action'
actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:in
dispatch'
actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.3) lib/journey/router.rb:68:in
call'
journey (1.0.3) lib/journey/router.rb:56:in each' journey (1.0.3) lib/journey/router.rb:56:in
call'
actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:600:in call' rack-openid (1.3.1) lib/rack/openid.rb:98:in
call'
actionpack (3.2.3) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.1) lib/rack/etag.rb:23:in
call'
rack (1.4.1) lib/rack/conditionalget.rb:35:in call' actionpack (3.2.3) lib/action_dispatch/middleware/head.rb:14:in
call'
actionpack (3.2.3) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.3) lib/action_dispatch/middleware/flash.rb:242:in
call'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:in
call'
actionpack (3.2.3) lib/action_dispatch/middleware/cookies.rb:338:in call' activerecord (3.2.3) lib/active_record/query_cache.rb:64:in
call'
activerecord (3.2.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:467:in call' actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:28:in
call'
activesupport (3.2.3) lib/active_support/callbacks.rb:405:in _run__253359178__call__4__callbacks' activesupport (3.2.3) lib/active_support/callbacks.rb:405:in
send'
activesupport (3.2.3) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.3) lib/active_support/callbacks.rb:385:in
_run_call_callbacks'
activesupport (3.2.3) lib/active_support/callbacks.rb:81:in send' activesupport (3.2.3) lib/active_support/callbacks.rb:81:in
run_callbacks'
actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.3) lib/action_dispatch/middleware/reloader.rb:65:in
call'
actionpack (3.2.3) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call'
actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.3) lib/rails/rack/logger.rb:26:in
call_app'
railties (3.2.3) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in
call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:in
call'
activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:in
call'
actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in call' railties (3.2.3) lib/rails/engine.rb:479:in
call'
railties (3.2.3) lib/rails/application.rb:220:in call' rack (1.4.1) lib/rack/content_length.rb:14:in
call'
railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in call' rack (1.4.1) lib/rack/handler/webrick.rb:59:in
service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in
run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in
start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in
start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/lib/ruby/1.8/webrick/server.rb:92:in
start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:in
start'
rack (1.4.1) lib/rack/handler/webrick.rb:13:in run' rack (1.4.1) lib/rack/server.rb:265:in
start'
railties (3.2.3) lib/rails/commands/server.rb:70:in start' railties (3.2.3) lib/rails/commands.rb:55 railties (3.2.3) lib/rails/commands.rb:50:in
tap'
railties (3.2.3) lib/rails/commands.rb:50
script/rails:6:in `require'
script/rails:6
even when command: ruby -rubygems -e 'require "redcloth"' works
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.