Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,12 @@ describe "Config" do | |
Kemal::CLI.new | ||
test_option.should eq("FOOBAR") | ||
end | ||
|
||
it "returns a string" do | ||
Kemal::VERSION.should be_a(String) | ||
This comment has been minimized.
Sorry, something went wrong. |
||
end | ||
|
||
it "gets the version from shards.yml" do | ||
Kemal::VERSION.should eq("0.23.0") | ||
This comment has been minimized.
Sorry, something went wrong.
Sija
Contributor
|
||
end | ||
end |
5 comments
on commit 09bb1fc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, don't waste any more time on this. The PR was intended to be 'cosmetic'. It adds no real value to the code base. Kemal is probably the coolest thing since Sinatra. Please, focus on making it even cooler.
Thank you all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[...] The PR was intended to be 'cosmetic'. It adds no real value to the code base. [...]
@lebogan Well, it adds value in a sense of a π¦π£ (ticking bomb) waiting to explode on CI at very next release. I know what I'd do in your position: I'd send a followup PR fixing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh god..I'm on a business trip and really shocked to see this much bikeshedding going on for this...if we don't like it or it breaks..we can just revert it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll update the version number in a PR, and if you forget to update the specs CI will fail. Thats two places to update the number but CI will enforce that. So who cares, this commit is fine and is exactly how i'd do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sdogruyol Bikeshedding? Yes, if you mean all that needless conversation for something that shouldn't be there in the first place. No, if you mean added complexity for nothing.
@RX14 I haven't seen anywhere else one example of such, ermm... creative approach for making life harder for yourself and other contributors. Can't wait for the comments on next releases, where from now on you'll have not one but two places to update the version string (and it just got automated in VERSION
constant...)
Speccing the type of a constant is pretty much unnecessary.