Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Aug 2019 18:41:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 239679] devel/rubygem-tzinfo missing method 'to_local'
Message-ID:  <bug-239679-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239679

            Bug ID: 239679
           Summary: devel/rubygem-tzinfo missing method 'to_local'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: nmingotti@gmail.com
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

Hi,=20

Im am runnning FreeBSD-12. A some time ago, installing a package I had to
update the Ruby package.=20

-----
$> ruby --version
ruby 2.5.5p157 (2019-03-15 revision 67260) [amd64-freebsd12]
-----

Today one of my Ruby applications stopped working. The problem is related to
date conversion.

I installed the needed:
$> sudo pkg install rubygem-tzinfo
$> sudo pkg install rubygem-tzinfo-data

But I see that method 'to_local' is missing.
-------------------------------
pry> tz =3D TZInfo::Timezone.get("America/Los_Angeles")
=3D> #<TZInfo::DataTimezone: America/Los_Angeles>
[6] pry(main)> tz.to_local
NoMethodError: undefined method `to_local' for #<TZInfo::DataTimezone:
America/Los_Angeles>
from (pry):6:in `__pry__'
---------------------------------

So i removed the packages and installed from gems, the the methods 'to_loca=
l'
is now available.
-------
$> sudo pkg remove rubygem-tzinfo
$> sudo pkg remove rubygem-tzinfo-data
$> sudo gem install tzinfo
$> pry=20
pry(main)> tz.methods.select {|el| el.match /to_/ }
=3D> [:to_local, :utc_to_local, :local_to_utc, :to_s, :to_json, :to_enum]
-------



bye
Nicola

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239679-7788>