Skip to content

Commit

Permalink
Merge pull request #112 from ikesyo/trailing-newlines
Browse files Browse the repository at this point in the history
Add/Restore trailing newlines for consistency with RAC's codebase
  • Loading branch information
RuiAAPeres committed Apr 22, 2016
2 parents 08f9f5c + d5bb2d1 commit b7a448c
Show file tree
Hide file tree
Showing 37 changed files with 72 additions and 72 deletions.
72 changes: 36 additions & 36 deletions Rex.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Source/Action.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ extension CocoaAction {
public var rex_executingProducer: SignalProducer<Bool, NoError> {
return rex_producerForKeyPath("executing")
}
}
}
2 changes: 1 addition & 1 deletion Source/AppKit/NSTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ extension NSTextField {
(notification.object as! NSTextField).stringValue
}
}
}
}
2 changes: 1 addition & 1 deletion Source/Foundation/Association.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ public func associatedObject<Host: AnyObject, T: AnyObject>(host: Host, key: Uns
objc_setAssociatedObject(host, key, value, .OBJC_ASSOCIATION_RETAIN)
}
return value!
}
}
2 changes: 1 addition & 1 deletion Source/Foundation/NSData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ extension NSData {
}
}
}
}
}
2 changes: 1 addition & 1 deletion Source/Foundation/NSObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ extension NSObject {
.rac_willDeallocSignal()
.rex_toTriggerSignal()
}
}
}
2 changes: 1 addition & 1 deletion Source/Foundation/NSUserDefaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ extension NSUserDefaults {
return false
}
}
}
}
2 changes: 1 addition & 1 deletion Source/Property.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ public struct NotProperty: PropertyType {
self.source = source
self.invert = invert
}
}
}
2 changes: 1 addition & 1 deletion Source/RACSignal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ extension RACSignal {
.map { _ in () }
.ignoreError()
}
}
}
2 changes: 1 addition & 1 deletion Source/SignalProducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ extension SignalProducerType where Value: SequenceType {
public func uncollect() -> SignalProducer<Value.Generator.Element, Error> {
return lift { $0.uncollect() }
}
}
}
2 changes: 1 addition & 1 deletion Source/UIKit/UIBarButtonItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ extension UIBarButtonItem {
}
}

private var actionKey: UInt8 = 0
private var actionKey: UInt8 = 0
2 changes: 1 addition & 1 deletion Source/UIKit/UIBarItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ extension UIBarItem {
}
}

private var enabledKey: UInt8 = 0
private var enabledKey: UInt8 = 0
2 changes: 1 addition & 1 deletion Source/UIKit/UIButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ extension UIButton {
}

private var pressedKey: UInt8 = 0
private var titleKey: UInt8 = 0
private var titleKey: UInt8 = 0
2 changes: 1 addition & 1 deletion Source/UIKit/UIControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ extension UIControl {

private var enabledKey: UInt8 = 0
private var selectedKey: UInt8 = 0
private var highlightedKey: UInt8 = 0
private var highlightedKey: UInt8 = 0
2 changes: 1 addition & 1 deletion Source/UIKit/UIDatePicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ extension UIDatePicker {

}

private var dateKey: UInt8 = 0
private var dateKey: UInt8 = 0
2 changes: 1 addition & 1 deletion Source/UIKit/UIImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ extension UIImageView {
}

private var imageKey: UInt8 = 0
private var highlightedImageKey: UInt8 = 0
private var highlightedImageKey: UInt8 = 0
2 changes: 1 addition & 1 deletion Source/UIKit/UILabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ extension UILabel {
}

private var attributedTextKey: UInt8 = 0
private var textColorKey: UInt8 = 0
private var textColorKey: UInt8 = 0
2 changes: 1 addition & 1 deletion Source/UIKit/UISwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ extension UISwitch {

}

private var onKey: UInt8 = 0
private var onKey: UInt8 = 0
2 changes: 1 addition & 1 deletion Source/UIKit/UITextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ extension UITextField {
.rac_notifications(UITextFieldTextDidChangeNotification, object: self)
.filterMap { ($0.object as? UITextField)?.text }
}
}
}
2 changes: 1 addition & 1 deletion Source/UIKit/UITextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ extension UITextView {
.rac_notifications(UITextViewTextDidChangeNotification, object: self)
.filterMap { ($0.object as? UITextView)?.text }
}
}
}
2 changes: 1 addition & 1 deletion Source/UIKit/UIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ extension UIView {
}

private var alphaKey: UInt8 = 0
private var hiddenKey: UInt8 = 0
private var hiddenKey: UInt8 = 0
2 changes: 1 addition & 1 deletion Source/UIKit/UIViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ extension UIViewController {
}
}

private var dismissModally: UInt8 = 0
private var dismissModally: UInt8 = 0
2 changes: 1 addition & 1 deletion Tests/Foundation/NSObjectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ final class NSObjectDeallocTests: XCTestCase {

class Object: NSObject {
dynamic var string = "foo"
}
}
2 changes: 1 addition & 1 deletion Tests/PropertyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ final class PropertyTests: XCTestCase {
XCTAssertFalse(not.value)
XCTAssertFalse(current!)
}
}
}
2 changes: 1 addition & 1 deletion Tests/SignalProducerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@ final class SignalProducerTests: XCTestCase {
XCTAssertEqual(value, 2)
XCTAssertTrue(failed)
}
}
}
2 changes: 1 addition & 1 deletion Tests/SignalTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,4 @@ final class SignalTests: XCTestCase {

enum TestError: ErrorType {
case Default
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UIBarButtonItemTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ class UIBarButtonItemTests: XCTestCase {
observer.sendNext(true)
XCTAssertTrue(barButtonItem.enabled)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UIButtonTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ class UIButtonTests: XCTestCase {

XCTAssertTrue(passed.value)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UIControlTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ class UIControlTests: XCTestCase {
XCTAssertFalse(control.enabled)
XCTAssertFalse(control.selected)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UIDatePickerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ class UIDatePickerTests: XCTestCase {
picker.userInteractionEnabled = true
picker.sendActionsForControlEvents(.ValueChanged)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UIImageViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ class UIImageViewTests: XCTestCase {
observer.sendNext(secondChange)
XCTAssertEqual(imageView.highlightedImage, secondChange)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UILabelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ class UILabelTests: XCTestCase {
observer.sendNext(secondChange)
XCTAssertEqual(label.textColor, secondChange)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UISwitchTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ class UISwitchTests: XCTestCase {
observer.sendNext(false)
XCTAssertFalse(s.on)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UITextFieldTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ class UITextFieldTests: XCTestCase {

NSNotificationCenter.defaultCenter().postNotificationName(UITextFieldTextDidChangeNotification, object: textField)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UITextViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ class UITextViewTests: XCTestCase {

NSNotificationCenter.defaultCenter().postNotificationName(UITextViewTextDidChangeNotification, object: textView)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UIViewControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ class UIViewControllerTests: XCTestCase {

viewController.dismissViewControllerAnimated(true, completion: nil)
}
}
}
2 changes: 1 addition & 1 deletion Tests/UIKit/UIViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ class UIViewTests: XCTestCase {
observer.sendNext(secondChange)
XCTAssertEqualWithAccuracy(view.alpha, secondChange, accuracy: 0.01)
}
}
}

0 comments on commit b7a448c

Please sign in to comment.