Permalink
Browse files

Adding new lines at EOF.

  • Loading branch information...
1 parent 53c70f6 commit 514edfa7a1dde360c9e6966aeb41747e6d6461f0 @gabriel gabriel committed Nov 13, 2010
Showing with 54 additions and 39 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 Classes-IPhone/Mock/GHMockCLLocationManager.m
  3. +1 −1 Classes/GHTest/GHTest+JUnitXML.h
  4. +1 −1 Classes/GHTest/GHTest+JUnitXML.m
  5. +1 −1 Classes/GHTest/GHTest.h
  6. +1 −1 Classes/GHTest/GHTestGroup+JUnitXML.h
  7. +1 −1 Classes/GHTest/GHTestGroup.h
  8. +1 −1 Classes/GHTest/GHTestGroup.m
  9. +1 −1 Classes/GHTest/GHTestOperation.h
  10. +1 −1 Classes/GHTest/GHTestOperation.m
  11. +1 −1 Classes/GHTest/GHTestRunner.m
  12. +1 −1 Classes/GHTest/GHTestSuite.h
  13. +1 −1 Classes/GHTest/GHTestSuite.m
  14. +1 −1 Classes/GHTest/GHTesting.h
  15. +1 −1 Classes/GHTest/GHTesting.m
  16. +1 −1 Classes/GHTest/NSException+GHTestFailureExceptions.m
  17. +1 −1 Classes/GHTest/NSValue+GHValueFormatter.h
  18. +1 −1 Classes/GHTest/NSValue+GHValueFormatter.m
  19. +1 −1 Classes/Mock/GHMockNSURLConnection.h
  20. +1 −1 Classes/Mock/GHMockNSURLConnection.m
  21. +1 −1 Classes/Mock/GHNSLocale+Mock.h
  22. +1 −1 Classes/Mock/GHNSLocale+Mock.m
  23. +1 −1 Classes/Mock/GHUNSObject+Swizzle.m
  24. +1 −1 Classes/SharedUI/GHTestViewModel.h
  25. +1 −1 Classes/SharedUI/GHTestViewModel.m
  26. +1 −1 Examples/MyTestable-IPhone/Libraries/GHUnitIOS.framework/Versions/A/Headers/GHTestOperation.h
  27. +1 −1 Examples/MyTestable-IPhone/Libraries/GHUnitIOS.framework/Versions/A/Headers/GHUnit.h
  28. +1 −1 Examples/MyTestable-IPhone/Libraries/GHUnitIOS.framework/Versions/A/Headers/GHUnitIOS.h
  29. +1 −1 ...ble-IPhone/Libraries/GHUnitIOS.framework/Versions/A/Headers/NSException+GHTestFailureExceptions.h
  30. +1 −1 Examples/MyTestable-IPhone/Tests/MyTest.m
  31. +1 −1 Examples/MyTestable-MacOSX/Frameworks/GHUnit.framework/Versions/A/Headers/GHTestOperation.h
  32. +1 −1 Examples/MyTestable-MacOSX/Frameworks/GHUnit.framework/Versions/A/Headers/GHUnit.h
  33. +1 −1 ...table-MacOSX/Frameworks/GHUnit.framework/Versions/A/Headers/NSException+GHTestFailureExceptions.h
  34. +1 −1 Examples/MyTestable-MacOSX/Tests/MyTest.m
  35. +14 −0 Scripts/AddNewLineEOF.sh
  36. +2 −2 Scripts/iPhoneFramework.sh
  37. +1 −1 Tests/GHSenTestingTest.m
  38. +1 −1 Tests/GHTestEmpty.m
  39. +1 −1 Tests/GHTestMacrosTest.m
  40. +1 −1 Tests/GHUnitIOSTestMain.m
View
@@ -10,3 +10,4 @@ Documentation/GHUnit.docset.tgz
*.swp
*~.nib
.gitattributes
+GHUnit.docset
@@ -148,4 +148,4 @@ CLLocationCoordinate2D GHULocationAtDistance(CLLocationCoordinate2D coordinate,
dest.latitude = GHURadiansToDegrees(lat2);
dest.longitude = GHURadiansToDegrees(lon2);
return dest;
-}
+}
@@ -41,4 +41,4 @@
@end
-//! @endcond
+//! @endcond
@@ -44,4 +44,4 @@ - (NSString *)JUnitXML {
@end
-//! @endcond
+//! @endcond
View
@@ -181,4 +181,4 @@ extern NSString *NSStringFromGHTestStats(GHTestStats stats);
@end
-//! @endcond
+//! @endcond
@@ -39,4 +39,4 @@
@end
-//! @endcond
+//! @endcond
@@ -152,4 +152,4 @@
@end
-//! @endcond
+//! @endcond
@@ -388,4 +388,4 @@ - (id)copyWithZone:(NSZone *)zone {
@end
-//! @endcond
+//! @endcond
@@ -43,4 +43,4 @@
@end
-//! @endcond
+//! @endcond
@@ -60,4 +60,4 @@ - (void)main {
@end
-//! @endcond
+//! @endcond
@@ -285,4 +285,4 @@ - (void)_notifyFinished {
@end
-//! @endcond
+//! @endcond
@@ -115,4 +115,4 @@ extern NSString *GHUnitTest;
@end
-//! @endcond
+//! @endcond
@@ -164,4 +164,4 @@ - (BOOL)writeJUnitXML:(NSError **)error {
@end
-//! @endcond
+//! @endcond
@@ -145,4 +145,4 @@ BOOL isTestFixtureOfClass(Class aClass, Class testCaseClass);
- (void)raiseAfterFailure;
@end
-//! @endcond
+//! @endcond
@@ -337,4 +337,4 @@ + (BOOL)runTestOrRaiseWithTarget:(id)target selector:(SEL)selector exception:(NS
@end
-//! @endcond
+//! @endcond
@@ -237,4 +237,4 @@ + (NSException *)ghu_failureInRaise:(NSString *)expression
// GTM_END
-//! @endcond
+//! @endcond
@@ -68,4 +68,4 @@
@end
// SENTE_END
-//! @endcond
+//! @endcond
@@ -158,4 +158,4 @@ - (NSString *)ghu_contentDescription {
// SENTE_END
-//! @endcond
+//! @endcond
@@ -170,4 +170,4 @@ extern NSString *const GHMockNSURLConnectionException;
@end
-//! @endcond
+//! @endcond
@@ -126,4 +126,4 @@ - (void)failWithError:(NSError *)error afterDelay:(NSTimeInterval)delay {
@end
-//! @endcond
+//! @endcond
@@ -60,4 +60,4 @@
@end
-//! @endcond
+//! @endcond
@@ -82,4 +82,4 @@ + (NSArray *)gh_preferredLanguages {
@end
-//! @endcond
+//! @endcond
@@ -128,4 +128,4 @@ BOOL GHU_PerformSwizzle(Class klass, SEL origSel, SEL altSel, BOOL forInstance)
return YES;
}
-//! @endcond
+//! @endcond
@@ -164,4 +164,4 @@ typedef enum {
@end
-//! @endcond
+//! @endcond
@@ -421,4 +421,4 @@ - (void)setSelected:(BOOL)selected {
@end
-//! @endcond
+//! @endcond
@@ -39,4 +39,4 @@
- (id)initWithTest:(id<GHTest>)test options:(GHTestOptions)options;
-@end
+@end
@@ -48,4 +48,4 @@ fputs([[[NSString stringWithFormat:fmt, ##__VA_ARGS__] stringByAppendingString:@
} while(0)
#else
#define GHUDebug(fmt, ...) do {} while(0)
-#endif
+#endif
@@ -1,3 +1,3 @@
#import "GHUnit.h"
-#import "GHUnitIPhoneAppDelegate.h"
+#import "GHUnitIPhoneAppDelegate.h"
@@ -85,4 +85,4 @@ extern NSString *const GHTestFailureException;
withDescription:(NSString *)formatString, ...;
@end
-// GTM_END
+// GTM_END
@@ -29,4 +29,4 @@ - (void)testBar {
// Another test
}
-@end
+@end
@@ -39,4 +39,4 @@
- (id)initWithTest:(id<GHTest>)test options:(GHTestOptions)options;
-@end
+@end
@@ -48,4 +48,4 @@ fputs([[[NSString stringWithFormat:fmt, ##__VA_ARGS__] stringByAppendingString:@
} while(0)
#else
#define GHUDebug(fmt, ...) do {} while(0)
-#endif
+#endif
@@ -85,4 +85,4 @@ extern NSString *const GHTestFailureException;
withDescription:(NSString *)formatString, ...;
@end
-// GTM_END
+// GTM_END
@@ -29,4 +29,4 @@ - (void)testFail {
GHAssertTrue(NO, nil);
}
-@end
+@end
View
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+set -e
+
+for ext in "m" "h" "c"
+do
+ find . -type f -name "*.$ext" -exec perl -ni -e 'chomp; print "$_\n"' {} \;
+done
+
+# Ensures all files end with a newline.
+for ext in "m" "h" "c"
+do
+ find . -type f -name "*.$ext" -print | xargs printf "e %s\nw\n" | ed -s;
+done
@@ -1,8 +1,8 @@
# Original Script by Pete Goodliffe
# from http://accu.org/index.php/journals/1594
-# Modified by Juan Batiz-Benet to fit GHUnitIOS
-# Modified by Gabriel Handford for GHUnitIOS
+# Modified by Juan Batiz-Benet to fit GHUnit
+# Modified by Gabriel Handford for GHUnit
set -e
View
@@ -50,4 +50,4 @@ - (void)testFailWithExceptionCall_EXPECTED {
@end
-#endif
+#endif
View
@@ -13,4 +13,4 @@ @interface GHTestEmpty : GHTestCase { }
@implementation GHTestEmpty
-@end
+@end
View
@@ -44,4 +44,4 @@ - (void)testGHAssertNotEqualStrings {
GHAssertThrows({ GHAssertNotEqualStrings(@"a", @"a", nil); }, nil);
}
-@end
+@end
@@ -84,4 +84,4 @@ int main(int argc, char *argv[]) {
}
[pool release];
return retVal;
-}
+}

0 comments on commit 514edfa

Please sign in to comment.