public
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/Caged/gitnub.git
Click here to lend your support to: gitnub and make a donation at www.pledgie.com !
Fixes #19 LSOpenURLFromSpec and the gazillion duplicate versions of that ticket. 
yay
"
Caged (author)
Tue Aug 05 18:05:29 -0700 2008
commit  1c29dfa5f074871565fb9ba7a8bbc23964573a39
tree    7319cfe3e89d79322e1395610b23239660c72f01
parent  8f40c3e677bcf5a58caabf209f321284d812fb0a
...
10
11
12
13
 
 
14
15
16
...
10
11
12
 
13
14
15
16
17
0
@@ -10,7 +10,8 @@ require 'rubygems'
0
 require 'pathname'
0
 require 'osx/cocoa'
0
 libdir = OSX::NSBundle.mainBundle.resourcePath.stringByAppendingPathComponent("lib").fileSystemRepresentation
0
-$:.unshift(libdir, "#{libdir}/grit/lib", "#{libdir}/mime-types/lib")
0
+puts "LIB DIR:#{libdir}"
0
+$:.unshift(libdir, "#{libdir}/grit/lib", "#{libdir}/mime-types/lib", "#{libdir}/open4/lib")
0
 require 'grit'
0
 require 'time_extensions'
0
 require 'string_extensions'
...
117
118
119
120
 
121
122
123
124
125
 
 
 
 
 
126
127
128
...
117
118
119
 
120
121
122
123
124
125
126
127
128
129
130
131
132
133
0
@@ -117,12 +117,17 @@ class CommitsController < OSX::NSObject
0
   end
0
   
0
   def webView_contextMenuItemsForElement_defaultMenuItems(view, element, defaultMenuItems)
0
-    defaultMenuItems.select do |item|
0
+    items = defaultMenuItems.select do |item|
0
       # WebMenuItemTagCopy = 8
0
       # WebMenuItemTagCut = 13
0
       # WebMenuItemTagPaste = 14
0
       [8, 13, 14].include? item.tag
0
     end
0
+    items << NSMenuItem.alloc.initWithTitle_action_keyEquivalent("Blame", :foo_bar, "")
0
+  end
0
+  
0
+  def foo_bar(sender)
0
+    puts "FOO"
0
   end
0
   
0
   def imageLoadForURL_didFinishLoading(url, image)
...
77
78
79
80
 
81
82
83
...
77
78
79
 
80
81
82
83
0
@@ -77,7 +77,7 @@
0
     29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
0
     4D922CA60D8889DB002A5539 /* CommitSummaryCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommitSummaryCell.h; sourceTree = "<group>"; };
0
     4D922CA70D8889DB002A5539 /* CommitSummaryCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CommitSummaryCell.m; sourceTree = "<group>"; };
0
-    4DDCA7110ACC9A6100E082CE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Info.plist; sourceTree = "<group>"; };
0
+    4DDCA7110ACC9A6100E082CE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
0
     4DDCA7120ACC9A6100E082CE /* GitNub.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GitNub.app; sourceTree = BUILT_PRODUCTS_DIR; };
0
     DA8995E20D890D8A00CF2CDA /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
0
     E8F5E24E03AEB6EC03A81C6F /* RubyCocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RubyCocoa.framework; path = /Library/Frameworks/RubyCocoa.framework; sourceTree = "<absolute>"; };
...
130
131
132
133
 
134
135
136
137
138
139
140
141
 
 
 
 
142
143
144
145
 
146
147
148
...
130
131
132
 
133
134
135
136
137
138
139
 
 
140
141
142
143
144
 
145
 
146
147
148
149
0
@@ -130,19 +130,20 @@ h1 {
0
 
0
 #diffs .diff {
0
   margin-bottom: 27px;
0
-  background-color: #f7f7f7;
0
+  background-color: #333;
0
   -webkit-border-radius: 4px;
0
   border: 1px solid #ddd;
0
   width: 100%;
0
 }
0
 
0
 .diff h3 {
0
-  background: #ddd;
0
-  color: #333;
0
+  background: #333;
0
+  color: #fff;
0
+  font-family: "Lucida Grande";
0
+  font-size: 92%;
0
   padding: 6px;
0
-  border-bottom: 1px solid #ccc;
0
   -webkit-border-top-right-radius: 4px;
0
-  -webkit-border-top-left-radius: 4px;
0
+  -webkit-border-top-left-radius: 4px; 
0
 }
0
 
0
 pre {

Comments