svn-command 0.0.10 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Readme +11 -19
- data/bin/_svn_command_post_install +15 -0
- data/bin/command_completion_for_svn_command +1 -1
- metadata +3 -1
data/Readme
CHANGED
@@ -12,37 +12,29 @@ This is a replacement <tt>svn</tt> <b>command-line client</b> meant to be used i
|
|
12
12
|
|
13
13
|
== Installation
|
14
14
|
|
15
|
-
===
|
16
|
-
|
17
|
-
Currently a _patched_ version of Console::Command is required. The patched vesion is available on riblet.qualitysmith.com at:
|
18
|
-
|
19
|
-
/usr/lib/ruby/gems/1.8/gems/facets-1.8.51/lib/facets/more/command.rb
|
20
|
-
|
21
|
-
(These changes will hopefully be absorbed into the next release of facets. I apologize for the inconvenience.)
|
22
|
-
|
23
|
-
=== Installation: Per system
|
15
|
+
=== Installation: Once per _system_
|
24
16
|
|
25
17
|
sudo gem install svn-command
|
26
18
|
|
27
|
-
You also need to
|
19
|
+
You will also need to run <tt>_svn_command_post_install</tt>, which will attempt to do the following:
|
28
20
|
|
29
|
-
|
21
|
+
* Make the svn wrapper command *executable*:
|
22
|
+
|
23
|
+
sudo chmod a+x /usr/lib/ruby/gems/1.8/gems/svn-command*/bin/*
|
30
24
|
|
31
25
|
(We can't just set <tt>executables = "svn"</tt> and have it automatically install it to /usr/bin because that would cause it to <b>wipe out</b> the existing executable at <tt>/usr/bin/svn</tt>! If you know of a better, more automatic solution to this, please let the developers know!)
|
32
26
|
|
33
|
-
|
27
|
+
(You may have to restart my terminal after doing the chmod step for bash to detect the svn command in that new location.)
|
34
28
|
|
35
29
|
=== Installation: Per user
|
36
30
|
|
37
|
-
*Important*: You need the gem's +bin+ directory to be added to the <b><i>front</i></b> of your path.
|
38
|
-
|
39
|
-
export PATH=`ls -d /usr/lib/ruby/gems/1.8/gems/svn-command* --color=never | tail -n1`/bin:$PATH
|
40
|
-
|
41
|
-
Or hard-code the path, if you _really_ want to:
|
31
|
+
*Important*: You need the gem's +bin+ directory to be added to the <b><i>front</i></b> of your path. You may run <tt>_svn_command_post_install</tt>, which will attempt to do this for you, or you can do it manually:
|
42
32
|
|
43
|
-
|
33
|
+
* Add a <tt>PATH=</tt> command to your <tt>~/.bash_profile</tt> (or equivalent). For example:
|
44
34
|
|
45
|
-
|
35
|
+
export PATH=`ls -dt --color=never /usr/lib/ruby/gems/1.8/gems/svn-command* | head -n1`/bin:$PATH"
|
36
|
+
|
37
|
+
=== Check to see if it's working
|
46
38
|
|
47
39
|
You'll know it's working by way of two signs:
|
48
40
|
* Your +svn+ command will be noticeably slower
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'fileutils'
|
4
|
+
if ARGV.include?('--dry-run')
|
5
|
+
include FileUtils::DryRun
|
6
|
+
else
|
7
|
+
include FileUtils::Verbose
|
8
|
+
end
|
9
|
+
|
10
|
+
bin_dir = File.expand_path(File.dirname(__FILE__))
|
11
|
+
chmod 0755, Dir["#{bin_dir}/*"]
|
12
|
+
|
13
|
+
path_command = "export PATH=`ls -dt --color=never /usr/lib/ruby/gems/1.8/gems/svn-command* | head -n1`/bin:$PATH"
|
14
|
+
system "grep gems/svn-command ~/.bash_profile || " +
|
15
|
+
"echo '#{path_command}' >> ~/.bash_profile"
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: svn-command
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0
|
6
|
+
version: 0.1.0
|
7
7
|
date: 2007-03-30 00:00:00 -07:00
|
8
8
|
summary: A nifty wrapper command for Subversion's command-line svn client
|
9
9
|
require_paths:
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- bin/rscm_test
|
42
42
|
- bin/command_completion_for_svn_command
|
43
43
|
- bin/svn
|
44
|
+
- bin/_svn_command_post_install
|
44
45
|
- Readme
|
45
46
|
test_files:
|
46
47
|
- test/test_helper.rb
|
@@ -57,6 +58,7 @@ extra_rdoc_files:
|
|
57
58
|
- Readme
|
58
59
|
executables:
|
59
60
|
- command_completion_for_svn_command
|
61
|
+
- _svn_command_post_install
|
60
62
|
extensions: []
|
61
63
|
|
62
64
|
requirements: []
|