Skip to content

Commit

Permalink
Update podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
zenangst committed Sep 18, 2015
1 parent 604d460 commit ca7711b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Pod/Tests/TestMappable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,10 @@ class TestMappable: XCTestCase {

testStruct.relatives <+ relatives.object("first")
XCTAssert(testStruct.relatives.count == 1)

let copy = testStruct
testStruct.relatives <+ copy
XCTAssert(testStruct.relatives.count == 2)
}

}
2 changes: 1 addition & 1 deletion Source/Tailor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public extension Dictionary {
return transformer(value: value as? U)
}

func object<T : Mappable>(name: String) -> T? {
func object<T : Mappable>(name: String? = nil) -> T? {
guard let value = self[name as! Key] else { return nil }
guard let dictionary = value as? JSONDictionary else { return nil }
return T(dictionary)
Expand Down
5 changes: 1 addition & 4 deletions Tailor.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Tailor"
s.summary = "Tailor Swift"
s.summary = "A super fast & convenient object mapper tailored for your needs."
s.version = "0.2.0"
s.homepage = "https://github.com/zenangst/Tailor"
s.license = 'MIT'
Expand All @@ -10,7 +10,4 @@ Pod::Spec.new do |s|
s.platform = :ios, '8.0'
s.requires_arc = true
s.source_files = 'Source/**/*'

# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end

0 comments on commit ca7711b

Please sign in to comment.