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

scanf is no longer bundled with Ruby 2.7.0 #7

Open
hendrixfan opened this issue Mar 21, 2020 · 0 comments
Open

scanf is no longer bundled with Ruby 2.7.0 #7

hendrixfan opened this issue Mar 21, 2020 · 0 comments

Comments

@hendrixfan
Copy link

Hi there,

I'm using your libary to create triangle patterns and I've noticed that there seems to be an Issue with Ruby 2.7.

When I run bin/console in ruby 2.7 I'm getting the following error:

Traceback (most recent call last):
	5: from bin/console:4:in `<main>'
	4: from bin/console:4:in `require'
	3: from /home/wolle/projekte/gradient/lib/gradient.rb:8:in `<top (required)>'
	2: from /home/wolle/projekte/gradient/lib/gradient.rb:8:in `require'
	1: from /home/wolle/projekte/gradient/lib/gradient/svg.rb:1:in `<top (required)>'
/home/wolle/projekte/gradient/lib/gradient/svg.rb:1:in `require': cannot load such file -- scanf (LoadError)

scanf cannot be loaded because it was excluded as a standard libary as of version 2.7 https://rubyreferences.github.io/rubychanges/2.7.html#libraries-excluded-from-the-standard-library

Solution:

Include scanf in your gemspec

hendrixfan pushed a commit to hendrixfan/triangle that referenced this issue Sep 12, 2020
* Libary is necessary to ensure Ruby 2.7.0 Compatibility
* see zeevallin/gradient#7
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

1 participant