From fd3472fb23aab9f6965f4583836acc40978102a9 Mon Sep 17 00:00:00 2001 From: Denys Telezhkin Date: Mon, 30 Nov 2015 18:17:48 +0200 Subject: [PATCH] update changelog, bump version. --- CHANGELOG.md | 7 +++---- DTModelStorage.podspec | 2 +- DTModelStorage/Utilities/RuntimeHelper.swift | 7 ------- .../XCTests/Specs/RuntimeHelperTestCase.swift | 5 ----- README.md | 4 ++-- 5 files changed, 6 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f36c39a..7cfa7963 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,18 +1,17 @@ # Change Log All notable changes to this project will be documented in this file. -## Master +## [2.3.0](https://github.com/DenHeadless/DTModelStorage/releases/tag/2.3.0) ### Added * `ViewModelMapping` class, that allows to store and retrieve mappings using type checks instead of runtime introspection -* `classNameFromClass` method on `RuntimeHelper` -* `UIReaction` class, that will allow `DTTableViewManager` and `DTCollectionViewManager` to react to celection and configuration events. +* `UIReaction` class, that will allow `DTTableViewManager` and `DTCollectionViewManager` to react to selection and configuration events. This class supersedes `TableViewReaction` and `CollectionViewReaction` internal classes, that previously served the same purpose. * `DTViewModelMappingCustomizable` protocol to allow customization of `ViewModelMapping`. ### Removed -* `RuntimeHelper` introspection methods +* `RuntimeHelper` model introspection methods ## [2.2.0](https://github.com/DenHeadless/DTModelStorage/releases/tag/2.2.0) diff --git a/DTModelStorage.podspec b/DTModelStorage.podspec index 289bfb13..b05fc04a 100644 --- a/DTModelStorage.podspec +++ b/DTModelStorage.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'DTModelStorage' - s.version = '2.2.0' + s.version = '2.3.0' s.license = 'MIT' s.summary = 'Storage classes for datasource based controls.' s.homepage = 'https://github.com/DenHeadless/DTModelStorage' diff --git a/DTModelStorage/Utilities/RuntimeHelper.swift b/DTModelStorage/Utilities/RuntimeHelper.swift index 45a52b53..50498d7e 100644 --- a/DTModelStorage/Utilities/RuntimeHelper.swift +++ b/DTModelStorage/Utilities/RuntimeHelper.swift @@ -28,13 +28,6 @@ import Foundation /// This class is used to introspect Swift and Objective-C types, providing necessary mapping information. public final class RuntimeHelper { - /// Returns module-less name of class. For example, YourModule.PostCell becomes PostCell. - /// - Parameter klass: class to get class name from - /// - Returns: Module-less name of klass - public class func classNameFromClass(klass: AnyClass) -> String { - return NSStringFromClass(klass).componentsSeparatedByString(".").last! - } - /// Recursively unwrap optionals to a single level. This is helpful when dealing with double optionals. /// - Parameter any: optional to unwrap /// - Returns: unwrapped optional diff --git a/DTModelStorageTests/XCTests/Specs/RuntimeHelperTestCase.swift b/DTModelStorageTests/XCTests/Specs/RuntimeHelperTestCase.swift index 2dfdd701..c5fa28f7 100644 --- a/DTModelStorageTests/XCTests/Specs/RuntimeHelperTestCase.swift +++ b/DTModelStorageTests/XCTests/Specs/RuntimeHelperTestCase.swift @@ -19,9 +19,4 @@ class RuntimeHelperTestCase: XCTestCase { let unwrapped = RuntimeHelper.recursivelyUnwrapAnyValue(implicitlyUnwrapped) expect(unwrapped).to(beNil()) } - - func testKlassNameFromClassMethod() - { - expect(RuntimeHelper.classNameFromClass(self.dynamicType)) == "RuntimeHelperTestCase" - } } diff --git a/README.md b/README.md index 65b66e93..5d6b43a8 100644 --- a/README.md +++ b/README.md @@ -145,11 +145,11 @@ Installation [CocoaPods](https://cocoapods.org): - pod 'DTModelStorage', '~> 2.2.0' + pod 'DTModelStorage', '~> 2.3.0' [Carthage](https://github.com/Carthage/Carthage) - github "DenHeadless/DTModelStorage" "2.2.0" + github "DenHeadless/DTModelStorage" "2.3.0" Requirements ============