Skip to content

Commit

Permalink
Merge branch 'release/0.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
malcommac committed Mar 6, 2018
2 parents 0ac48e0 + f20b77c commit 928d4d8
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Configs/Repeat.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.3.0</string>
<string>0.3.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ All Apple platforms are supported:

## Latest Version

Latest version of Repeat is [0.3.0](https://github.com/malcommac/Repeat/releases/tag/0.3.0) published on 2018/03/05.
Latest version of Repeat is [0.3.1](https://github.com/malcommac/Repeat/releases/tag/0.3.1) published on 2018/03/06.

**Changelog - 0.3.1**:

* [#8](https://github.com/malcommac/Repeat/issues/8): Disabled Gather Coverage Data to enable successfully Carthage builds.

**Changelog - 0.3.0**:

Expand Down
2 changes: 1 addition & 1 deletion Repeat.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Repeat"
s.version = "0.3.0"
s.version = "0.3.1"
s.summary = "Modern NSTimer alternative in Swift"
s.description = <<-DESC
Repeat is a modern alternative to NSTimer; no strong references, multiple observers, reusable instances with start/stop/pause support in swifty syntax.
Expand Down
Binary file not shown.
3 changes: 1 addition & 2 deletions Repeat.xcodeproj/xcshareddata/xcschemes/Repeat-iOS.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
3 changes: 1 addition & 2 deletions Repeat.xcodeproj/xcshareddata/xcschemes/Repeat-tvOS.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
Expand Down
12 changes: 6 additions & 6 deletions Sources/Repeat/Repeater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ open class Repeater : Equatable {
private var interval: Interval

/// Accuracy of the timer
private var torelance: DispatchTimeInterval
private var tolerance: DispatchTimeInterval

/// Dispatch queue parent of the timer
private var queue: DispatchQueue? = nil
Expand All @@ -184,17 +184,17 @@ open class Repeater : Equatable {
/// - Parameters:
/// - interval: interval of the timer
/// - mode: mode of the timer
/// - torelance: tolerance of the timer, 0 is default.
/// - tolerance: tolerance of the timer, 0 is default.
/// - queue: queue in which the timer should be executed; if `nil` a new queue is created automatically.
/// - observer: observer
public init(interval: Interval,
mode: Mode = .infinite,
torelance: DispatchTimeInterval = .nanoseconds(0),
tolerance: DispatchTimeInterval = .nanoseconds(0),
queue: DispatchQueue? = nil,
observer: @escaping Observer) {
self.mode = mode
self.interval = interval
self.torelance = torelance
self.tolerance = tolerance
self.remainingIterations = mode.countIterations
self.queue = (queue ?? DispatchQueue(label: "com.repeat.queue"))
self.timer = configureTimer()
Expand Down Expand Up @@ -242,9 +242,9 @@ open class Repeater : Equatable {
let repatInterval = interval.value
let deadline: DispatchTime = (DispatchTime.now() + repatInterval)
if self.mode.isRepeating {
timer.schedule(deadline: deadline, repeating: repatInterval, leeway: torelance)
timer.schedule(deadline: deadline, repeating: repatInterval, leeway: tolerance)
} else {
timer.schedule(deadline: deadline, leeway: torelance)
timer.schedule(deadline: deadline, leeway: tolerance)
}

timer.setEventHandler { [weak self] in
Expand Down

0 comments on commit 928d4d8

Please sign in to comment.