retriable
retriable copied to clipboard
Using RUBY_VERSION in a gemspec doesn't work
Currently there's the following code in the gemspec:
https://github.com/kamui/retriable/blob/e3f9bf47612fe0a85ce59af58fc6a7b7c4cea411/retriable.gemspec#L26-L31
This doesn't work because gemspecs evaluate tot static content. This means it's evaluated only when gem build is called. That Ruby version used there determines the actual resulting gem dependencies.
I'm not aware of any method to do this more dynamically for users.
Hm, maybe I should freeze a specific version to <= 2.3 and have the current version only support 2.3+. 2.3 is pretty old at this point.
I agree that at this point it'd be safe to make it 2.3+.