emd icon indicating copy to clipboard operation
emd copied to clipboard

Rails6 compatibility

Open fwolfst opened this issue 5 years ago • 2 comments

In Rails6 the signature for TemplateHandlers apparently changed.

#call now requires two arguments (template and source). I will PR an easy fix, but do not know how to keep backwards compatibility (other template handler implementations should have done that, though).

fwolfst avatar Feb 24 '20 08:02 fwolfst

Problem seemed to be a redcarpet dependency. I had redcarpet 3.5 which apparently is only compatible with emd 0.1 .

I propose:

  • check and relax the redcarpet dependency in gemspec ( '~> 3') or
  • state the versions explicitely in README:
    gem 'emd', '~> 0.5'
    gem 'redcarpet', '~> 3.4'

fwolfst avatar Feb 24 '20 08:02 fwolfst

Again summarized: The fixes in 0.5.0 (#13) work for me, but bundle and bundle update did not fetch it.

fwolfst avatar Feb 24 '20 09:02 fwolfst