Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No version variable for tzinfo #28

Closed
marshallshen opened this issue Sep 30, 2014 · 1 comment
Closed

No version variable for tzinfo #28

marshallshen opened this issue Sep 30, 2014 · 1 comment
Labels

Comments

@marshallshen
Copy link
Contributor

@marshallshen marshallshen commented Sep 30, 2014

In the latest release, I don't seem to be able to get package version (1.2.2) by running

TZInfo.version

or

TZInfo::Version

Is there a specific reason why the gem doesn't have such support?

Thanks!

@philr
Copy link
Member

@philr philr commented Sep 30, 2014

The only reason is that it hasn't been added before (please feel free to submit a pull request).

If you are using TZInfo as a gem, then you can get the loaded version as follows:

Gem.loaded_specs['tzinfo'].version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.