subwrap 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo.rb +1 -1
- data/bin/_subwrap_post_install +11 -3
- metadata +1 -1
data/ProjectInfo.rb
CHANGED
@@ -5,7 +5,7 @@ module Project
|
|
5
5
|
PrettyName = "Subwrap: Enhanced Subversion Command"
|
6
6
|
Name = "subwrap"
|
7
7
|
RubyForgeName = "subwrap"
|
8
|
-
Version = "0.3.
|
8
|
+
Version = "0.3.10"
|
9
9
|
Specification = Gem::Specification.new do |s|
|
10
10
|
s.name = Project::Name
|
11
11
|
s.summary = "A nifty wrapper command for Subversion's command-line svn client"
|
data/bin/_subwrap_post_install
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
require 'rubygems'
|
3
4
|
gem 'quality_extensions'
|
4
5
|
require 'quality_extensions/kernel/windows_platform'
|
5
6
|
|
@@ -15,11 +16,18 @@ if windows_platform?
|
|
15
16
|
cp 'c:/ruby/bin/subwrap.cmd', 'c:/ruby/bin/svn.cmd'
|
16
17
|
#puts Gem.cache.search('subwrap').sort_by { |g| g.version.version }.last.full_gem_path
|
17
18
|
else
|
19
|
+
gemdir = `gem env gemdir`.chomp
|
20
|
+
path_to_add = "`ls -dt --color=never #{gemdir}/gems/subwrap* | head -n1`/bin"
|
21
|
+
puts "Adding #{path_to_add} to your path..."
|
22
|
+
path_command = "export PATH=#{path_to_add}:$PATH"
|
23
|
+
system "grep gems/subwrap ~/.bash_profile || " +
|
24
|
+
"echo '#{path_command}' >> ~/.bash_profile"
|
25
|
+
puts
|
26
|
+
|
27
|
+
puts 'Making the svn binary executable (you probably need to run this as sudo to do this)...'
|
18
28
|
bin_dir = File.expand_path(File.dirname(__FILE__))
|
19
29
|
chmod 0755, Dir["#{bin_dir}/*"]
|
30
|
+
puts 'Done'
|
20
31
|
|
21
|
-
path_command = "export PATH=`ls -dt --color=never /usr/lib/ruby/gems/1.8/gems/subwrap* | head -n1`/bin:$PATH"
|
22
|
-
system "grep gems/subwrap ~/.bash_profile || " +
|
23
|
-
"echo '#{path_command}' >> ~/.bash_profile"
|
24
32
|
end
|
25
33
|
|
metadata
CHANGED