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

Update the version constant when release #2

Closed
shouichi opened this issue Oct 5, 2020 · 2 comments
Closed

Update the version constant when release #2

shouichi opened this issue Oct 5, 2020 · 2 comments

Comments

@shouichi
Copy link

shouichi commented Oct 5, 2020

Hi,

Could you update the ZenginCode version constant when releasing a new version? We want to cache the data from this gem and want to use the version as a part of cache keys. We use Gem.loaded_specs["zengin_code"].version.to_s to get the gem version but just ZenginCode.version would be much nicer.

Thank you.

@rosylilly
Copy link
Member

@shouichi Already included updated_at in ZenginCode.version. You can use that for a cache key.

> ZenginCode.version
=> "1.0.1-p20201212"

@shouichi
Copy link
Author

Cool, thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants