Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>TL;DR - not really. You'll need to build one or both projects or get some help from the <code>jruby-rack</code> team by way of a release. See bottom for build steps.</p> <hr> <p>The current Trinidad versions (<a href="http://rubygems.org/gems/trinidad/versions/1.4.4" rel="nofollow">1.4.4</a> and 1.4.5B1 prerelease) use <code>jruby-rack</code> with optimistic versioning (<code>&gt;= 1.1.10</code> and <code>&gt;= 1.1.13</code>, respectively), so any dependency that satisfies this (say, 1.2.0) would take precedence without touching Trinidad.</p> <p>Unfortunately, because of how the JAR is packaged, a <code>git:</code> or <code>github:</code> dependency will not work. You would need to <a href="https://github.com/jruby/jruby-rack#building" rel="nofollow">build the gem</a> yourself. This is not too bad -- you really just need Maven beyond a working JDK/JRuby setup.</p> <p>Once <code>jruby-rack</code> is built/released with the changes, will be able to specify a workable version in your Gemfile (assuming it gets versioned 1.2.0):</p> <pre><code>gem 'jruby-rack', '~&gt; 1.2.0' gem 'trinidad' </code></pre> <p>Maybe the <code>jruby-rack</code> team could backport this specific change to the 1.1.13 maintenance line and push a 1.1.13.2 release if it doesn't introduce incompatibility. Or they may be willing to do a prerelease from master.</p> <hr> <p>I haven't tested that things work properly for assets, but building and specifying the local version was relatively easy:</p> <pre><code># Assuming mvn is on the path, JRuby is active, and you # have gem install permissions: git clone https://github.com/jruby/jruby-rack.git cd jruby-rack bundle install bundle exec rake clean gem SKIP_SPECS=true gem install --local target/jruby-rack-1.2.0.SNAPSHOT.gem </code></pre> <p>After this, you can use <code>gem 'jruby-rack', '~&gt; 1.2.0.SNAPSHOT'</code> in your Gemfile to satisfy Trinidad and test whether your problem is resolved.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload