Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Displays number of visible requests. Delete request pattern. Upped to…

… 1.0.2
  • Loading branch information...
commit 8ad528c1309f89194b1663cb8fed84b8173e4b27 1 parent ff93111
@mmower authored
View
1  AppController.h
@@ -26,5 +26,6 @@
@property (readonly) NSProgressIndicator *progressIndicator;
- (IBAction)openDocument:(id)sender;
+- (IBAction)removeSimilarRequests:(id)sender;
@end
View
14 AppController.m
@@ -9,6 +9,7 @@
#import "AppController.h"
#import "LogParser.h"
+#import "RailsRequest.h"
#import "RequestDetailsController.h"
@implementation AppController
@@ -23,6 +24,7 @@ - (void)awakeFromNib {
[requestDetailsController showWindow:self];
}
+
- (IBAction)openDocument:(id)sender {
NSOpenPanel* openDlg = [NSOpenPanel openPanel];
[openDlg setCanChooseFiles:YES];
@@ -33,9 +35,21 @@ - (IBAction)openDocument:(id)sender {
}
+- (IBAction)removeSimilarRequests:(id)sender {
+ // Get controller & action of selected request
+ RailsRequest *request = [[requestsController selectedObjects] objectAtIndex:0];
+ if( request ) {
+ NSPredicate *filterPredicate = [NSPredicate predicateWithFormat:@"!( controller == %@ AND action == %@ )",[request controller],[request action]];
+ NSLog( @"Deleting using predicate: %@", filterPredicate );
+ [self setRequests:[requests filteredArrayUsingPredicate:filterPredicate]];
+ }
+}
+
+
- (void)parseLogFile:(NSString *)logFile {
LogParser *parser = [[LogParser alloc] initWithAppController:self];
[self setRequests:[parser parseLogFile:logFile]];
}
+
@end
View
152 English.lproj/MainMenu.xib
@@ -8,9 +8,9 @@
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="607"/>
- <integer value="372"/>
<integer value="562"/>
+ <integer value="372"/>
+ <integer value="611"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -1037,6 +1037,29 @@
</object>
</object>
</object>
+ <object class="NSMenuItem" id="438601057">
+ <reference key="NSMenu" ref="649796088"/>
+ <string key="NSTitle">Request</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="35465992"/>
+ <reference key="NSMixedImage" ref="502551668"/>
+ <string key="NSAction">submenuAction:</string>
+ <object class="NSMenu" key="NSSubmenu" id="712951170">
+ <string key="NSTitle">Request</string>
+ <object class="NSMutableArray" key="NSMenuItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMenuItem" id="629325830">
+ <reference key="NSMenu" ref="712951170"/>
+ <string key="NSTitle">Remove Similar</string>
+ <string type="base64-UTF8" key="NSKeyEquiv">CA</string>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="35465992"/>
+ <reference key="NSMixedImage" ref="502551668"/>
+ </object>
+ </object>
+ </object>
+ </object>
<object class="NSMenuItem" id="713487014">
<reference key="NSMenu" ref="649796088"/>
<string key="NSTitle">Window</string>
@@ -1885,6 +1908,27 @@
<int key="NSMaximumRecents">255</int>
</object>
</object>
+ <object class="NSTextField" id="684030048">
+ <reference key="NSNextResponder" ref="439893737"/>
+ <int key="NSvFlags">265</int>
+ <string key="NSFrame">{{642, 681}, {474, 17}}</string>
+ <reference key="NSSuperview" ref="439893737"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="594002100">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">71304192</int>
+ <string key="NSContents">Label</string>
+ <reference key="NSSupport" ref="60906396"/>
+ <reference key="NSControlView" ref="684030048"/>
+ <object class="NSColor" key="NSBackgroundColor" id="285865440">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlColor</string>
+ <reference key="NSColor" ref="1062816170"/>
+ </object>
+ <reference key="NSTextColor" ref="97964767"/>
+ </object>
+ </object>
</object>
<string key="NSFrameSize">{1133, 720}</string>
<reference key="NSSuperview"/>
@@ -1910,6 +1954,7 @@
<string>renderTime</string>
<string>dbTime</string>
<string>halted</string>
+ <string>@count</string>
</object>
<string key="NSObjectClassName">RailsRequest</string>
<object class="_NSManagedProxy" key="_NSManagedProxy"/>
@@ -1958,12 +2003,7 @@
<string key="NSContents">Loading logfile...</string>
<reference key="NSSupport" ref="60906396"/>
<reference key="NSControlView" ref="90660679"/>
- <object class="NSColor" key="NSBackgroundColor">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">controlColor</string>
- <reference key="NSColor" ref="1062816170"/>
- </object>
+ <reference key="NSBackgroundColor" ref="285865440"/>
<reference key="NSTextColor" ref="97964767"/>
</object>
</object>
@@ -2854,6 +2894,34 @@
</object>
<int key="connectionID">608</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">removeSimilarRequests:</string>
+ <reference key="source" ref="278795957"/>
+ <reference key="destination" ref="629325830"/>
+ </object>
+ <int key="connectionID">612</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">displayPatternValue1: arrangedObjects.@count</string>
+ <reference key="source" ref="684030048"/>
+ <reference key="destination" ref="940822822"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="684030048"/>
+ <reference key="NSDestination" ref="940822822"/>
+ <string key="NSLabel">displayPatternValue1: arrangedObjects.@count</string>
+ <string key="NSBinding">displayPatternValue1</string>
+ <string key="NSKeyPath">arrangedObjects.@count</string>
+ <object class="NSDictionary" key="NSOptions">
+ <string key="NS.key.0">NSDisplayPattern</string>
+ <string key="NS.object.0">%{value1}@ Requests</string>
+ </object>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">618</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -2896,6 +2964,7 @@
<reference ref="379814623"/>
<reference ref="586577488"/>
<reference ref="302598603"/>
+ <reference ref="438601057"/>
</object>
<reference key="parent" ref="1049"/>
<string key="objectName">MainMenu</string>
@@ -3443,6 +3512,7 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="996643746"/>
<reference ref="122216333"/>
+ <reference ref="684030048"/>
</object>
<reference key="parent" ref="972006081"/>
</object>
@@ -4080,6 +4150,43 @@
<reference key="object" ref="344955122"/>
<reference key="parent" ref="110575045"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">609</int>
+ <reference key="object" ref="438601057"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="712951170"/>
+ </object>
+ <reference key="parent" ref="649796088"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">610</int>
+ <reference key="object" ref="712951170"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="629325830"/>
+ </object>
+ <reference key="parent" ref="438601057"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">611</int>
+ <reference key="object" ref="629325830"/>
+ <reference key="parent" ref="712951170"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">613</int>
+ <reference key="object" ref="684030048"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="594002100"/>
+ </object>
+ <reference key="parent" ref="439893737"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">614</int>
+ <reference key="object" ref="594002100"/>
+ <reference key="parent" ref="684030048"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -4331,6 +4438,12 @@
<string>58.ImportedFromIB2</string>
<string>606.IBPluginDependency</string>
<string>607.IBPluginDependency</string>
+ <string>609.IBPluginDependency</string>
+ <string>610.IBEditorWindowLastContentRect</string>
+ <string>610.IBPluginDependency</string>
+ <string>611.IBPluginDependency</string>
+ <string>613.IBPluginDependency</string>
+ <string>614.IBPluginDependency</string>
<string>72.IBPluginDependency</string>
<string>72.ImportedFromIB2</string>
<string>73.IBPluginDependency</string>
@@ -4472,7 +4585,7 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
<string>{{525, 802}, {197, 73}}</string>
- <string>{{418, 1049}, {403, 20}}</string>
+ <string>{{418, 1049}, {476, 20}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
<string>{74, 862}</string>
@@ -4606,6 +4719,12 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>{{689, 1026}, {175, 23}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
@@ -4653,7 +4772,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">608</int>
+ <int key="maxID">618</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -4662,8 +4781,17 @@
<string key="className">AppController</string>
<string key="superclassName">NSObject</string>
<object class="NSMutableDictionary" key="actions">
- <string key="NS.key.0">openDocument:</string>
- <string key="NS.object.0">id</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMutableArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>openDocument:</string>
+ <string>removeSimilarRequests:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>id</string>
+ <string>id</string>
+ </object>
</object>
<object class="NSMutableDictionary" key="outlets">
<bool key="EncodedWithXMLCoder">YES</bool>
View
2  Info.plist
@@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1.0.1</string>
+ <string>1.0.2</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
View
2  Rakefile
@@ -6,7 +6,7 @@ require "choctop"
ChocTop.new do |s|
# Remote upload target
s.host = 'lucidmac'
- s.base_url = "http://#{s.host}/pkg/spike"
+ s.base_url = "http://lucidmac.com/pkg/spike"
s.remote_dir = '/var/apps/lucidmac/public/pkg/spike'
# Custom DMG
View
9 release_notes.txt
@@ -0,0 +1,9 @@
+h1. <span>2009-02-16</span> Release 1.0.2
+
+Display visible requests
+Delete requests with the backspace key
+Fixed the billion memory leaks issue (didn't turn on GC for release builds!) (actually in 1.0.1)
+
+h1. <span>2009-02-15</span> Release 1.0
+
+Yay! First release.
View
13 release_notes_template.html.erb
@@ -0,0 +1,13 @@
+<html>
+ <head>
+ <title>Release Notes</title>
+ <style>
+ * { font-family: serif;}
+ h1 { font-family: sans-serif; background-color: #ABABFF; padding: 10px;}
+ h1 span { font-size: 75%; font-weight: normal; float: right;}
+ </style>
+ </head>
+ <body>
+ <%= release_notes_html %>
+ </body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.