svn_conf_generator 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +16 -0
- data/USAGE +27 -0
- data/svn_conf_generator.rb +8 -0
- data/templates/svn.rake +25 -0
- metadata +48 -0
data/CHANGELOG
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
0.0.3
|
2
|
+
Wed Apr 26 17:58:50 EDT 2006
|
3
|
+
Unfortunately, the .cvsignore approach doesn't work.
|
4
|
+
Back to setting svn:ignore properties after project is imported.
|
5
|
+
BTW, it is a good idea to edit ~/.subversion/config file and set global-ignores property:
|
6
|
+
|
7
|
+
global-ignores=*.log *.html-gzip-* schema.rb .DS_Store
|
8
|
+
|
9
|
+
0.0.2
|
10
|
+
Tue Apr 25 22:46:30 EDT 2006
|
11
|
+
Minor fixes.
|
12
|
+
|
13
|
+
0.0.1
|
14
|
+
Tue Apr 25 21:41:25 EDT 2006
|
15
|
+
Initial release
|
16
|
+
|
data/USAGE
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
NAME
|
2
|
+
svn_conf - helps to configure new Rails project for svn import.
|
3
|
+
|
4
|
+
SYNOPSIS
|
5
|
+
svn_conf
|
6
|
+
|
7
|
+
DESCRIPTION
|
8
|
+
This generator adds a couple of rake commands to help with Subversion tasks.
|
9
|
+
|
10
|
+
- rake svn:configure
|
11
|
+
Run this command before importing project into Subversion repository.
|
12
|
+
It will generate .cvsignore files to ignore
|
13
|
+
tmp/sessions/*
|
14
|
+
tmp/sockets/*
|
15
|
+
tmp/cache/*
|
16
|
+
log/*.log
|
17
|
+
db/schema.db
|
18
|
+
The svn import command will use these files to set svn:ignore properties.
|
19
|
+
|
20
|
+
- rake svn:add
|
21
|
+
This command will add all new files to svn.
|
22
|
+
Thanks to: http://blog.unquiet.net/archives/2005/11/06/helpful-rake-tasks-for-using-rails-with-subversion/
|
23
|
+
|
24
|
+
EXAMPLE
|
25
|
+
./script/generate svn_conf
|
26
|
+
|
27
|
+
This will add lib/tasks/svn.rake to your current rails app.
|
data/templates/svn.rake
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
def ignore(pattern, dir)
|
2
|
+
system "svn propset svn:ignore '#{pattern}' #{dir}"
|
3
|
+
#puts "\t ignoring #{dir}/#{pattern}"
|
4
|
+
end
|
5
|
+
|
6
|
+
namespace :svn do
|
7
|
+
|
8
|
+
desc "Configure svn:ignore properties"
|
9
|
+
task :configure do
|
10
|
+
puts "Setting svn:ignore properties:"
|
11
|
+
ignore '*', 'tmp/cache'
|
12
|
+
ignore '*', 'tmp/sessions'
|
13
|
+
ignore '*', 'tmp/sockets'
|
14
|
+
ignore '*.log', 'log'
|
15
|
+
ignore 'lighttpd.conf', 'config'
|
16
|
+
ignore 'schema.rb', 'db'
|
17
|
+
puts "Done."
|
18
|
+
end
|
19
|
+
|
20
|
+
desc "Add all new files to subversion"
|
21
|
+
task :add do
|
22
|
+
system "svn status | grep '^\?' | sed -e 's/? *//' | sed -e 's/ /\ /g' | xargs svn add"
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
|
+
specification_version: 1
|
4
|
+
name: svn_conf_generator
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.0.3
|
7
|
+
date: 2006-04-27 00:00:00 -04:00
|
8
|
+
summary: Rails generator to add svn configuration task
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: roustem.karimov@agilewebsolutions.com
|
12
|
+
homepage: http://www.softwaretrenches.com
|
13
|
+
rubyforge_project: rails-svn-conf
|
14
|
+
description: Rails SVN Configuration Generator Prepares Rails project to be imported into Subversion repository. This generator adds a couple of rake commands to help with SVN. rake svn:configure -- will set svn:ignore properties in tmp/cache/, tmp/sessions/, tmp/sockets/, and log/ directories. This command must be run after project is imported into svn repository. rake svn:add -- adds new files to subversion repository.
|
15
|
+
autorequire: rake
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: false
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
authors:
|
29
|
+
- Roustem Karimov
|
30
|
+
files:
|
31
|
+
- USAGE
|
32
|
+
- CHANGELOG
|
33
|
+
- svn_conf_generator.rb
|
34
|
+
- templates/svn.rake
|
35
|
+
test_files: []
|
36
|
+
|
37
|
+
rdoc_options: []
|
38
|
+
|
39
|
+
extra_rdoc_files: []
|
40
|
+
|
41
|
+
executables: []
|
42
|
+
|
43
|
+
extensions: []
|
44
|
+
|
45
|
+
requirements:
|
46
|
+
- none
|
47
|
+
dependencies: []
|
48
|
+
|