Skip to content

Commit 6303b40

Browse files
committed
Fix issue with className. Bump to 1.0.1
1 parent 647f028 commit 6303b40

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ xcuserdata/
2424
*.moved-aside
2525
*.xccheckout
2626
*.xcscmblueprint
27+
.cocoapods-store.yml

Cosmic.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "Cosmic"
4-
s.version = "1.0.0"
4+
s.version = "1.0.1"
55
s.summary = "A log reporting framework written in Swift"
66

77
s.description = <<-DESC

Podfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ SPEC CHECKSUMS:
1010
PODFILE CHECKSUM: 5a4da4e20fbf9a41a56c5dd62f2bd214d9d03bf5
1111

1212
COCOAPODS: 1.2.1
13+
14+
COCOAPODS DEPLOY: 0.0.11

Sources/Cosmic/Base/LogReporter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public extension LogReporter {
3737
}
3838

3939

40-
private static var className: String {
41-
return String(describing: Self.self)
40+
static var className: String {
41+
return String(describing: self)
4242
}
4343

4444
}

Tests/CosmicTests/LogReporterTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ class LogReporterTests: XCTestCase, DefaultLogReporter {
3131
XCTAssertEqual(a, b)
3232

3333
}
34+
35+
func testLoggerClassName() {
36+
let name = type(of: self).className
37+
XCTAssertEqual(name, "LogReporterTests")
38+
}
3439
}

0 commit comments

Comments
 (0)