From: Per Andersson <avtobiff@gmail.com>
To: Ruthard Baudach <ruthard.baudach@web.de>
Cc: supmua <supmua@googlegroups.com>
Subject: Re: [sup] sup broken with ruby 2.2?
Date: Mon, 12 Jan 2015 22:05:29 +0100 [thread overview]
Message-ID: <CABYrXSThvLsu67u96f2M06YEO21fs=sgsdpY2EkApMhXnFSR4Q@mail.gmail.com> (raw)
In-Reply-To: <1421014626-sup-9934@ruthard-lappi>
On Sun, Jan 11, 2015 at 11:33 PM, Ruthard Baudach
<ruthard.baudach@web.de> wrote:
> It hit me, too.
>
> The problem seems to be a deprecated DL module, that is
> substituted by Fiddle and removed from Ruby 2.2. (remember the
> deprecation notice when sup started?)
>
> Assuming that the API of fiddle is the same as of DL, I replaced 'dl' by
> 'fiddle' and it seems to work:
>
> Locate your master sup script -- it should live in sup's bin/ directory,
> if you installed sup via `gem install` this should be
> `$HOME/.gem/ruby/2.2.0/gems/sup-0.20.0/bin/sup` for a current sup and
> ruby install
>
> open this file in the editor of your choice.
>
> line 111 has to be changed from
>
> require 'dl/import'
>
> to
> require 'fiddle/import'
>
> and line 113 from
>
> extend DL.const_defined?(:Importer) ? DL::Importer : DL::Importable
>
> to
>
> extend Fiddle::Importer
>
>
> Sorry to Gaute and all developers for not providing a patch, but
>
> a) I'm not really shure this will work, someone should probably skim the
> documentation of ruby 2.1.5 dl/import and ruby 2.2.0 fiddle/import
> b) I'm still not really acquainted with git.
You can actually edit the files via the web browser on GitHub.
To do this select a file then click the pen button on the upper right corner
of the file view (right of the raw, blame, history buttons). This will fork the
project and commit your changes if I understood correctly.
Good primers to git is in the documentation
http://git-scm.com/documentation
You can also try it interactively online
https://try.github.io/levels/1/challenges/1
--
Per
next prev parent reply other threads:[~2015-01-12 21:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-06 10:13 gui-gui
2015-01-11 22:33 ` [sup] " Ruthard Baudach
2015-01-12 9:08 ` Gaute Hope
2015-01-12 21:05 ` Per Andersson [this message]
2015-03-04 14:37 ` Jan Winkelmann
2015-03-04 14:51 ` gui-gui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABYrXSThvLsu67u96f2M06YEO21fs=sgsdpY2EkApMhXnFSR4Q@mail.gmail.com' \
--to=avtobiff@gmail.com \
--cc=ruthard.baudach@web.de \
--cc=supmua@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox