Skip to content

Commit faeb3ae

Browse files
committed
Make Summary.genericFor public
1 parent 0388a89 commit faeb3ae

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
## master
1212

13+
## 2.3.3
14+
* Make `Summary.genericFor` public for custom providers - Bruno Rocha
15+
1316
## 2.3.2
1417
* ProjectInfo now allows you to manually specify a `versionNumber` and `buildNumber` in case your Info.plist doesn't have them (Buck iOS apps) - Bruno Rocha
1518

Formula/swiftinfo.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Swiftinfo < Formula
22
desc "📊 Extract and analyze the evolution of an iOS app's code."
33
homepage "https://github.com/rockbruno/SwiftInfo"
4-
version "2.3.2"
4+
version "2.3.3"
55
url "https://github.com/rockbruno/SwiftInfo/releases/download/#{version}/swiftinfo.zip"
66
# TODO: Try something to provide a SHA automatically
77

Sources/SwiftInfoCore/Summary.swift

+8-8
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ public struct Summary: Codable, Hashable {
3939
self.stringValue = stringValue
4040
}
4141

42-
static func genericFor<T: BinaryInteger>(prefix: String,
43-
now: T,
44-
old: T?,
45-
increaseIsBad: Bool,
46-
stringValueFormatter: ((T) -> String)? = nil,
47-
numericValueFormatter: ((T) -> Float)? = nil,
48-
difference: ((T, T) -> T))
49-
-> Summary {
42+
public static func genericFor<T: BinaryInteger>(prefix: String,
43+
now: T,
44+
old: T?,
45+
increaseIsBad: Bool,
46+
stringValueFormatter: ((T) -> String)? = nil,
47+
numericValueFormatter: ((T) -> Float)? = nil,
48+
difference: ((T, T) -> T))
49+
-> Summary {
5050
let stringFormatter = stringValueFormatter ?? { return "\($0)" }
5151
let numberFormatter = numericValueFormatter ?? { Float($0) }
5252
func result(text: String, style: Style) -> Summary {

SwiftInfo.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = 'SwiftInfo'
33
s.module_name = 'SwiftInfo'
4-
s.version = '2.3.2'
4+
s.version = '2.3.3'
55
s.license = { type: 'MIT', file: 'LICENSE' }
66
s.summary = 'Extract and analyze the evolution of an iOS app\'s code.'
77
s.homepage = 'https://github.com/rockbruno/SwiftInfo'

0 commit comments

Comments
 (0)