Skip to content
Browse files

Indentations after VIM fixed

  • Loading branch information...
1 parent 9273ae8 commit 182f3fb593aa8888479163f61147c73fa1d01921 @AlexDenisov AlexDenisov committed Mar 21, 2012
View
4 UnitTests/RelationshipsSpecs.h
@@ -2,8 +2,8 @@
// RelationshipsSpecs.h
// iActiveRecord
//
-// Created by mls on 15.02.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 15.02.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "Cedar-iOS/SpecHelper.h"
View
4 UnitTests/SpecSet.h
@@ -2,8 +2,8 @@
// SpecSet.h
// iActiveRecord
//
-// Created by mls on 15.02.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 15.02.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "DatabaseManagerSpecs.h"
View
10 iActiveRecord/ARDatabaseManager.h
@@ -1,8 +1,17 @@
+//
+// ARDatabaseManager.m
+// iActiveRecord
+//
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
+//
+
#import <Foundation/Foundation.h>
#import <sqlite3.h>
@interface ARDatabaseManager : NSObject
{
+ @private
sqlite3 *database;
NSString *dbPath;
NSString *dbName;
@@ -32,3 +41,4 @@
- (NSInteger)countOfRecordsWithName:(NSString *)aName;
@end
+
View
10 iActiveRecord/ARDatabaseManager.m
@@ -1,3 +1,11 @@
+//
+// ARDatabaseManager.m
+// iActiveRecord
+//
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
+//
+
#import "ARDatabaseManager.h"
#import "ActiveRecord.h"
#import "class_getSubclasses.h"
@@ -114,7 +122,7 @@ - (void)executeSqlQuery:(const char *)anSqlQuery {
NSLog(@"Couldn't execute query %s : %s", anSqlQuery, sqlite3_errmsg(database));
}
}
-
+
- (NSString *)documentsDirectory {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
return ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
View
4 iActiveRecord/ARErrorHelper.h
@@ -2,8 +2,8 @@
// ARErrorHelper.h
// iActiveRecord
//
-// Created by mls on 01.02.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 01.02.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>
View
4 iActiveRecord/ARMigrationsHelper.h
@@ -2,8 +2,8 @@
// ARMigrationsHelper.h
// iActiveRecord
//
-// Created by mls on 01.02.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 01.02.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>
View
4 iActiveRecord/ARObjectProperty.m
@@ -2,8 +2,8 @@
// ARObjectProperty.m
// iActiveRecord
//
-// Created by mls on 11.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 11.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "ARObjectProperty.h"
View
10 iActiveRecord/ARRelationships.h
@@ -1,5 +1,13 @@
-#import "NSString+lowercaseFirst.h"
+//
+// ARRelationships.m
+// iActiveRecord
+//
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
+//
+#import "NSString+lowercaseFirst.h"
+
#define BELONGS_TO_IMP(class, accessor) \
- (id)accessor{\
NSString *class_name = @""#class"";\
View
4 iActiveRecord/ARValidatableProtocol.h
@@ -2,8 +2,8 @@
// ARValidatableProtocol.h
// iActiveRecord
//
-// Created by mls on 01.02.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 01.02.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>
View
4 iActiveRecord/ARValidations.h
@@ -2,8 +2,8 @@
// ARValidations.h
// iActiveRecord
//
-// Created by mls on 01.02.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 01.02.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>
View
10 iActiveRecord/ActiveRecord.h
@@ -1,3 +1,11 @@
+//
+// ActiveRecord.m
+// iActiveRecord
+//
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
+//
+
#import <Foundation/Foundation.h>
#import "ARRelationships.h"
#import "ARValidations.h"
@@ -29,7 +37,7 @@
#pragma mark - validations
- (NSString *)recordName;
-
+
- (void)resetErrors;
- (void)addError:(NSString *)errMessage;
View
15 iActiveRecord/ActiveRecord.m
@@ -1,3 +1,11 @@
+//
+// ActiveRecord.m
+// iActiveRecord
+//
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
+//
+
#import "ActiveRecord.h"
#import "ARDatabaseManager.h"
#import "NSString+lowercaseFirst.h"
@@ -149,7 +157,10 @@ + (const char *)sqlOnCreate {
}
- (const char *)sqlOnDelete {
- NSString *sqlString = [NSString stringWithFormat:@"delete from %@ where id = %@", [self tableName], self.id];
+ NSString *sqlString = [NSString stringWithFormat:
+ @"delete from %@ where id = %@",
+ [self tableName],
+ self.id];
return [sqlString UTF8String];
}
@@ -550,7 +561,7 @@ + (ARLazyFetcher *)lazyFetcher {
+ (void)dropAllRecords {
[[ARDatabaseManager sharedInstance] executeSqlQuery:[self sqlOnDeleteAll]];
}
-
+
- (void)dropRecord {
[[ARDatabaseManager sharedInstance] executeSqlQuery:[self sqlOnDelete]];
}
View
4 iActiveRecord/AppDelegate.h
@@ -2,8 +2,8 @@
// AppDelegate.h
// iActiveRecord
//
-// Created by mls on 10.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <UIKit/UIKit.h>
View
43 iActiveRecord/AppDelegate.m
@@ -2,8 +2,8 @@
// AppDelegate.m
// iActiveRecord
//
-// Created by mls on 10.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "AppDelegate.h"
@@ -27,43 +27,4 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
return YES;
}
-- (void)applicationWillResignActive:(UIApplication *)application
-{
- /*
- Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
- Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
- */
-}
-
-- (void)applicationDidEnterBackground:(UIApplication *)application
-{
- /*
- Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
- If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
- */
-}
-
-- (void)applicationWillEnterForeground:(UIApplication *)application
-{
- /*
- Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
- */
-}
-
-- (void)applicationDidBecomeActive:(UIApplication *)application
-{
- /*
- Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
- */
-}
-
-- (void)applicationWillTerminate:(UIApplication *)application
-{
- /*
- Called when the application is about to terminate.
- Save data if appropriate.
- See also applicationDidEnterBackground:.
- */
-}
-
@end
View
4 iActiveRecord/Group.h
@@ -2,8 +2,8 @@
// Group.h
// iActiveRecord
//
-// Created by mls on 10.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "ActiveRecord.h"
View
4 iActiveRecord/Group.m
@@ -2,8 +2,8 @@
// Group.m
// iActiveRecord
//
-// Created by mls on 10.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "Group.h"
View
4 iActiveRecord/NSDecimalNumber+sqlRepresentation.h
@@ -2,8 +2,8 @@
// NSDecimalNumber+sqlRepresentation.h
// iActiveRecord
//
-// Created by mls on 18.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 18.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>
View
4 iActiveRecord/NSDecimalNumber+sqlRepresentation.m
@@ -2,8 +2,8 @@
// NSDecimalNumber+sqlRepresentation.m
// iActiveRecord
//
-// Created by mls on 18.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 18.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "NSDecimalNumber+sqlRepresentation.h"
View
4 iActiveRecord/NSNumber+sqlRepresentation.h
@@ -2,8 +2,8 @@
// NSNumber+sqlRepresentation.h
// iActiveRecord
//
-// Created by mls on 17.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 17.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>
View
4 iActiveRecord/NSNumber+sqlRepresentation.m
@@ -2,8 +2,8 @@
// NSNumber+sqlRepresentation.m
// iActiveRecord
//
-// Created by mls on 17.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 17.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "NSNumber+sqlRepresentation.h"
View
4 iActiveRecord/NSObject+properties.h
@@ -2,8 +2,8 @@
// NSObject+properties.h
// iActiveRecord
//
-// Created by mls on 10.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>
View
4 iActiveRecord/NSObject+properties.m
@@ -2,8 +2,8 @@
// NSObject+properties.m
// iActiveRecord
//
-// Created by mls on 10.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "NSObject+properties.h"
View
11 iActiveRecord/NSString+lowercaseFirst.h
@@ -1,5 +1,16 @@
+//
+// NSString+lowercaseFirst.m
+// iActiveRecord
+//
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
+//
+
#import <Foundation/Foundation.h>
@interface NSString (lowercaseFirst)
+
- (NSString *)lowercaseFirst;
+
@end
+
View
15 iActiveRecord/NSString+lowercaseFirst.m
@@ -1,10 +1,19 @@
+//
+// NSString+lowercaseFirst.m
+// iActiveRecord
+//
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
+//
+
#import "NSString+lowercaseFirst.h"
@implementation NSString (lowercaseFirst)
- (NSString *)lowercaseFirst {
- NSString *toLower = [self stringByReplacingCharactersInRange:NSMakeRange(0,1) withString:[[self substringToIndex:1] lowercaseString]];
- return toLower;
+ NSString *toLower = [self stringByReplacingCharactersInRange:NSMakeRange(0,1)
+ withString:[[self substringToIndex:1] lowercaseString]];
+ return toLower;
}
-@end
+@end
View
4 iActiveRecord/NSString+sqlRepresentation.h
@@ -2,8 +2,8 @@
// NSString+sqlRepresentation.h
// iActiveRecord
//
-// Created by mls on 17.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 17.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>
View
6 iActiveRecord/NSString+sqlRepresentation.m
@@ -2,8 +2,8 @@
// NSString+sqlRepresentation.m
// iActiveRecord
//
-// Created by mls on 17.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 17.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "NSString+sqlRepresentation.h"
@@ -19,7 +19,7 @@ - (NSString *)toSql {
}
+ (const char *)sqlType {
- return "varchar(2000)";
+ return "text";
}
@end
View
4 iActiveRecord/SQLRepresentation.h
@@ -2,8 +2,8 @@
// SQLRepresentation.h
// iActiveRecord
//
-// Created by mls on 17.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 17.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>
View
4 iActiveRecord/User.h
@@ -2,8 +2,8 @@
// User.h
// iActiveRecord
//
-// Created by mls on 10.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "ActiveRecord.h"
View
5 iActiveRecord/User.m
@@ -2,10 +2,9 @@
// User.m
// iActiveRecord
//
-// Created by mls on 10.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 10.01.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
-
#import "User.h"
@implementation User
View
4 iActiveRecord/UserGroupRelationship.h
@@ -2,8 +2,8 @@
// UserGroupRelationship.h
// iActiveRecord
//
-// Created by mls on 01.02.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 01.02.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "ActiveRecord.h"
View
4 iActiveRecord/UserGroupRelationship.m
@@ -2,8 +2,8 @@
// UserGroupRelationship.m
// iActiveRecord
//
-// Created by mls on 01.02.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 01.02.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import "UserGroupRelationship.h"
View
4 iActiveRecord/class_getSubclasses.h
@@ -2,8 +2,8 @@
// class_getSubclasses.h
// iActiveRecord
//
-// Created by mls on 11.01.12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+// Created by Alex Denisov on 21.03.12.
+// Copyright (c) 2012 CoreInvader. All rights reserved.
//
#import <Foundation/Foundation.h>

0 comments on commit 182f3fb

Please sign in to comment.
Something went wrong with that request. Please try again.