public
Fork of Caged/gitnub
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/kballard/gitnub.git
Search Repo:
Keeping filename conventions consistent
Caged (author)
Wed May 14 12:23:52 -0700 2008
commit  72ace73a9eac10790b23d01c47cd1ef0ea3ac423
tree    9a4e836db8e5a5f4d47a29c4d6478e7c768efb73
parent  019f7eab430c325acd58a548baa7856fdf69b24e
...
13
14
15
16
 
17
18
19
...
13
14
15
 
16
17
18
19
0
@@ -13,7 +13,7 @@
0
 $:.unshift(libdir, "#{libdir}/grit/lib", "#{libdir}/mime-types/lib")
0
 require 'grit'
0
 require 'time_extensions'
0
-require 'string_hacks'
0
+require 'string_extensions'
0
 require 'InfoWindowController'
0
 
0
 OSX.ns_import 'CommitSummaryCell'
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -1 +1,20 @@
0
+class String
0
+ HTML_ESCAPES = {
0
+ ?& => "amp",
0
+ ?" => "quot",
0
+ ?< => "lt",
0
+ ?> => "gt"
0
+ }.freeze
0
+
0
+ def escapeHTML
0
+ self.split("").collect { |x| HTML_ESCAPES.key?(x.ord) ? "&#{HTML_ESCAPES[x.ord]};" : x }.join("")
0
+ end
0
+
0
+ # Ruby 1.9 forward-compatibility
0
+ unless String.method_defined?(:ord)
0
+ define_method :ord do
0
+ self[0]
0
+ end
0
+ end
0
+end
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,20 +1 @@
0
-class String
0
- HTML_ESCAPES = {
0
- ?& => "amp",
0
- ?" => "quot",
0
- ?< => "lt",
0
- ?> => "gt"
0
- }.freeze
0
-
0
- def escapeHTML
0
- self.split("").collect { |x| HTML_ESCAPES.key?(x.ord) ? "&#{HTML_ESCAPES[x.ord]};" : x }.join("")
0
- end
0
-
0
- # Ruby 1.9 forward-compatibility
0
- unless String.method_defined?(:ord)
0
- define_method :ord do
0
- self[0]
0
- end
0
- end
0
-end

Comments

    No one has commented yet.