Permalink
Browse files

Merge branch 'development'

  • Loading branch information...
2 parents da6841b + 9331a35 commit 42b14f7a3dccc8a80f193e2f93b0f165c71f3ed0 @tomaz committed Dec 18, 2010
Showing 514 changed files with 47,867 additions and 14,914 deletions.
View
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.gentlebytes.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+</dict>
+</plist>
View
@@ -0,0 +1,25 @@
+//
+// AppledocTests_prefix.pch
+// appledoc
+//
+// Created by Tomaz Kragelj on 22.7.10.
+// Copyright (C) 2010, Gentle Bytes. All rights reserved.
+//
+
+#ifdef __OBJC__
+ #import <Cocoa/Cocoa.h>
+ #import "NSObject+GBObject.h"
+ #import "NSString+GBString.h"
+ #import "NSException+GBException.h"
+ #import "NSError+GBError.h"
+ #import "NSFileManager+GBFileManager.h"
+ #import "GBLog.h"
+
+ #define HC_SHORTHAND
+ #import <GHUnit/GHUnit.h>
+ #import <OCHamcrest/OCHamcrest.h>
+ #import <OCMock/OCMock.h>
+ #import "GBRealLifeDataProvider.h"
+ #import "GBTestObjectsRegistry.h"
+ #import "GBObjectsAssertor.h"
+#endif
@@ -0,0 +1,24 @@
+//
+// GBAppledocApplication.h
+// appledoc
+//
+// Created by Tomaz Kragelj on 22.7.10.
+// Copyright (C) 2010, Gentle Bytes. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "DDCliApplication.h"
+
+/** The appledoc application handler.
+
+ This is the principal tool class. It represents the entry point for the application. The main promises of the class are parsing and validating of command line arguments and initiating documentation generation. Generation is divided into several distinct phases:
+
+ 1. Parsing data from source files: This is the initial phase where input directories and files are parsed into a memory representation (i.e. objects) suitable for subsequent handling. This is where the source code files are parsed and validated for possible file or object-level incosistencies. This step is driven by `GBParser` class.
+ 2. Post-processing of the data parsed in the previous step: At this phase, we already have in-memory representation of all source code objects, so we can post-process and validate things such as links to other objects etc. We can also update in-memory representation with this data and therefore prepare everything for the final phase. This step is driven by `GBProcessor` class.
+ 3. Generating output: This is the final phase where we use in-memory data to generate output. This step is driven by `GBGenerator` class.
+
+ @warning *Global settings implementation details:* To be able to properly apply all levels of settings - factory defaults, global settings and command line arguments - we can't solely rely on `DDCli` for parsing command line args. As the user can supply templates path from command line (instead of using one of the default paths), we need to pre-parse command line arguments for templates switches. The last one found is then used to read global settings. This solves proper settings inheritance up to global settings level. Another issue is how to implement code that deals with global settings; there are several possible solutions (the simplest from programmers point of view would be to force the user to pass in templates path as the first parameter, then `DDCli` would first process this and when we would receive notification, we could parse the option, load in global settings and resume operation). At the end I chose to pre-parse command line for template arguments before passing it to `DDCli`. This did require some tweaking to `DDCli` code (specifically the method that converts option string to KVC key was moved to public interface), but ended up as very simple to inject global settings - by simply using the same KCV messages as `DDCli` uses. This small tweak allowed us to use exactly the same path of handling global settings as normal command line arguments. The benefits are many: all argument names are alreay unit tested to properly map to settings values, code reuse for setting the values.
+ */
+@interface GBAppledocApplication : NSObject <DDCliApplicationDelegate>
+
+@end

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 42b14f7

Please sign in to comment.