diff --git a/Himotoki.podspec b/Himotoki.podspec index ecc80ac..3a8e1ae 100644 --- a/Himotoki.podspec +++ b/Himotoki.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Himotoki" - s.version = "0.4" + s.version = "0.4.1" s.summary = "A type-safe JSON decoding library purely written in Swift" s.description = <<-DESC Himotoki (紐解き) is a type-safe JSON decoding library purely written in Swift. This library is highly inspired by popular JSON parsing libraries in Swift: [Argo](https://github.com/thoughtbot/Argo) and [ObjectMapper](https://github.com/Hearst-DD/ObjectMapper). diff --git a/Himotoki/Info.plist b/Himotoki/Info.plist index eabe5a5..ea5ab03 100644 --- a/Himotoki/Info.plist +++ b/Himotoki/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.4 + 0.4.1 CFBundleSignature ???? CFBundleVersion diff --git a/Himotoki/KeyPath.swift b/Himotoki/KeyPath.swift index 237a4b8..03e3906 100644 --- a/Himotoki/KeyPath.swift +++ b/Himotoki/KeyPath.swift @@ -8,6 +8,14 @@ public struct KeyPath { public let components: [String] + + public init(_ key: String) { + self.init([key]) + } + + public init(_ components: [String]) { + self.components = components + } } extension KeyPath: StringLiteralConvertible { @@ -15,15 +23,15 @@ extension KeyPath: StringLiteralConvertible { public typealias ExtendedGraphemeClusterLiteralType = StringLiteralType public init(unicodeScalarLiteral value: UnicodeScalarLiteralType) { - components = [value] + self.init(value) } public init(extendedGraphemeClusterLiteral value: ExtendedGraphemeClusterLiteralType) { - components = [value] + self.init(value) } public init(stringLiteral value: StringLiteralType) { - components = [value] + self.init(value) } } @@ -31,6 +39,6 @@ extension KeyPath: ArrayLiteralConvertible { public typealias Element = String public init(arrayLiteral elements: String...) { - components = elements + self.init(elements) } } diff --git a/HimotokiTests/Info.plist b/HimotokiTests/Info.plist index 741004d..7710c28 100644 --- a/HimotokiTests/Info.plist +++ b/HimotokiTests/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 0.4 + 0.4.1 CFBundleSignature ???? CFBundleVersion