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

Secrets breaks with Crystal 0.25.0 and Secrets 0.1.1 #1

Closed
lebogan opened this issue Jun 17, 2018 · 2 comments · Fixed by #2
Closed

Secrets breaks with Crystal 0.25.0 and Secrets 0.1.1 #1

lebogan opened this issue Jun 17, 2018 · 2 comments · Fixed by #2
Labels
bug Something isn't working

Comments

@lebogan
Copy link

lebogan commented Jun 17, 2018

My code:
conf["auth"] = Secrets.gets prompt: "Enter authentication phrase: "

The error I get is:
...
in lib/secrets/src/secrets.cr:16: too many block arguments (given 1, expected maximum 0)

loop do |i|

Thanks for this way too cool shard!

@faustinoaq
Copy link
Owner

Hi @lebogan Thank you for report this issue!

Oh, looks like loop doesn't have a counter argument anymore 😅

Ref: crystal-lang/crystal#6026

@faustinoaq faustinoaq added the bug Something isn't working label Jun 17, 2018
@faustinoaq
Copy link
Owner

I just released https://github.com/faustinoaq/secrets/releases/tag/v0.1.2 (backward compatible) 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants