[Bug 239679] devel/rubygem-tzinfo missing method 'to_local'
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Aug 6 18:41:43 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239679
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 at FreeBSD.org
Reporter: nmingotti at gmail.com
Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
Assignee: sunpoet at FreeBSD.org
Hi,
Im am runnning FreeBSD-12. A some time ago, installing a package I had to
update the Ruby package.
-----
$> 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 = TZInfo::Timezone.get("America/Los_Angeles")
=> #<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_local'
is now available.
-------
$> sudo pkg remove rubygem-tzinfo
$> sudo pkg remove rubygem-tzinfo-data
$> sudo gem install tzinfo
$> pry
pry(main)> tz.methods.select {|el| el.match /to_/ }
=> [:to_local, :utc_to_local, :local_to_utc, :to_s, :to_json, :to_enum]
-------
bye
Nicola
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list