keithsalisbury-subtrac 0.1.15 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/History.rdoc +3 -0
  2. data/{lib/subtrac/templates/projects/blank/svn/branches/README → README.rdoc} +0 -0
  3. data/bin/subtrac +1 -3
  4. data/lib/subtrac.rb +97 -292
  5. data/spec/subtrac_spec.rb +54 -0
  6. data/subtrac.gemspec +37 -0
  7. data/tasks/docs.rake +13 -0
  8. data/tasks/gemspec.rake +3 -0
  9. data/tasks/spec.rake +25 -0
  10. metadata +27 -45
  11. data/LICENSE +0 -20
  12. data/README.markdown +0 -200
  13. data/Rakefile +0 -56
  14. data/VERSION.yml +0 -4
  15. data/lib/subtrac/commands.rb +0 -6
  16. data/lib/subtrac/commands/create.rb +0 -13
  17. data/lib/subtrac/commands/install.rb +0 -10
  18. data/lib/subtrac/common/clients/index.wsgi +0 -89
  19. data/lib/subtrac/common/favicon.ico +0 -0
  20. data/lib/subtrac/common/images/trac/banner_bg.jpg +0 -0
  21. data/lib/subtrac/common/images/trac/bar_bg.gif +0 -0
  22. data/lib/subtrac/common/images/trac/footer_back.png +0 -0
  23. data/lib/subtrac/common/images/trac/main_bg.gif +0 -0
  24. data/lib/subtrac/common/images/trac/saint_logo_small.png +0 -0
  25. data/lib/subtrac/common/static/404.html +0 -14
  26. data/lib/subtrac/common/styles/trac.css +0 -222
  27. data/lib/subtrac/config/config.yml +0 -58
  28. data/lib/subtrac/passwords +0 -3
  29. data/lib/subtrac/shared/trac.ini +0 -178
  30. data/lib/subtrac/templates/location.erb +0 -16
  31. data/lib/subtrac/templates/projects/blank/svn/tags/README +0 -0
  32. data/lib/subtrac/templates/projects/blank/svn/trunk/README +0 -0
  33. data/lib/subtrac/templates/projects/blank/trac/wiki/WikiStart +0 -57
  34. data/lib/subtrac/templates/projects/new/svn/trunk/trac/wiki/WikiStart +0 -46
  35. data/lib/subtrac/templates/projects/new/trac/wiki/WikiStart +0 -23
  36. data/lib/subtrac/templates/projects/trac_theme/svn/trunk/index/index.html +0 -21
  37. data/lib/subtrac/templates/projects/trac_theme/svn/trunk/templates/layout.html +0 -56
  38. data/lib/subtrac/templates/projects/trac_theme/svn/trunk/templates/site.html +0 -27
  39. data/lib/subtrac/templates/projects/trac_theme/svn/trunk/templates/theme.html +0 -86
  40. data/lib/subtrac/templates/projects/trac_theme/trac/wiki/WikiStart +0 -4
  41. data/lib/subtrac/templates/trac.erb +0 -25
  42. data/lib/subtrac/templates/vhost.erb +0 -38
  43. data/lib/subtrac/version.rb +0 -4
@@ -0,0 +1,54 @@
1
+
2
+ = Commander
3
+
4
+ The complete solution for managing multiple subversion repositories
5
+ and associated trac sites.
6
+ Subtrac makes it easy for you to setup tools to manage your projects.
7
+
8
+ == Features
9
+
10
+ * Easier than doing it by hand!!
11
+ * Use the 'subtrac' executable to create subversion and associated trac site.
12
+ * Supports using other projects as templates
13
+
14
+ == Example
15
+
16
+ subtrac create MyClient MyProject MyTemplate
17
+
18
+ == Thanks
19
+
20
+ Special thanks to Visionmedia <http://github.com/visionmedia> for their awsome 'commander' package.
21
+
22
+ == Contrib
23
+
24
+ Feel free to fork and request a pull, or submit a ticket
25
+ http://visionmedia.lighthouseapp.com/projects/27643-commander
26
+
27
+ == Known Issues
28
+
29
+ * ask_editor has been tested with TextMate only
30
+
31
+ == License
32
+
33
+ (The MIT License)
34
+
35
+ Copyright (c) 2008-2009 TJ Holowaychuk <tj@vision-media.ca>
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining
38
+ a copy of this software and associated documentation files (the
39
+ 'Software'), to deal in the Software without restriction, including
40
+ without limitation the rights to use, copy, modify, merge, publish,
41
+ distribute, sublicense, and/or sell copies of the Software, and to
42
+ permit persons to whom the Software is furnished to do so, subject to
43
+ the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be
46
+ included in all copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
49
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
52
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
53
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
54
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/subtrac.gemspec ADDED
@@ -0,0 +1,37 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{subtrac}
5
+ s.version = "1.0.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Keith Salisbury"]
9
+ s.date = %q{2009-04-14}
10
+ s.default_executable = %q{subtrac}
11
+ s.description = %q{The complete solution for managing multiple subversion repositories and trac sites}
12
+ s.email = %q{keithsalisbury@gmail.com}
13
+ s.executables = ["subtrac"]
14
+ s.extra_rdoc_files = ["bin/subtrac", "lib/subtrac.rb", "README.rdoc", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
15
+ s.files = ["bin/subtrac", "subtrac.gemspec", "History.rdoc", "lib/subtrac.rb", "spec/subtrac_spec.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
16
+ s.has_rdoc = true
17
+ s.homepage = %q{http://keithsalisbury.github.com/subtrac}
18
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Subtrac", "--main", "README.rdoc"]
19
+ s.require_paths = ["lib"]
20
+ s.rubyforge_project = %q{subtrac}
21
+ s.rubygems_version = %q{1.3.1}
22
+ s.summary = %q{The complete solution for managing multiple subversion repositories and trac sites}
23
+
24
+ if s.respond_to? :specification_version then
25
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
26
+ s.specification_version = 2
27
+
28
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
29
+ s.add_runtime_dependency(%q<visionmedia-commander>, [">= 3.2.5"])
30
+ else
31
+ s.add_dependency(%q<visionmedia-commander>, [">= 3.2.5"])
32
+ end
33
+ else
34
+ s.add_dependency(%q<visionmedia-commander>, [">= 3.2.5"])
35
+ end
36
+ end
37
+
data/tasks/docs.rake ADDED
@@ -0,0 +1,13 @@
1
+
2
+ namespace :docs do
3
+
4
+ desc 'Remove rdoc products'
5
+ task :remove => [:clobber_docs]
6
+
7
+ desc 'Build docs, and open in browser for viewing (specify BROWSER)'
8
+ task :open => [:docs] do
9
+ browser = ENV["BROWSER"] || "safari"
10
+ sh "open -a #{browser} doc/index.html"
11
+ end
12
+
13
+ end
@@ -0,0 +1,3 @@
1
+
2
+ desc 'Build gemspec file'
3
+ task :gemspec => [:build_gemspec]
data/tasks/spec.rake ADDED
@@ -0,0 +1,25 @@
1
+
2
+ require 'spec/rake/spectask'
3
+
4
+ desc "Run all specifications"
5
+ Spec::Rake::SpecTask.new(:spec) do |t|
6
+ t.libs << "lib"
7
+ t.spec_opts = ["--color", "--require", "spec/spec_helper.rb"]
8
+ end
9
+
10
+ namespace :spec do
11
+
12
+ desc "Run all specifications verbosely"
13
+ Spec::Rake::SpecTask.new(:verbose) do |t|
14
+ t.libs << "lib"
15
+ t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
16
+ end
17
+
18
+ desc "Run specific specification verbosely (specify SPEC)"
19
+ Spec::Rake::SpecTask.new(:select) do |t|
20
+ t.libs << "lib"
21
+ t.spec_files = [ENV["SPEC"]]
22
+ t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
23
+ end
24
+
25
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keithsalisbury-subtrac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Salisbury
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-20 00:00:00 -07:00
12
+ date: 2009-04-14 00:00:00 -07:00
13
13
  default_executable: subtrac
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,57 +22,39 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: 3.2.5
24
24
  version:
25
- description:
25
+ description: The complete solution for managing multiple subversion repositories and trac sites
26
26
  email: keithsalisbury@gmail.com
27
27
  executables:
28
28
  - subtrac
29
29
  extensions: []
30
30
 
31
31
  extra_rdoc_files:
32
- - LICENSE
33
- - README.markdown
32
+ - bin/subtrac
33
+ - lib/subtrac.rb
34
+ - README.rdoc
35
+ - tasks/docs.rake
36
+ - tasks/gemspec.rake
37
+ - tasks/spec.rake
34
38
  files:
35
- - LICENSE
36
- - README.markdown
37
- - Rakefile
38
- - VERSION.yml
39
39
  - bin/subtrac
40
+ - subtrac.gemspec
41
+ - History.rdoc
40
42
  - lib/subtrac.rb
41
- - lib/subtrac/commands.rb
42
- - lib/subtrac/commands/create.rb
43
- - lib/subtrac/commands/install.rb
44
- - lib/subtrac/common/clients/index.wsgi
45
- - lib/subtrac/common/favicon.ico
46
- - lib/subtrac/common/images/trac/banner_bg.jpg
47
- - lib/subtrac/common/images/trac/bar_bg.gif
48
- - lib/subtrac/common/images/trac/footer_back.png
49
- - lib/subtrac/common/images/trac/main_bg.gif
50
- - lib/subtrac/common/images/trac/saint_logo_small.png
51
- - lib/subtrac/common/static/404.html
52
- - lib/subtrac/common/styles/trac.css
53
- - lib/subtrac/config/config.yml
54
- - lib/subtrac/passwords
55
- - lib/subtrac/shared/trac.ini
56
- - lib/subtrac/templates/location.erb
57
- - lib/subtrac/templates/projects/blank/svn/branches/README
58
- - lib/subtrac/templates/projects/blank/svn/tags/README
59
- - lib/subtrac/templates/projects/blank/svn/trunk/README
60
- - lib/subtrac/templates/projects/blank/trac/wiki/WikiStart
61
- - lib/subtrac/templates/projects/new/svn/trunk/trac/wiki/WikiStart
62
- - lib/subtrac/templates/projects/new/trac/wiki/WikiStart
63
- - lib/subtrac/templates/projects/trac_theme/svn/trunk/index/index.html
64
- - lib/subtrac/templates/projects/trac_theme/svn/trunk/templates/layout.html
65
- - lib/subtrac/templates/projects/trac_theme/svn/trunk/templates/site.html
66
- - lib/subtrac/templates/projects/trac_theme/svn/trunk/templates/theme.html
67
- - lib/subtrac/templates/projects/trac_theme/trac/wiki/WikiStart
68
- - lib/subtrac/templates/trac.erb
69
- - lib/subtrac/templates/vhost.erb
70
- - lib/subtrac/version.rb
43
+ - spec/subtrac_spec.rb
44
+ - tasks/docs.rake
45
+ - tasks/gemspec.rake
46
+ - tasks/spec.rake
47
+ - README.rdoc
71
48
  has_rdoc: true
72
- homepage: http://github.com/keithsalisbury/subtrac
49
+ homepage: http://keithsalisbury.github.com/subtrac
73
50
  post_install_message:
74
51
  rdoc_options:
75
- - --charset=UTF-8
52
+ - --line-numbers
53
+ - --inline-source
54
+ - --title
55
+ - Subtrac
56
+ - --main
57
+ - README.rdoc
76
58
  require_paths:
77
59
  - lib
78
60
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -85,14 +67,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
67
  requirements:
86
68
  - - ">="
87
69
  - !ruby/object:Gem::Version
88
- version: "0"
70
+ version: "1.2"
89
71
  version:
90
72
  requirements: []
91
73
 
92
- rubyforge_project:
74
+ rubyforge_project: subtrac
93
75
  rubygems_version: 1.2.0
94
76
  signing_key:
95
- specification_version: 3
96
- summary: Simple and opinionated helper for creating and managing subversion and trac projects.
77
+ specification_version: 2
78
+ summary: The complete solution for managing multiple subversion repositories and trac sites
97
79
  test_files: []
98
80
 
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2009 =
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown DELETED
@@ -1,200 +0,0 @@
1
- # subtrac
2
-
3
- Simple and opinionated helper for creating and managing subversion and trac projects.
4
-
5
- ## Installation on a fresh jeos (ubuntu) slice
6
-
7
- # install some basic requirements
8
- sudo apt-get install openssh-server
9
- sudo apt-get install apache2 sqlite
10
- sudo apt-get install wget
11
- sudo apt-get install ruby1.8-dev ruby1.8
12
- sudo apt-get install rubygems
13
- # add github to package list
14
- gem sources -a http://gems.github.com
15
- # install the subtrac package and dependencies
16
- sudo gem install --include-dependencies keithsalisbury-subtrac
17
-
18
- Note: since gems and ubuntu don't entirely play nicely, its necessary to add the gem path to .bashrc file.
19
- For all users, you can add it here:
20
- sudo vi /etc/bash.bashrc
21
-
22
- ...
23
- export PATH=$PATH:/var/lib/gems/1.8/bin
24
-
25
-
26
- # Installing on VirtualBox
27
-
28
- Start with a Fresh VM Image
29
- Install jeos (hardy)
30
-
31
- ## install the guest additions
32
- # mount guest additions (select Devices>Install Guest Additions from menu)
33
- sudo mount /media/cdrom0/ -o unhide
34
- # install gcc and make
35
- sudo aptitude install build-essential linux-headers-`uname -r`
36
- sudo /cdrom/VBoxLinuxAdditions-x86.run all
37
-
38
- ## install openssh-server?
39
- sudo apt-get install openssh-server
40
-
41
- ## some other pre-requisites
42
- sudo aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 sqlite3
43
-
44
- ## install apache2, python and some modules
45
- sudo apt-get install apache2 libapache2-mod-python libapache2-mod-python-doc \
46
- libapache2-svn python-setuptools subversion python-subversion \
47
- libapache2-dav graphviz htmldoc enscript
48
- # enable mod_rewrite
49
- sudo a2enmod rewrite
50
-
51
- ## install Trac
52
- sudo easy_install -U setuptools
53
- sudo easy_install Trac
54
-
55
- ## some cool plugins
56
- sudo easy_install http://svn.edgewall.org/repos/genshi/trunk/
57
- sudo easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk
58
- sudo easy_install http://trac-hacks.org/svn/customfieldadminplugin/0.11
59
- sudo easy_install http://trac-hacks.org/svn/eclipsetracplugin/tracrpcext/0.10
60
- sudo easy_install http://trac-hacks.org/svn/iniadminplugin/0.11
61
- sudo easy_install http://trac-hacks.org/svn/masterticketsplugin/0.11
62
- sudo easy_install http://trac-hacks.org/svn/pagetopdfplugin/0.10/
63
- sudo easy_install http://trac-hacks.org/svn/progressmetermacro/0.11
64
- sudo easy_install http://trac-hacks.org/svn/ticketdeleteplugin/0.11
65
- sudo easy_install http://trac-hacks.org/svn/tracwysiwygplugin/0.11
66
- sudo easy_install http://wikinotification.ufsoft.org/svn/trunk
67
-
68
- ## install gems and update
69
- sudo apt-get install rubygems
70
- sudo gem update --system
71
-
72
- Which introduced this error:
73
- /usr/bin/gem:23: uninitialized constant Gem::GemRunner(NameError)
74
- Simply add the line to the file /usr/bin/gem (may be different on a mac)
75
- require 'rubygems/gem_runner'
76
- after
77
- require 'rubygems'
78
- OR
79
-
80
- sudo mv /usr/bin/gem /usr/bin/gem.old; sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
81
-
82
- # edit bash.bashrc so all users can run the gem binaries
83
- sudo vi /etc/bash.bashrc ? not sure we need this any more...
84
- # add github to the gem sources list
85
- sudo gem sources -a http://gems.github.com
86
- # install subtrac gem package
87
- sudo gem install keithsalisbury-subtrac
88
-
89
- ## install subtrac server
90
- sudo subtrac install [--clean]
91
-
92
-
93
- # Other things to setup
94
-
95
- ## Mount a shared host folder from the VM Guest
96
- sudo mkdir /mnt/subtrac
97
- sudo mount.vboxsf pkg /mnt/subtrac/
98
-
99
- ## Setting up VM to use an internal loop back interface
100
-
101
- ### Create the interal interface
102
- Snakey:~ adambarton$ sudo -i
103
- Snakey:~ root# python
104
- Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
105
- [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
106
- Type "help", "copyright", "credits" or "license" for more information.
107
- >>> import os
108
- >>> file_path = '/dev/tap1'
109
- >>> dev_file = os.open(file_path, os.O_RDWR)
110
- >>> interface = 'tap1'
111
-
112
- Leave this window open...
113
-
114
- ### Configure the interface
115
-
116
- sudo ifconfig 192.168.3.1 up
117
-
118
- ### Configure the VM
119
-
120
- VBoxManage modifyvm TestHost1 -nic1 hostif -hostifdev1 'tap1: ethernet'
121
-
122
- Or if you prefer to use the second network interface, try this:
123
-
124
- VBoxManage modifyvm subtrac -nic1 hostif -hostifdev2 'tap1: Ethernet'
125
-
126
- Boot it, and give it a static address on the same subnet
127
-
128
- ### Assign a static ip
129
-
130
- sudo vi /etc/networking/interfaces
131
-
132
- # The primary network interface
133
- auto eth0
134
- iface eth0 inet dhcp
135
-
136
- # The secondary network interface
137
- auto eth1
138
- iface eth1 inet static
139
- address 192.168.100.2
140
- netmask 255.255.255.0
141
-
142
- For linux users there's an even cooler way to set this up...
143
- http://muffinresearch.co.uk/archives/2009/04/08/virtualbox-access-guests-via-a-virtual-interface/
144
-
145
- ### OSX Map your new domain to the ip
146
-
147
- sudo mate /private/etc/hosts
148
-
149
- 10.0.2.2 dev.subtrac.com
150
-
151
- ### OSX Auto start the VM
152
-
153
- sudo mate /Library/LaunchDaemons/com.subtrac.plist
154
-
155
- And make it look something like this:
156
-
157
- <?xml version="1.0" encoding="UTF-8"?>
158
- <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" \
159
- "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
160
- <plist version="1.0">
161
- <dict>
162
- <key>Label</key>
163
- <string>Subtrac Development Server</string>
164
- <key>ServiceDescription</key>
165
- <string>VirtualBox</string>
166
- <key>ProgramArguments</key>
167
- <array>
168
- <string>/usr/bin/VBoxHeadless</string>
169
- <string>-startvm</string>
170
- <string>dev.subtrac.com</string>
171
- </array>
172
- <key>RunAtLoad</key>
173
- <true/>
174
- <key>HopefullyExitsFirst</key>
175
- <true/>
176
- <!-- use if you want it to bounce automatically...
177
- <key>KeepAlive</key>
178
- <true/>
179
- -->
180
- <key>UserName</key>
181
- <string>root</string>
182
- </dict>
183
- </plist>
184
-
185
- ### Login with out a prompt
186
-
187
- # generate a new keypair
188
- sh-keygen -t rsa
189
-
190
- # push the pub key up to the server
191
- cat ~/.ssh/id_rsa.pub | ssh keith@dev.subtrac.com "cat - >> ~/.ssh/authorized_keys"
192
-
193
- # chmod the file **on the server**:
194
- sudo chmod 600 ~/.ssh/authorized_keys
195
-
196
-
197
-
198
- ## Copyright
199
-
200
- Copyright (c) 2009 Keith Salisbury. See LICENSE for details.