Skip to content

Commit

Permalink
🚧 Adopt StdEmitterType
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyvit committed Nov 6, 2015
1 parent d799142 commit 1dfbc03
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ExpressiveFoundation
5 changes: 3 additions & 2 deletions LRActionKit/Source/Build/LRBuild.swift
Expand Up @@ -4,8 +4,7 @@ import ExpressiveFoundation
import ExpressiveCasting
import ATPathSpec

public class LRBuild : NSObject, EmitterType {
public var _listeners = EventListenerStorage()
public class LRBuild : NSObject, StdEmitterType {

public struct DidProduceResult: EventType {
public let result: LROperationResult
Expand Down Expand Up @@ -215,4 +214,6 @@ public class LRBuild : NSObject, EmitterType {
emit(DidProduceResult(result: result, target: target, key: key))
}

public var _listeners = EventListenerStorage()

}
5 changes: 3 additions & 2 deletions LRActionKit/Source/EnvironmentErrors/EnvLog.swift
@@ -1,8 +1,7 @@
import Foundation
import ExpressiveFoundation

public class EnvLog: EmitterType, CustomStringConvertible {
public var _listeners = EventListenerStorage()
public class EnvLog: StdEmitterType, CustomStringConvertible {

public struct DidChange: EventType {
}
Expand Down Expand Up @@ -106,6 +105,8 @@ public class EnvLog: EmitterType, CustomStringConvertible {
}
}

public var _listeners = EventListenerStorage()

}

public class EnvLogBuilder {
Expand Down
2 changes: 1 addition & 1 deletion LRProjectKit/Source/Activities/Group.swift
Expand Up @@ -2,7 +2,7 @@ import Foundation
import ExpressiveFoundation
import PromiseKit

public class ProcessingGroup: Processable {
public class ProcessingGroup: Processable, StdEmitterType {

private var emitsEventsOnHost: Bool = false

Expand Down
2 changes: 1 addition & 1 deletion LRProjectKit/Source/Activities/Processor.swift
Expand Up @@ -38,7 +38,7 @@ public enum ProcessorError: ErrorType {
///
/// (2) while waiting for an execution strategy to be set during the initialization phase.
///
public class Processor<Request: RequestType>: Processable {
public class Processor<Request: RequestType>: Processable, StdEmitterType {

public var _listeners = EventListenerStorage()

Expand Down
2 changes: 1 addition & 1 deletion LRProjectKit/Source/Plugin.swift
Expand Up @@ -13,7 +13,7 @@ public enum PluginEnvError: ErrorType {
}


public class Plugin: ActionContainer, EmitterType {
public class Plugin: ActionContainer, StdEmitterType {

public let context: PluginContext

Expand Down
2 changes: 1 addition & 1 deletion LRProjectKit/Source/PluginManager.swift
Expand Up @@ -5,7 +5,7 @@ import ATPathSpec
import ExpressiveCollections
import PromiseKit

public class PluginManager: EmitterType {
public class PluginManager: StdEmitterType {

public struct DidDetectInvalidPlugins: EventType {
public let invalidPlugins: [Plugin]
Expand Down
2 changes: 1 addition & 1 deletion LRProjectKit/Source/Project.swift
Expand Up @@ -4,7 +4,7 @@ import ATPathSpec
import PackageManagerKit
import LRActionKit

public class Project: EmitterType, ProjectContext {
public class Project: StdEmitterType, ProjectContext {

public let rootURL: NSURL

Expand Down
2 changes: 1 addition & 1 deletion LRProjectKit/Tests/ActivityTests.swift
Expand Up @@ -27,7 +27,7 @@ func ==(lhs: TestRequest, rhs: TestRequest) -> Bool {
return (lhs.value == rhs.value) && (lhs.user == rhs.user)
}

public class Something: EmitterType {
public class Something: StdEmitterType {

public var log: [String] = []

Expand Down

0 comments on commit 1dfbc03

Please sign in to comment.