From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 490057236480 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,84fc934da9a14f27 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.112.43.65 with SMTP id u1mr1258lbl.16.1421096730417; Mon, 12 Jan 2015 13:05:30 -0800 (PST) X-BeenThere: supmua@googlegroups.com Received: by 10.180.78.201 with SMTP id d9ls385393wix.43.canary; Mon, 12 Jan 2015 13:05:30 -0800 (PST) X-Received: by 10.180.82.34 with SMTP id f2mr2384096wiy.1.1421096730086; Mon, 12 Jan 2015 13:05:30 -0800 (PST) Return-Path: Received: from mail-we0-x232.google.com (mail-we0-x232.google.com. [2a00:1450:400c:c03::232]) by gmr-mx.google.com with ESMTPS id v8si537625wif.1.2015.01.12.13.05.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 Jan 2015 13:05:30 -0800 (PST) Received-SPF: pass (google.com: domain of avtobiff@gmail.com designates 2a00:1450:400c:c03::232 as permitted sender) client-ip=2a00:1450:400c:c03::232; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of avtobiff@gmail.com designates 2a00:1450:400c:c03::232 as permitted sender) smtp.mail=avtobiff@gmail.com; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Received: by mail-we0-x232.google.com with SMTP id p10so21364393wes.9 for ; Mon, 12 Jan 2015 13:05:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=L84oGBx2fu44BWsHzh95hFge8q0FfX15lF2U8ZArpk8=; b=TgNnA5DpGx80IJR8K8NMjnkn/O20jDt5v3Bx8sffsov+K+PU7Ot6xI1nc/CKSKR7fT 06S2MvsVl2C//nw56bOYdZN/K3FA8cPgjlxzX8M2RreBCL/mSyLLZOKU5XufiCDRejbg PllpaUfoSiADI/qlsa6xlHc96xM3ptb4x9DWb8kwLy3jB2tjVTC7gK5vG3mOp1Kjk4Dr dAY4yjEF8mVOSsfY/bow7uHhRFjlEV2l+muXLiwZUhyfQBdboEMJE89ZdRW6KCHq1MQg gl57nsqfriwC7zQxoMjxT4ppTKCXMO/gRU2+1NmV/HLVv3K/WhISiCv7gNJPMcItNU2d F1+w== MIME-Version: 1.0 X-Received: by 10.194.191.164 with SMTP id gz4mr63470759wjc.70.1421096729982; Mon, 12 Jan 2015 13:05:29 -0800 (PST) Received: by 10.27.176.68 with HTTP; Mon, 12 Jan 2015 13:05:29 -0800 (PST) In-Reply-To: <1421014626-sup-9934@ruthard-lappi> References: <1421014626-sup-9934@ruthard-lappi> Date: Mon, 12 Jan 2015 22:05:29 +0100 Message-ID: Subject: Re: [sup] sup broken with ruby 2.2? From: Per Andersson To: Ruthard Baudach Cc: supmua Content-Type: text/plain; charset=UTF-8 On Sun, Jan 11, 2015 at 11:33 PM, Ruthard Baudach 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