Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Encodable Protocol #21

Merged
merged 7 commits into from
Nov 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.

#### 2.x Releases

* `2.1.x` Releases = [2.1.0](#210)
* `2.0.x` Releases = [2.0.0](#200)

#### 1.x Releases
Expand All @@ -14,9 +15,51 @@ All notable changes to this project will be documented in this file.

---

## [2.1.0](https://github.com/Nike-Inc/Elevate/releases/tag/2.1.0)

Released on 2016-11-27.

#### Added

- The `.swift-version` file pointing at Swift 3.0 to support CocoaPods.
- Added by [Christian Noon](https://github.com/cnoon).
- The `Encodable` protocol along with extensions for common types and unit tests.
- Added by [Christian Noon](https://github.com/cnoon) in Pull Request
[#21](https://github.com/Nike-Inc/Elevate/pull/21).
- The `Encodable` section to the README and updated `Decodable` to use `KeyPath` struct.
- Added by [Christian Noon](https://github.com/cnoon) in Pull Request
[#21](https://github.com/Nike-Inc/Elevate/pull/21).

#### Updated

- The `Person` example to use an extension in the README.
- Updated by [Rich Ellis](https://github.com/richellis) in Pull Request
[#16](https://github.com/Nike-Inc/Elevate/pull/16).
- Xcode project settings to latest defaults and disabled code signing.
- Updated by [Christian Noon](https://github.com/cnoon) in Pull Request
[#21](https://github.com/Nike-Inc/Elevate/pull/21).
- Xcode project by disabling code signing on all targets and removed duplicate code signing identities.
- Updated by [Christian Noon](https://github.com/cnoon) in Pull Request
[#21](https://github.com/Nike-Inc/Elevate/pull/21).
- Travis config to remove Slather due to test failures and added iOS 8.1 and 9.1 to device matrix.
- Updated by [Christian Noon](https://github.com/cnoon) in Pull Request
[#23](https://github.com/Nike-Inc/Elevate/pull/23).


#### Fixed

- Incorrect enum case in README for type arguments.
- Fixed by [Dave Camp](https://github.com/AtomicCat) in Pull Request
[#19](https://github.com/Nike-Inc/Elevate/pull/19).
- Issue where incorrect parameter name was used in multiple decoders section of the README.
- Fixed by [Christian Noon](https://github.com/cnoon) in Pull Request
[#20](https://github.com/Nike-Inc/Elevate/pull/20).

---

## [2.0.0](https://github.com/Nike-Inc/Elevate/releases/tag/2.0.0)

Released on 2016-09-08
Released on 2016-09-08.

#### Added

Expand Down
2 changes: 1 addition & 1 deletion Elevate.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Elevate'
s.version = '2.0.0'
s.version = '2.1.0'
s.summary = 'Elevate is a JSON parsing framework that leverages Swift to make parsing simple, reliable and composable.'
s.homepage = 'https://github.com/Nike-Inc/Elevate'
s.license = 'MIT'
Expand Down
36 changes: 33 additions & 3 deletions Elevate.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
4C66AE191C84C6EF0002AC77 /* PerformanceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C66AE181C84C6EF0002AC77 /* PerformanceTests.swift */; };
4C66AE1A1C84C6EF0002AC77 /* PerformanceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C66AE181C84C6EF0002AC77 /* PerformanceTests.swift */; };
4C66AE1B1C84C6EF0002AC77 /* PerformanceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C66AE181C84C6EF0002AC77 /* PerformanceTests.swift */; };
4CA026411DDF8A0C00C670C8 /* Encodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CA026401DDF8A0C00C670C8 /* Encodable.swift */; };
4CA026421DDF8A0C00C670C8 /* Encodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CA026401DDF8A0C00C670C8 /* Encodable.swift */; };
4CA026431DDF8A0C00C670C8 /* Encodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CA026401DDF8A0C00C670C8 /* Encodable.swift */; };
4CA026441DDF8A0C00C670C8 /* Encodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CA026401DDF8A0C00C670C8 /* Encodable.swift */; };
4CA026461DDF8A7A00C670C8 /* EncodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CA026451DDF8A7A00C670C8 /* EncodableTests.swift */; };
4CA026471DDF8A7A00C670C8 /* EncodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CA026451DDF8A7A00C670C8 /* EncodableTests.swift */; };
4CA026481DDF8A7A00C670C8 /* EncodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CA026451DDF8A7A00C670C8 /* EncodableTests.swift */; };
4CA33F471B7559250047C307 /* Elevate.h in Headers */ = {isa = PBXBuildFile; fileRef = E91C4DF51B5475CC000481D2 /* Elevate.h */; settings = {ATTRIBUTES = (Public, ); }; };
4CA33F481B75592A0047C307 /* Decoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = E937BE681B72C123005584D4 /* Decoder.swift */; };
4CA33F491B75592A0047C307 /* Decodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = E937BE541B713D0C005584D4 /* Decodable.swift */; };
Expand Down Expand Up @@ -128,6 +135,8 @@
4C5FB4A01B55C229001258D3 /* PropertyTypesTest.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = PropertyTypesTest.json; sourceTree = "<group>"; };
4C5FB4A11B55C229001258D3 /* PropertyTypesWithIncorrectValueTypes.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = PropertyTypesWithIncorrectValueTypes.json; sourceTree = "<group>"; };
4C66AE181C84C6EF0002AC77 /* PerformanceTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PerformanceTests.swift; sourceTree = "<group>"; };
4CA026401DDF8A0C00C670C8 /* Encodable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Encodable.swift; sourceTree = "<group>"; };
4CA026451DDF8A7A00C670C8 /* EncodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EncodableTests.swift; sourceTree = "<group>"; };
4CA33F3F1B7558C30047C307 /* Elevate.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Elevate.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4CD761001C82679D00DCC104 /* Elevate.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Elevate.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4CD761091C82679D00DCC104 /* ElevateTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ElevateTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -214,6 +223,7 @@
children = (
E99C82031B55E3380090FA56 /* DecodableTests.swift */,
E91C4E081B54770C000481D2 /* DecoderTests.swift */,
4CA026451DDF8A7A00C670C8 /* EncodableTests.swift */,
E92426411B81160F000CB0F1 /* ParserInternalTests.swift */,
E99C82061B55E5B50090FA56 /* ParserTests.swift */,
4C66AE181C84C6EF0002AC77 /* PerformanceTests.swift */,
Expand Down Expand Up @@ -272,8 +282,9 @@
isa = PBXGroup;
children = (
E937BE541B713D0C005584D4 /* Decodable.swift */,
E9CDF95F1D7F833200639059 /* Elevate.swift */,
E937BE681B72C123005584D4 /* Decoder.swift */,
E9CDF95F1D7F833200639059 /* Elevate.swift */,
4CA026401DDF8A0C00C670C8 /* Encodable.swift */,
E91C4DF61B5475CC000481D2 /* Parser.swift */,
E937BE6E1B72C26E005584D4 /* ParserError.swift */,
E937BE6B1B72C1BD005584D4 /* ParserProperty.swift */,
Expand Down Expand Up @@ -484,7 +495,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0800;
LastUpgradeCheck = 0810;
ORGANIZATIONNAME = Nike;
TargetAttributes = {
4CA33F3E1B7558C30047C307 = {
Expand All @@ -495,6 +506,7 @@
};
4CD761081C82679D00DCC104 = {
CreatedOnToolsVersion = 7.2.1;
ProvisioningStyle = Manual;
};
E91C4DD71B547559000481D2 = {
CreatedOnToolsVersion = 7.0;
Expand All @@ -503,10 +515,11 @@
E91C4DE11B547559000481D2 = {
CreatedOnToolsVersion = 7.0;
LastSwiftMigration = 0800;
ProvisioningStyle = Manual;
};
E91C4E111B5477BD000481D2 = {
CreatedOnToolsVersion = 7.0;
ProvisioningStyle = Automatic;
ProvisioningStyle = Manual;
};
E91C4E1A1B5477BD000481D2 = {
CreatedOnToolsVersion = 7.0;
Expand Down Expand Up @@ -621,6 +634,7 @@
4CA33F4A1B75592A0047C307 /* Parser.swift in Sources */,
4CA33F4B1B75592A0047C307 /* ParserError.swift in Sources */,
E9CDF9631D7F833200639059 /* Elevate.swift in Sources */,
4CA026441DDF8A0C00C670C8 /* Encodable.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -635,6 +649,7 @@
4CD7611A1C82681800DCC104 /* Parser.swift in Sources */,
4CD7611B1C82681800DCC104 /* ParserError.swift in Sources */,
E9CDF9621D7F833200639059 /* Elevate.swift in Sources */,
4CA026431DDF8A0C00C670C8 /* Encodable.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -651,6 +666,7 @@
4CD761201C82681C00DCC104 /* DecoderTests.swift in Sources */,
4CD7611F1C82681C00DCC104 /* DecodableTests.swift in Sources */,
4CD761231C82681C00DCC104 /* PropertyExtractionTests.swift in Sources */,
4CA026481DDF8A7A00C670C8 /* EncodableTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -665,6 +681,7 @@
E937BE691B72C123005584D4 /* Decoder.swift in Sources */,
E937BE551B713D0C005584D4 /* Decodable.swift in Sources */,
E9CDF9601D7F833200639059 /* Elevate.swift in Sources */,
4CA026411DDF8A0C00C670C8 /* Encodable.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -681,6 +698,7 @@
E99C82041B55E3380090FA56 /* DecodableTests.swift in Sources */,
E99C82011B55E1400090FA56 /* BaseTestCase.swift in Sources */,
4C0C61951C161E7800BBB2F9 /* PropertyExtractionTests.swift in Sources */,
4CA026461DDF8A7A00C670C8 /* EncodableTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -695,6 +713,7 @@
E937BE6A1B72C123005584D4 /* Decoder.swift in Sources */,
E937BE561B713D0C005584D4 /* Decodable.swift in Sources */,
E9CDF9611D7F833200639059 /* Elevate.swift in Sources */,
4CA026421DDF8A0C00C670C8 /* Encodable.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -711,6 +730,7 @@
E99C82051B55E3380090FA56 /* DecodableTests.swift in Sources */,
E99C82021B55E1400090FA56 /* BaseTestCase.swift in Sources */,
4C0C61961C161E7800BBB2F9 /* PropertyExtractionTests.swift in Sources */,
4CA026471DDF8A7A00C670C8 /* EncodableTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -818,6 +838,7 @@
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = NO;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.nike.ElevateTests;
Expand All @@ -830,6 +851,7 @@
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = NO;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.nike.ElevateTests;
Expand All @@ -852,8 +874,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
Expand Down Expand Up @@ -905,8 +929,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
Expand Down Expand Up @@ -981,6 +1007,7 @@
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = NO;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.nike.ElevateTests;
Expand All @@ -992,6 +1019,7 @@
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = NO;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.nike.ElevateTests;
Expand All @@ -1008,6 +1036,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
Expand All @@ -1030,6 +1059,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Loading