Skip to content

Commit 0a0732f

Browse files
committed
Merge branch 'deploy/0.2.0' into productive
2 parents cc46726 + ec20d7b commit 0a0732f

File tree

14 files changed

+158
-23
lines changed

14 files changed

+158
-23
lines changed

CHANGELOG.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

66
## [Unreleased]
7+
8+
## [0.2.0] - 2018-10-24
79
### Added
8-
- Some new features such as a new rule.
9-
### Changed
10-
- Some change in functionality on existing rules.
11-
### Deprecated
12-
- Some feature that will be removed in a future version.
13-
### Removed
14-
- Some feature that was removed.
15-
### Fixed
16-
- Some bug that was fixed. Should link to issue. [#0](https://github.com/Flinesoft/{TOOL_NAME}/issues/0)
17-
### Security
18-
- Some security related fix.
10+
- Convenience implementations of error protocols: `MungoError`, `MungoFatalError` & `MungoHealableError`
1911

2012
## [0.1.0] - 2018-10-16
2113
### Added
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Created by Cihat Gündüz on 16.10.18.
3+
// Copyright © 2018 Jamit Labs GmbH. All rights reserved.
4+
//
5+
6+
import Foundation
7+
8+
public class MungoError: BaseError {
9+
public let source: ErrorSource
10+
public let errorDescription: String
11+
12+
public init(source: ErrorSource, message: String) {
13+
self.source = source
14+
self.errorDescription = message
15+
}
16+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//
2+
// Created by Cihat Gündüz on 16.10.18.
3+
// Copyright © 2018 Jamit Labs GmbH. All rights reserved.
4+
//
5+
6+
import Foundation
7+
8+
public class MungoFatalError: MungoError, FatalError { /* only semantically different than MungoError */ }
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Created by Cihat Gündüz on 16.10.18.
3+
// Copyright © 2018 Jamit Labs GmbH. All rights reserved.
4+
//
5+
6+
import Foundation
7+
8+
public class MungoHealableError: MungoError, HealableError {
9+
public let healingOptions: [HealingOption]
10+
11+
public init(source: ErrorSource, message: String, healingOption: HealingOption) {
12+
let cancelOption = HealingOption(style: .normal, title: LocalizedString("ERROR_TYPES.CANCEL_BUTTON.TITLE")) {}
13+
self.healingOptions = [cancelOption, healingOption]
14+
super.init(source: source, message: message)
15+
}
16+
}
File renamed without changes.
File renamed without changes.

Frameworks/MungoHealer/Errors/HealableError.swift renamed to Frameworks/MungoHealer/ErrorsProtocols/HealableError.swift

File renamed without changes.

Frameworks/SupportingFiles/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.1.0</string>
18+
<string>0.2.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

Frameworks/SupportingFiles/de.lproj/Localizable.strings

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
"ALERT_LOG_ERROR_HANDLER.GENERIC_ERROR_TITLE" = "Unbekannter Fehler";
33

44
// Alert Log Error Handler - Error Source Title
5-
"ALERT_LOG_ERROR_HANDLER.ERROR_SOURCE_TITLE.INVALID_USER_INPUT" = "Ungültige Dateneingabe";
5+
"ALERT_LOG_ERROR_HANDLER.ERROR_SOURCE_TITLE.INVALID_USER_INPUT" = "Ungültige Nutzereingabe";
66
"ALERT_LOG_ERROR_HANDLER.ERROR_SOURCE_TITLE.INTERNAL_INCONSISTENCY" = "Interner Fehler";
77
"ALERT_LOG_ERROR_HANDLER.ERROR_SOURCE_TITLE.EXTERNAL_SYSTEM_UNAVAILABLE" = "Externes System nicht verfügbar";
88
"ALERT_LOG_ERROR_HANDLER.ERROR_SOURCE_TITLE.EXTERNAL_SYSTEM_BEHAVED_UNEXPECTEDLY" = "Unerwartetes Verhalten";
99

1010
// Alert Log Error Handler - Buttons
1111
"ALERT_LOG_ERROR_HANDLER.OKAY_BUTTON.TITLE" = "Okay";
1212
"ALERT_LOG_ERROR_HANDLER.TERMINATE_BUTTON.TITLE" = "App beenden";
13+
14+
// ErrorTypes
15+
"ERROR_TYPES.CANCEL_BUTTON.TITLE" = "Abbrechen";

Frameworks/SupportingFiles/en.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
// Alert Log Error Handler - Buttons
1111
"ALERT_LOG_ERROR_HANDLER.OKAY_BUTTON.TITLE" = "Okay";
1212
"ALERT_LOG_ERROR_HANDLER.TERMINATE_BUTTON.TITLE" = "Terminate App";
13+
14+
// ErrorTypes
15+
"ERROR_TYPES.CANCEL_BUTTON.TITLE" = "Cancel";

0 commit comments

Comments
 (0)