Closed willdowglas closed 10 months ago
can't you install tzdata
via apt?
Yes, but it doesn't come pre-installed in most Linux distros, as well as windows and mac os.
If you don't want to add another dependency, maybe I can update the readme pointing out that tzdata
is a prerequisite.
What do you think would be better?
if you can google the solution, it should be enough.
When you're using this gem outside the Rails environment (Sinatra, for instance), the gem
tzinfo-data
is not included, so when you doIt will raise the
TZInfo::DataSourceNotFound
error.The fix is pretty simple, as the doc suggests: https://github.com/tzinfo/tzinfo/wiki/Resolving-TZInfo::DataSourceNotFound-Errors
If you want to simulate this, I made a simple
Dockerfile
so you can try it.Build with
And run IRB trying to import the
openid_connect
gemOr run the tests, which will fail:
If you run these steps with this commit, you'll see that everything works as supposed.