-
Notifications
You must be signed in to change notification settings - Fork 58
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
Swift 5 #119
Swift 5 #119
Conversation
4f39ad7
to
1497041
Compare
@@ -1 +1 @@ | |||
2.3.7 | |||
2.4.5 |
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.
If there's no need for newest additions in latest Ruby versions we should try to keep the Ruby version shipped with latest version of macOS (don't even know which it is and if 2.3.7 was already that) so that people not wanting to use rvm/rbenv won't have to worry. Except if you saw features in more recent Ruby versions that we needed?
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.
I actually tried that in this PR (and the other PR in SwiftGen), but it starts complaining about an unknown version of ruby, so 🤷♂️
I'm curious as to why linux swift 4.0 can't find Stencil... It has a |
shell: /bin/bash --login -eo pipefail | ||
- &linux-config | ||
environment: | ||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts | ||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results | ||
BUNDLE_PATH: vendor/bundle | ||
docker: | ||
- image: norionomura/jazzy:swift-4.2.0 |
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.
We don't have a docker image with Swift 5 support yet.
Those Docker images with Swift 5 are now since available: https://github.com/norio-nomura/docker-jazzy
This PR is superseded by #127, which (amongst other things) upgrades to Swift 5. |
Few things:
lowerFirstWord
crashes in swift 5 becausescalars.index(after: start)
crashes for an empty string. I've added a check forisEmpty
before it, or we could invert the "after start" and "before end" checks. TBH, I think theisEmpty
check is clearer in its intent.