-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from insanoid/releases/v1.3.0
Releases/v1.3.0
- Loading branch information
Showing
13 changed files
with
155 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
SwiftyJSONAccelerator/Templates/Library-Extension-Templates/MarshalTemplate.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
// MARK: Marshal Initializers | ||
|
||
/** | ||
Map a JSON object to this class using ObjectMapper | ||
- parameter map: A mapping from ObjectMapper | ||
*/ | ||
/// Map a JSON object to this class using Marshal. | ||
/// | ||
/// - parameter object: A mapping from ObjectMapper | ||
public{REQUIRED}init(object: MarshaledObject) { | ||
{INITIALIZER} | ||
} |
16 changes: 7 additions & 9 deletions
16
SwiftyJSONAccelerator/Templates/Library-Extension-Templates/ObjectMapperTemplate.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
// MARK: ObjectMapper Initializers | ||
/** | ||
Map a JSON object to this class using ObjectMapper | ||
- parameter map: A mapping from ObjectMapper | ||
*/ | ||
public{REQUIRED}init?(_ map: Map){ | ||
/// Map a JSON object to this class using ObjectMapper. | ||
/// | ||
/// - parameter map: A mapping from ObjectMapper. | ||
public{REQUIRED}init?(map: Map){ | ||
|
||
} | ||
|
||
/** | ||
Map a JSON object to this class using ObjectMapper | ||
- parameter map: A mapping from ObjectMapper | ||
*/ | ||
/// Map a JSON object to this class using ObjectMapper. | ||
/// | ||
/// - parameter map: A mapping from ObjectMapper. | ||
public func mapping(map: Map) { | ||
{INITIALIZER} | ||
} |
17 changes: 7 additions & 10 deletions
17
SwiftyJSONAccelerator/Templates/Library-Extension-Templates/SwiftyJSONTemplate.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
// MARK: SwiftyJSON Initializers | ||
/** | ||
Initiates the instance based on the object | ||
- parameter object: The object of either Dictionary or Array kind that was passed. | ||
- returns: An initialized instance of the class. | ||
*/ | ||
/// Initiates the instance based on the object. | ||
/// | ||
/// - parameter object: The object of either Dictionary or Array kind that was passed. | ||
/// - returns: An initialized instance of the class. | ||
public convenience init(object: Any) { | ||
self.init(json: JSON(object)) | ||
} | ||
|
||
/** | ||
Initiates the instance based on the JSON that was passed. | ||
- parameter json: JSON object from SwiftyJSON. | ||
- returns: An initialized instance of the class. | ||
*/ | ||
/// Initiates the instance based on the JSON that was passed. | ||
/// | ||
/// - parameter json: JSON object from SwiftyJSON. | ||
public{REQUIRED}init(json: JSON) { | ||
{INITIALIZER} | ||
} |
Oops, something went wrong.