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
Search Repo:
Click here to lend your support to: gitnub and make a donation at www.pledgie.com !
Push the bundled lib dirs at the front of $: instead of the end
kballard (author)
Sat May 10 11:38:57 -0700 2008
commit  dcacd139a587302809aa252269019a20a5f5f059
tree    625a07b76706ec68a3a3c253f798438e2f0e178d
parent  b6c6d3b410cca8d34238e509f1138b979b5ab676
...
9
10
11
12
13
14
 
 
15
16
17
...
9
10
11
 
 
 
12
13
14
15
16
0
@@ -9,9 +9,8 @@
0
 require 'rubygems'
0
 require 'pathname'
0
 require 'osx/cocoa'
0
-$: << "#{File.dirname(__FILE__)}/lib"
0
-$: << "#{File.dirname(__FILE__)}/lib/grit/lib"
0
-$: << "#{File.dirname(__FILE__)}/lib/mime-types/lib"
0
+libdir = OSX::NSBundle.mainBundle.resourcePath.stringByAppendingPathComponent("lib").fileSystemRepresentation
0
+$:.unshift(libdir, "#{libdir}/grit/lib", "#{libdir}/mime-types/lib")
0
 require 'grit'
0
 require 'time_extensions'
0
 require 'InfoWindowController'

Comments

    No one has commented yet.