Giter Site home page Giter Site logo

hugohasenbein / redmine_more_code Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 3.0 458 KB

Plugin for Redmine. Will enable code previewing of cfc, cfm, clj, cpp, cu, cxx, c++, C, dpr, gemspec, go, groovy, gvy, haml, hpp, h++, html.erb, js, lua, mab, pas, phtml, prawn, py3, pyw, raydebug, rjs, rpdf, ru, rxml, sass, taskpaper, template, tmproj, xaml

Home Page: https://www.redmine.org/plugins/redmine_more_code

License: GNU General Public License v2.0

Ruby 100.00%
redmine redmine-plugin code code-highlight code-highlighter enable

redmine_more_code's Introduction

redmine_more_code

Plugin for Redmine. Will enable code previewing of cfc, cfm, clj, cpp, cu, cxx, c++, C, dpr, gemspec, go, groovy, gvy, haml, hpp, h++, html.erb, js, lua, mab, pas, phtml, prawn, py3, pyw, raydebug, rjs, rpdf, ru, rxml, sass, taskpaper, template, tmproj, xaml

PNG that represents a quick overview

Install

  1. download plugin and copy plugin folder redmine_more_code go to Redmine's plugins folder

  2. go to redmine root folder (only for redmine 4, below redmine 4 gems are akready installed )

bundle install

  1. restart server f.i. (no need to migrate)

sudo /etc/init.d/apache2 restart

Uninstall

  1. go to plugins folder, delete plugin folder redmine_more_code

rm -r redmine_more_code

  1. restart server f.i.

sudo /etc/init.s/apache2 restart

Use

  • Click on one of the aboive mentioned files and view the highlighted code in Redmine's preview pane

Have fun!

Localisations

  • N / A - no localizable strings

Change-Log

  • 1.0.1 running on Redmine 4.1.0

  • 1.0.0 running on Redmine 3.4.6

redmine_more_code's People

Contributors

hugohasenbein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

redmine_more_code's Issues

NoMethodError: undefined method `alias_method_chain' for AttachmentsController:Class Did you mean? alias_method

I have:
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
gem 3.0.3
Rails 5.2.4.1
And latest 4.1 redmine, but:

 bundle exec rake db:migrate RAILS_ENV=production 
rake aborted!
NoMethodError: undefined method `alias_method_chain' for AttachmentsController:Class
Did you mean?  alias_method
/opt/redmine/plugins/redmine_more_code/lib/redmine_more_code/patches/attachments_controller_patch.rb:31:in `block in included'
/opt/redmine/plugins/redmine_more_code/lib/redmine_more_code/patches/attachments_controller_patch.rb:28:in `class_eval'
/opt/redmine/plugins/redmine_more_code/lib/redmine_more_code/patches/attachments_controller_patch.rb:28:in `included'
/opt/redmine/plugins/redmine_more_code/lib/redmine_more_code/patches/attachments_controller_patch.rb:61:in `include'
/opt/redmine/plugins/redmine_more_code/lib/redmine_more_code/patches/attachments_controller_patch.rb:61:in `<top (required)>'
/opt/redmine/plugins/redmine_more_code/lib/redmine_more_code.rb:25:in `block in <top (required)>'
/opt/redmine/config/environment.rb:16:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)

This is solution, but i'm not ruby-ooder
https://www.justinweiss.com/articles/rails-5-module-number-prepend-and-the-end-of-alias-method-chain/

Seems to not work with Redmine 5.*

I tried to install in Redmine 5.0.
bundle install
worked, but when I ran the rake command it failed:

bundle exec rake --trace redmine:plugins:migrate RAILS_ENV=production

** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
LoadError: cannot load such file -- redmine_more_code
/home/finddx-rm/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/finddx-rm/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/finddx-rm/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
/home/finddx-rm/redmine-5.0.0/plugins/redmine_more_code/init.rb:36:in `<top (required)>'
/home/finddx-rm/redmine-5.0.0/lib/redmine/plugin_loader.rb:31:in `load'
/home/finddx-rm/redmine-5.0.0/lib/redmine/plugin_loader.rb:31:in `run_initializer'
/home/finddx-rm/redmine-5.0.0/lib/redmine/plugin_loader.rb:108:in `each'
/home/finddx-rm/redmine-5.0.0/lib/redmine/plugin_loader.rb:108:in `block in load'
........

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.