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 !
Remove svn directory which was added by xcode I guess?
Caged (author)
Mon Mar 03 03:16:37 -0800 2008
commit  459d8dc16d09e890cb614833ab7ef62b262c1e90
tree    dc3100c111ff58e9c4088710f4b2f212a20b1b9a
parent  cc55a4495280ad8e7ef85ed591e7f420514e4589
...
1
 
...
1
2
0
@@ -1,2 +1,3 @@
0
 build/*
0
+.svn
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,30 +1 @@
0
-K 25
0
-svn:wc:ra_dav:version-url
0
-V 103
0
-/svnroot/rubycocoa/!svn/ver/1901/trunk/src/template/ProjectBuilder/Application/Cocoa-Ruby%20Application
0
-END
0
-main.m
0
-K 25
0
-svn:wc:ra_dav:version-url
0
-V 110
0
-/svnroot/rubycocoa/!svn/ver/1901/trunk/src/template/ProjectBuilder/Application/Cocoa-Ruby%20Application/main.m
0
-END
0
-Rakefile
0
-K 25
0
-svn:wc:ra_dav:version-url
0
-V 112
0
-/svnroot/rubycocoa/!svn/ver/1847/trunk/src/template/ProjectBuilder/Application/Cocoa-Ruby%20Application/Rakefile
0
-END
0
-Info.plist
0
-K 25
0
-svn:wc:ra_dav:version-url
0
-V 114
0
-/svnroot/rubycocoa/!svn/ver/1680/trunk/src/template/ProjectBuilder/Application/Cocoa-Ruby%20Application/Info.plist
0
-END
0
-rb_main.rb
0
-K 25
0
-svn:wc:ra_dav:version-url
0
-V 114
0
-/svnroot/rubycocoa/!svn/ver/1680/trunk/src/template/ProjectBuilder/Application/Cocoa-Ruby%20Application/rb_main.rb
0
-END
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,85 +1 @@
0
-8
0
-
0
-dir
0
-2138
0
-https://rubycocoa.svn.sourceforge.net/svnroot/rubycocoa/trunk/src/template/ProjectBuilder/Application/Cocoa-Ruby%20Application
0
-https://rubycocoa.svn.sourceforge.net/svnroot/rubycocoa
0
-
0
-
0
-
0
-2007-07-13T22:37:12.332299Z
0
-1901
0
-lrz
0
-
0
-
0
-svn:special svn:externals svn:needs-lock
0
-
0
-
0
-
0
-
0
-
0
-
0
-
0
-
0
-
0
-
0
-
0
-f4f36d40-9719-0410-9868-dde021a23eda
0
-
0
-main.m
0
-file
0
-
0
-
0
-
0
-
0
-2007-07-13T22:10:40.000000Z
0
-740ea32e1e34bbf53117e0bdbdd7d58b
0
-2007-07-13T22:37:12.332299Z
0
-1901
0
-lrz
0
-has-props
0
-
0
-CocoaApp.xcodeproj
0
-dir
0
-
0
-Rakefile
0
-file
0
-
0
-
0
-
0
-
0
-2007-06-24T20:51:39.000000Z
0
-f697f75486b093af9814629fdd1caef7
0
-2007-06-21T06:07:48.979302Z
0
-1847
0
-hisa
0
-
0
-Info.plist
0
-file
0
-
0
-
0
-
0
-
0
-2007-04-15T15:08:01.000000Z
0
-c44345d19df15e93cafa16437578d36c
0
-2006-09-29T23:30:23.723134Z
0
-1135
0
-lrz
0
-
0
-rb_main.rb
0
-file
0
-
0
-
0
-
0
-
0
-2007-04-15T15:08:01.000000Z
0
-814b62f7da3edf364a584f6dbe002d12
0
-2005-02-27T07:54:47.000000Z
0
-731
0
-kimuraw
0
-has-props
0
-
0
-English.lproj
0
-dir
0
-
...
1
...
 
0
@@ -1,2 +1 @@
0
-8
...
1
2
3
4
5
...
 
 
 
 
 
0
@@ -1,6 +1 @@
0
-K 13
0
-svn:mime-type
0
-V 24
0
-application/octet-stream
0
-END
...
1
2
3
4
5
...
 
 
 
 
 
0
@@ -1,6 +1 @@
0
-K 13
0
-svn:mime-type
0
-V 24
0
-application/octet-stream
0
-END
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,29 +1 @@
0
-<?xml version="1.0" encoding="UTF-8"?>
0
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
0
-<plist version="1.0">
0
-<dict>
0
- <key>CFBundleDevelopmentRegion</key>
0
- <string>English</string>
0
- <key>CFBundleExecutable</key>
0
- <string>«PROJECTNAMEASXML»</string>
0
- <key>CFBundleIconFile</key>
0
- <string></string>
0
- <key>CFBundleInfoDictionaryVersion</key>
0
- <string>6.0</string>
0
- <key>CFBundlePackageType</key>
0
- <string>APPL</string>
0
- <key>CFBundleSignature</key>
0
- <string>????</string>
0
- <key>CFBundleVersion</key>
0
- <string>1.0</string>
0
- <key>NSMainNibFile</key>
0
- <string>MainMenu</string>
0
- <key>NSPrincipalClass</key>
0
- <string>NSApplication</string>
0
- <key>CFBundleIdentifier</key>
0
- <string>com.apple.rubycocoa.«PROJECTNAMEASXML»App</string>
0
- <key>CFBundleShortVersionString</key>
0
- <string>1.0</string>
0
-</dict>
0
-</plist>
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,157 +1 @@
0
-# -*- mode:ruby; indent-tabs-mode:nil; coding:utf-8 -*-
0
-# vim:ts=2:sw=2:expandtab:
0
-require 'rubygems'
0
-require 'rake'
0
-require 'rake/clean'
0
-require 'rake/testtask'
0
-require 'pathname'
0
-
0
-# Application own Settings
0
-APPNAME = "«PROJECTNAME»"
0
-TARGET = "#{APPNAME}.app"
0
-#APPVERSION = "rev#{`svn info`[/Revision: (\d+)/, 1]}"
0
-APPVERSION = Time.now.strftime("%Y-%m-%d")
0
-PUBLISH = 'yourname@yourhost:path'
0
-DEFAULT_TARGET = APPNAME
0
-DEFAULT_CONFIGURATION = 'Release'
0
-RELEASE_CONFIGURATION = 'Release'
0
-
0
-# Tasks
0
-task :default => [:run]
0
-
0
-desc "Build the default and run it."
0
-task :run => [:build] do
0
- sh %{open "build/Release/#{APPNAME}.app"}
0
-end
0
-
0
-desc 'Build the default target using the default configuration'
0
-task :build => "xcode:build:#{DEFAULT_TARGET}:#{DEFAULT_CONFIGURATION}"
0
-
0
-desc 'Deep clean of everything'
0
-task :clean do
0
- puts %x{ xcodebuild -alltargets clean }
0
-end
0
-
0
-desc "Add files to Xcode project"
0
-task :add do |t|
0
- files = ARGV[1..-1]
0
- project = %x{ xcodebuild -list }[/Information about project "([^"]+)":/, 1]
0
- files << "#{project}.xcodeproj"
0
- exec("rubycocoa", "add", *files)
0
-end
0
-
0
-desc "Create ruby skelton and add to Xcode project"
0
-task :create do |t|
0
- args = ARGV[1..-1]
0
- if system("rubycocoa", "create", *args)
0
- project = %x{ xcodebuild -list }[/Information about project "([^"]+)":/, 1]
0
- exec("rubycocoa", "add", args.last + ".rb", "#{project}.xcodeproj")
0
- end
0
-end
0
-
0
-desc "Update nib with ruby file"
0
-task :update do |t|
0
- args = ARGV[1..-1]
0
- args.unshift("English.lproj/MainMenu.nib")
0
- exec("rubycocoa", "update", *args)
0
-end
0
-
0
-desc "Package the application"
0
-task :package => ["xcode:build:#{DEFAULT_TARGET}:#{RELEASE_CONFIGURATION}", "pkg"] do
0
- name = "#{APPNAME}.#{APPVERSION}"
0
- mkdir "image"
0
- sh %{rubycocoa standaloneify "build/#{DEFAULT_CONFIGURATION}/#{APPNAME}.app" "image/#{APPNAME}.app"}
0
- puts 'Creating Image...'
0
- sh %{
0
- hdiutil create -volname '#{name}' -srcfolder image '#{name}'.dmg
0
- rm -rf image
0
- mv '#{name}.dmg' pkg
0
- }
0
-end
0
-
0
-directory 'pkg'
0
-
0
-desc 'Make Localized nib from English.lproj and Lang.lproj/nib.strings'
0
-rule(/.nib$/ => [proc {|tn| File.dirname(tn) + '/nib.strings' }]) do |t|
0
- p t.name
0
- lproj = File.dirname(t.name)
0
- target = File.basename(t.name)
0
- rm_rf t.name
0
- sh %{
0
- nibtool -d #{lproj}/nib.strings -w #{t.name} English.lproj/#{target}
0
- }
0
-end
0
-
0
-# [Rubycocoa-devel 906] dynamically xcode rake tasks
0
-# [Rubycocoa-devel 907]
0
-#
0
-def xcode_targets
0
- out = %x{ xcodebuild -list }
0
- out.scan(/.*Targets:\s+(.*)Build Configurations:.*/m)
0
-
0
- targets = []
0
- $1.each_line do |l|
0
- l = l.strip.sub(' (Active)', '')
0
- targets << l unless l.nil? or l.empty?
0
- end
0
- targets
0
-end
0
-
0
-def xcode_configurations
0
- out = %x{ xcodebuild -list }
0
- out.scan(/.*Build Configurations:\s+(.*)If no build configuration.*/m)
0
-
0
- configurations = []
0
- $1.each_line do |l|
0
- l = l.strip.sub(' (Active)', '')
0
- configurations << l unless l.nil? or l.empty?
0
- end
0
- configurations
0
-end
0
-
0
-namespace :xcode do
0
- targets = xcode_targets
0
- configs = xcode_configurations
0
-
0
- %w{build clean}.each do |action|
0
- namespace "#{action}" do
0
-
0
- targets.each do |target|
0
- desc "#{action} #{target}"
0
- task "#{target}" do |t|
0
- puts %x{ xcodebuild -target '#{target}' #{action} }
0
- end
0
-
0
- # alias the task above using a massaged name
0
- massaged_target = target.downcase.gsub(/[\s*|\-]/, '_')
0
- task "#{massaged_target}" => "xcode:#{action}:#{target}"
0
-
0
-
0
- namespace "#{target}" do
0
- configs.each do |config|
0
- desc "#{action} #{target} #{config}"
0
- task "#{config}" do |t|
0
- puts %x{ xcodebuild -target '#{target}' -configuration '#{config}' #{action} }
0
- end
0
- end
0
- end
0
-
0
- # namespace+task aliases of the above using massaged names
0
- namespace "#{massaged_target}" do
0
- configs.each { |conf| task "#{conf.downcase.gsub(/[\s*|\-]/, '_')}" => "xcode:#{action}:#{target}:#{conf}" }
0
- end
0
-
0
- end
0
-
0
- end
0
- end
0
-end
0
-
0
-
0
-if ["update", "add", "create"].include? ARGV[0]
0
- # dupe rake
0
- ARGV.map! {|a| a.sub(/^\+/, "-") }
0
- Rake.application[ARGV[0].to_sym].invoke
0
- exit # will not reach
0
-end
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,16 +1 @@
0
-//
0
-// main.m
0
-// ÇROJECTNAMEÈ
0
-//
0
-// Created by ÇULLUSERNAMEÈon ÇATEÈ
0
-// Copyright (c) ÇEARÈÇRGANIZATIONNAMEÈ All rights reserved.
0
-//
0
-
0
-#import <Cocoa/Cocoa.h>
0
-#import <RubyCocoa/RBRuntime.h>
0
-
0
-int main(int argc, const char *argv[])
0
-{
0
- return RBApplicationMain("rb_main.rb", argc, argv);
0
-}
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,24 +1 @@
0
-#
0
-# rb_main.rb
0
-# ÇROJECTNAMEÈ
0
-#
0
-# Created by ÇULLUSERNAMEÈon ÇATEÈ
0
-# Copyright (c) ÇEARÈÇRGANIZATIONNAMEÈ All rights reserved.
0
-#
0
-
0
-require 'osx/cocoa'
0
-
0
-def rb_main_init
0
- path = OSX::NSBundle.mainBundle.resourcePath.fileSystemRepresentation
0
- rbfiles = Dir.entries(path).select {|x| /\.rb\z/ =~ x}
0
- rbfiles -= [ File.basename(__FILE__) ]
0
- rbfiles.each do |path|
0
- require( File.basename(path) )
0
- end
0
-end
0
-
0
-if $0 == __FILE__ then
0
- rb_main_init
0
- OSX.NSApplicationMain(0, nil)
0
-end

Comments

    No one has commented yet.