dev_svn 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. data/lib/svn.rb +6 -6
  2. metadata +1 -1
data/lib/svn.rb CHANGED
@@ -37,14 +37,14 @@ class Svn
37
37
  Dir.mktmpdir{|dir|
38
38
 
39
39
  # checkout new subversion directory
40
- output = output + "\nsvn checkout #{destination} to_publish_checkout"
41
- if(!`svn checkout #{destination} to_publish_checkout`.include?('Checked out'))
42
- raise "failure 'svn checkout #{destination} to_publish_checkout'"
40
+ output = output + "\nsvn checkout #{destination} #{dir}/to_publish_checkout"
41
+ if(!`svn checkout #{destination} #{dir}/to_publish_checkout`.include?('Checked out'))
42
+ raise "failure 'svn checkout #{destination} #{dir}/to_publish_checkout'"
43
43
  end
44
44
 
45
45
  # copy files into the checkout out subversion directory to_publish
46
- raise "to_publish_checkout does not exist" if(!File.exists?('to_publish_checkout'))
47
- Dir.chdir('to_publish_checkout') do
46
+ raise "#{dir}/to_publish_checkout does not exist" if(!File.exists?("#{dir}/to_publish_checkout"))
47
+ Dir.chdir("#{dir}/to_publish_checkout") do
48
48
  File.open('add.txt','w'){|add_file|
49
49
 
50
50
  files.each{|f|
@@ -66,7 +66,7 @@ class Svn
66
66
  end
67
67
 
68
68
  #begin
69
- #FileUtils.rm_r 'to_publish_checkout'
69
+ FileUtils.rm_r "#{dir}/to_publish_checkout"
70
70
  output
71
71
  }
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_svn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: