-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
.shardspec could be useful #44
Comments
Please see the existing extensive discussions at crystal-lang/crystal#220, crystal-lang/crystal#1357 and #25 around the format. |
Ah. I had searched in this repo for something related to that and didn't find anything. I guess I should've looked in the crystal repo. There's only one real brief mention of the Ruby gemspec in those discussions (well, I didn't read it all, but a quick search found only one result.) Should I talk about this in crystal-lang/crystal#1357 ? |
There are several mentions of doing a Crystal based DSL and why that's not really preferable. |
Note that the version can be extracted from # src/version.cr
VERSION = {{ `egrep "^version:" "#{ __DIR__ }/shard.yml"`[8 .. -1].stringify.strip }} Not pretty, but doable. |
We actually could think about compiler support for that once shards ships with it, have compile time access to the entire parsed shard.yml |
First off: I'm glad this was incorporated into Crystal.
Would it be desirable to add something like Ruby's
.gemspec
? I find that really useful to differentiate gems from projects. Also, it's actually Ruby code which gets evaluated, therefore there's no need to supply the version twice (once in a module'sversion.cr
and once in theshards.yml
file.)Example:
The text was updated successfully, but these errors were encountered: