retriable icon indicating copy to clipboard operation
retriable copied to clipboard

Using RUBY_VERSION in a gemspec doesn't work

Open ekohl opened this issue 5 years ago • 2 comments

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.

ekohl avatar Mar 15 '19 10:03 ekohl

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.

kamui avatar Jan 11 '20 20:01 kamui

I agree that at this point it'd be safe to make it 2.3+.

ekohl avatar Feb 20 '20 13:02 ekohl