2 Commits

Author SHA1 Message Date
Kyle Fuller
cf7acea440 chore: Release 0.10.1 2017-11-17 18:42:34 +00:00
Dan Watson
9e24ab658b feat: Add support for Xcode 9.1 (#149) 2017-11-17 18:41:32 +00:00
4 changed files with 13 additions and 4 deletions

View File

@@ -6,6 +6,9 @@ matrix:
- os: osx
osx_image: xcode9
env: SWIFT_VERSION=4.0
- os: osx
osx_image: xcode9.1
env: SWIFT_VERSION=4.0
- os: linux
env: SWIFT_VERSION=3.1.1
- os: linux

View File

@@ -1,5 +1,11 @@
# Stencil Changelog
## 0.10.1
### Enhancements
- Add support for Xcode 9.1.
## 0.10.0
### Enhancements

View File

@@ -10,7 +10,7 @@ struct Lexer {
guard string.characters.count > 4 else { return "" }
let start = string.index(string.startIndex, offsetBy: 2)
let end = string.index(string.endIndex, offsetBy: -2)
return string[start..<end].trim(character: " ")
return String(string[start..<end]).trim(character: " ")
}
if string.hasPrefix("{{") {
@@ -149,6 +149,6 @@ extension String {
func trim(character: Character) -> String {
let first = findFirstNot(character: character) ?? startIndex
let last = findLastNot(character: character) ?? endIndex
return self[first..<last]
return String(self[first..<last])
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "Stencil",
"version": "0.10.0",
"version": "0.10.1",
"summary": "Stencil is a simple and powerful template language for Swift.",
"homepage": "https://stencil.fuller.li",
"license": {
@@ -13,7 +13,7 @@
"social_media_url": "https://twitter.com/kylefuller",
"source": {
"git": "https://github.com/kylef/Stencil.git",
"tag": "0.10.0"
"tag": "0.10.1"
},
"source_files": [
"Sources/*.swift"