Laurent Sansonetti
105a915f3d
mac port
2013-04-25 02:26:56 +02:00
Watson
8c2445621a
add 'doc:docset' task to generate a RubyMotion.docset
2012-11-16 02:50:36 +09:00
Watson
fe0f06bcbf
avoid overwriting NSObject class reference by NSObject protocol reference
2012-11-16 02:12:36 +09:00
Watson
2954d3d9ce
should not replaced by part of string of large class name
...
we have AVAsset and AVAssetExportSessionStatusCancelled.
The following replace has been done:
AVAssetExportSessionStatusCancelled -> <a href…>AVAsset</a>ExportSessionStatusCancelled
2012-11-08 17:48:46 +09:00
Watson
93f191ab8a
create the hyper-link in description
2012-11-08 17:19:45 +09:00
Watson
ebde2fa540
fix the wrong description in structure
...
The iOS SDK references might have several structures.
In such reference, the description of the members in structure was wrong.
2012-11-08 10:11:50 +09:00
Laurent Sansonetti
95d261decf
fix document title for protocols
2012-11-07 21:20:01 +01:00
Watson
df2501e8f0
move the enumeration from Class to Module
2012-11-07 23:05:35 +09:00
Watson
30e285960f
fix the structure which declared with some members at one line
...
This patch will fix the following structure:
typedef struct {
double x, y, z, w;
} CMQuaternion
2012-11-07 16:36:14 +09:00
Watson
1b3f388331
Corresponds to the structures that described in 'Constants' section
...
"CMAttitude Class Reference" has the structures in 'Constants' section
2012-11-07 11:32:52 +09:00
Watson
20b74b12ba
change last commit
2012-11-07 09:57:41 +09:00
Watson
4152a81edb
Corresponds to the exception of describing Properties
...
A lot of Properties have been described with following case 1.
But, some Properties have case 2.
1. <div class="declaration"><div class="declaration">@property ...</div></div>
2. <div class="declaration">@property (nonatomic, readonly, copy) NSString *subtitle</div>
This patch will fix for case 2.
2012-11-07 08:56:26 +09:00
Watson
eb28110f2e
handle the constant in Protocol
2012-11-07 07:17:08 +09:00
Watson
331b0c8a13
handle the constant
2012-11-06 18:09:08 +09:00
Watson
7a4b348a8d
correspond to property which has the semicolon at end of declaration
...
like:
@property (readonly) NSString *previewItemTitle;
2012-11-06 16:12:38 +09:00
Watson
cd0d1b334d
handle the Protocol's property
2012-11-06 16:07:28 +09:00
Watson
0ee2c5c94e
define as method which handle the property
2012-11-06 15:46:32 +09:00
Watson
0c0cceeae2
handle the structure which is declared with `typedef struct'
...
NSRange is declared as following:
typedef struct _NSRange {
NSUInteger location;
NSUInteger length;
} NSRange;
2012-11-06 14:24:58 +09:00
Watson
e97b3f25e7
create safe string for document in Ruby code
...
If there is a line break in the middle,
it causes Ruby syntax error and yardoc doesn't generate document.
This patch will fix following class:
# Structure holding a 32-bit float value in a platform-independent
byte order.
class CFSwappedFloat32 < Boxed
# @return [Integer] A 32-bit float value stored with a platform-independent
byte order.
attr_accessor :v
end
2012-11-06 12:03:58 +09:00
Watson
c3b35356ef
fix to generate CLLocationCoordinate2D class
...
The reference document might have the typedef and structure in `Data Types' section.
If not handle the typedef, XML nodes (name, abstract, declaration and termed) count are not matched.
So, unexpected node will be handled.
2012-11-06 10:58:54 +09:00
Laurent Sansonetti
7b48bf7acb
list protocols in framework index files (.md), change the way protocols are defined in ruby (now using module) and also how we keep track of them (not using a temporary file)
2012-11-05 17:14:48 +01:00
Laurent Sansonetti
3bb0137724
add CoreFoundation, fix certain structures parsing (temporary fix)
2012-11-05 16:41:06 +01:00
Laurent Sansonetti
a235faf7b8
refer to structs and functions in framework reference file (.md)
2012-11-05 15:31:37 +01:00
Watson
956005b602
fix converting parameter type in Integer which including "int" (ex. CGPoint, NSLayoutConstraint...)
2012-11-05 23:12:03 +09:00
Watson
cbc6040d4a
fix the C function which has no argument
...
This changing will fix as following:
(CFTypeID) CGColorGetTypeID(void)
2012-11-05 17:41:44 +09:00
Watson
242c0e0326
fix the return value type in C function method
2012-11-05 17:23:25 +09:00
Watson
d9b3772977
handle the C functions
...
C functions will be added as Top Level Namespace method
2012-11-05 15:57:52 +09:00
Watson
66b108bed0
to update the protocol documents
2012-11-05 10:17:35 +09:00
Watson
906a73b7fd
handle the Protocols (still need to be improved)
2012-11-04 17:25:31 +09:00
Watson
06b289441d
split the method
2012-11-04 17:16:20 +09:00
Watson
02928c0b85
delete trailing white spaces
2012-11-04 17:07:39 +09:00
Watson
cb5e83b215
handle the C structures
2012-11-04 13:57:43 +09:00
Laurent Sansonetti
775d187c36
determine framework path for iOS classes, generate .md file based on that information (instead of parsing twice the html), add CoreData framework
2012-11-03 23:38:03 +01:00
Watson
22b462d81a
remove unnecessary classes
2012-11-04 01:03:42 +09:00
Watson
84b6986c7a
change the framework title
2012-11-03 23:47:55 +09:00
Watson
f19fa4444b
generate classes list
2012-11-03 14:05:10 +09:00
Watson
929b292492
fix the return type about Integer to related char/unsigned
2012-11-02 22:57:33 +09:00
Watson
35fd83f814
fix the return type about delegate
...
This will fix the following case:
- (id < NSKeyedArchiverDelegate >) delegate
2012-11-02 22:35:41 +09:00
Watson
0f196cf463
fix the regular expression in last commit
2012-11-02 22:24:07 +09:00
Watson
5f70933e06
fix the return type about Integer
...
This will fix the following case:
- (const uint8_t) decodeBytesForKey(key, returnedLength:lengthp)
- (int32_t) decodeInt32ForKey(key)
- (int64_t) decodeInt64ForKey(key)
- (uint32_t) machPort
2012-11-02 22:09:47 +09:00
Watson
afaf70ffef
remove objective-c code samples from API discussion
2012-11-02 14:25:38 +09:00
Watson
cabd20f882
specify the encoding because UTF-8 characters may be contained in reference
...
If use Ruby19, it will not handle correctly.
2012-11-02 13:49:27 +09:00
Watson
840d35e910
fix incorrect return type with Ruby19
...
Array#to_s is alias for #inspect on Ruby19. So, its method is different behavior with Ruby18.
2012-11-02 10:39:38 +09:00
Watson
bf3de8c78a
fix the method declaration which has variable arguments
...
before:
def setWithObjects(firstObj, …:); end
after
def setWithObjects(firstObj, …); end
2012-11-01 23:00:38 +09:00
Watson
2b4e45e58a
add `@scope' directive for yard if handle the class method
2012-11-01 22:24:03 +09:00
Watson
9a3676acf5
NSObject and NSProxy does not have the super class
...
fix the following warning:
[warn]: in file '/tmp/rb_docset/t189.rb':2:
2: class NSProxy < none
[warn]: in file '/tmp/rb_docset/t180.rb':2:
2: class NSObject < none
2012-11-01 13:52:28 +09:00
Watson
0364deeb5c
remove no-break space because yardoc will fail to generate
2012-11-01 13:39:42 +09:00
Watson
595820e2de
remove the ')' in method declaration which has the handler argument
...
Because the following method is converted with strange syntax
- (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:(void (^)(void))handler
after converting:
def beginBackgroundTaskWithExpirationHandler()handler); end
2012-11-01 13:15:37 +09:00
Watson
b2b50d52f6
remove the semicolon in method declaration in iOS SDK reference
...
In some place, the methods will be declared with semicolon in reference:
- (NSString *)activityTitle;
So, this method is converted to Ruby with strange syntax:
def activityTitle;(); end
2012-11-01 12:55:48 +09:00
Watson
87539d261c
split DocsetGenerator#run to generating ruby code and generating HTML
2012-11-01 00:11:11 +09:00