Skip to content

Commit

Permalink
Data to NSData bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
evermeer committed Jan 2, 2017
1 parent adcc2a3 commit 1f06048
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion EVReflection.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pod::Spec.new do |s|
#

s.name = "EVReflection"
s.version = "3.5.2"
s.version = "3.6.0"
s.summary = "iOS: Swift helper library with reflection functions"
s.description = "Swift helper library with reflection functions including support for NSCoding, Printable, Hashable, Equatable and JSON"
s.homepage = "https://github.com/evermeer/EVReflection"
Expand Down
3 changes: 3 additions & 0 deletions EVReflection/EVReflection.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@
};
7F6C9FAF1CB90E6D00F19811 = {
CreatedOnToolsVersion = 7.3;
DevelopmentTeam = 443FV7F3ZK;
};
7F9336AD1C28227400AF7076 = {
CreatedOnToolsVersion = 7.2;
Expand Down Expand Up @@ -1364,6 +1365,7 @@
CLANG_ANALYZER_NONNULL = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 443FV7F3ZK;
INFOPLIST_FILE = EVReflectionTestApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = nl.evict.EVReflectionTestApp;
Expand All @@ -1379,6 +1381,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ANALYZER_NONNULL = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
DEVELOPMENT_TEAM = 443FV7F3ZK;
INFOPLIST_FILE = EVReflectionTestApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = nl.evict.EVReflectionTestApp;
Expand Down
3 changes: 3 additions & 0 deletions EVReflection/pod/EVReflection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,9 @@ final public class EVReflection {
if valueType == "Foundation.Date" {
return (theValue as! NSDate, "NSDate", false)
}
if valueType == "Foundation.Data" {
return (theValue as! NSData, "NSData", false)
}
let structAsDict = convertStructureToDictionary(theValue, conversionOptions: conversionOptions, isCachable: isCachable, parents: parents)
return (structAsDict, "Struct", false)
} else {
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
[![Documentation](https://img.shields.io/badge/documented-97%-green.svg?style=flat)](http://cocoadocs.org/docsets/EVReflection)
[![Stars](https://img.shields.io/github/stars/evermeer/EVReflection.svg?style=flat)](https://github.com/evermeer/EVReflection/stargazers)
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/matteocrippa/awesome-swift#json)
[![Downloads](https://img.shields.io/cocoapods/dt/EVReflection.svg?style=flat)](https://cocoapods.org/pods/EVReflection)


[![Version](https://img.shields.io/cocoapods/v/EVReflection.svg?style=flat)](http://cocoadocs.org/docsets/EVReflection)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
Expand Down

0 comments on commit 1f06048

Please sign in to comment.