Skip to content

Commit

Permalink
Merge pull request #1 from codyrobb/swift-3.0
Browse files Browse the repository at this point in the history
Swift 3.0
  • Loading branch information
codyrobb authored Jan 13, 2017
2 parents 5536fef + 8d64aad commit cf7e5c4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3
3.0
5 changes: 5 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import PackageDescription

let package = Package(
name: "Phrase"
)
4 changes: 2 additions & 2 deletions Phrase.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |spec|
spec.name = 'Phrase'
spec.version = '1.0.0'
spec.version = '2.0.0'
spec.license = { :type => 'Apache License, Version 2.0' }
spec.homepage = 'https://github.com/codyrobb/Phrase'
spec.authors = { 'Cody Robertson' => '[email protected]' }
spec.summary = 'A Swift templating library.'
spec.source = { :git => 'https://github.com/codyrobb/Phrase.git', :tag => '1.0.0' }
spec.source = { :git => 'https://github.com/codyrobb/Phrase.git', :tag => '2.0.0' }
spec.source_files = 'Sources/*'

spec.ios.deployment_target = '9.0'
Expand Down
2 changes: 1 addition & 1 deletion Sources/Phrase.swift
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ final public class Phrase {
var formatted = template

for (key, value) in replacements {
formatted = formatted.stringByReplacingOccurrencesOfString(tokenize(key), withString: value)
formatted = formatted.replacingOccurrences(of: tokenize(key: key), with: value)
}

return formatted
Expand Down

0 comments on commit cf7e5c4

Please sign in to comment.