Restream / redmine_simple

Simplify redmine interface
Apache License 2.0
13 stars 6 forks source link

Compatibility with Redmine 3.x #7

Open lublasco opened 8 years ago

lublasco commented 8 years ago

Hi,

I can't install the plugin in a Redmine 3.2 installation. Error is following:

Bundler could not find compatible versions for gem "rails":
  In snapshot (Gemfile.lock):
    rails (= 4.2.3)

  In Gemfile:
    deface (< 1.0.0) ruby depends on
      rails (~> 3.0.0) ruby

    rails (= 4.2.3) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "nokogiri":
  In snapshot (Gemfile.lock):
    nokogiri (= 1.6.6.2)

  In Gemfile:
    rails (= 4.2.3) ruby depends on
      actionmailer (= 4.2.3) ruby depends on
        actionpack (= 4.2.3) ruby depends on
          rails-html-sanitizer (>= 1.0.2, ~> 1.0) ruby depends on
            loofah (~> 2.0) ruby depends on
              nokogiri (>= 1.5.9) ruby

    rails (= 4.2.3) ruby depends on
      actionmailer (= 4.2.3) ruby depends on
        actionpack (= 4.2.3) ruby depends on
          rails-dom-testing (>= 1.0.5, ~> 1.0) ruby depends on
            nokogiri (~> 1.6.0) ruby

    capybara (>= 0) ruby depends on
      nokogiri (>= 1.3.3) ruby

    capybara (>= 0) ruby depends on
      xpath (~> 2.0) ruby depends on
        nokogiri (~> 1.3) ruby

    deface (< 1.0.0) ruby depends on
      nokogiri (~> 1.4.3) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Running 'bundle update' leads to the same error.

Are there any plans to update the plugin to Redmine 3.x?

Thanks a lot for your work.

TyRoden commented 6 years ago

I have a similar problem and cannot manage to install the module either. I really would love this functionality. Thanks!

shaoran commented 6 years ago

Same here, running on ruby 2.3.3 with redmine-3.3.3

I could do bundle install by editing redmine_simple/Gemfile and removing the version specification of deface

gem 'deface'

This allowed me to execute bundle install.

However there are some JS issues.

I get these errors

simplify_assignee.js:28 Uncaught TypeError: $(...).select2 is not a function
    at simplifyAssignee (simplify_assignee.js:28)
    at HTMLDocument.<anonymous> (simplify_assignee.js:65)
    at j (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)
    at Function.ready (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)
    at HTMLDocument.J (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js:2)

After making some fixes like

function simplifyAssignee() {
    if(window.jql !== undefined)
        var $ = window.jql;

    ...

    $(selectId)
    .select2(...)
    .select2(...);

    $(selectId).on("change", ...)

I keep getting these errors. At that point I stopped trying to fix the JS myself.

simplify_assignee.js:38 Uncaught TypeError: Cannot read property 'results' of undefined
    at query (simplify_assignee.js:38)
    at d.a.query (select2.full.min.js:3)
    at d.j [as query] (select2.full.min.js:1)
    at e.<anonymous> (select2.full.min.js:2)
    at e.d.invoke (select2.full.min.js:1)
    at e.d.trigger (select2.full.min.js:1)
    at e.trigger (select2.full.min.js:2)
    at d.<anonymous> (select2.full.min.js:2)
    at d.invoke (select2.full.min.js:1)
    at d.trigger (select2.full.min.js:1)