dev 2.0.272 → 2.0.273

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4535dfbe4cd94433d4a46db91ba9526ef73d045
4
- data.tar.gz: 88fa79bc6338e803207b743924e9e1d35f269d3d
3
+ metadata.gz: 841785b402f131ebe6ed1ab01367c48c65855dc4
4
+ data.tar.gz: 9477db61042859888e44d429fface18b3800ebd5
5
5
  SHA512:
6
- metadata.gz: 556ef97828d9cff387d5df8838bdc35ca1b18395be1f166bd132b4bf7b004a8ab48fb247e2899b268de2c27be6c0066d4d9a6ccccecd051f677e76c9e6060dea
7
- data.tar.gz: e3ecb07870c8f4722c6d0e6e810304f4dbe21c71100f736434260216b08125be35fce8d3ce5ad45887981d614da0829a559d809fa8cc2330838a9f725373e4a2
6
+ metadata.gz: cec9385162f56de8185049d90f1125d0ea61414bf58acb551d536eb10d0f7ba27c096219161ce6b8bdcc27dd34f4e2c73525b027b14049af5e2ab95a040b9685
7
+ data.tar.gz: f0baadbeebaf8fc4e091c17cfb122b4df3fdc9677d322710a1dd57886267b7eaed7950f4184569ab645aa7dc902afa63b1b23a5ee35589b48f31993ac97c4850
data/lib/apps/svn.rb CHANGED
@@ -73,12 +73,20 @@ class Svn
73
73
 
74
74
  # Support for legacy argument order
75
75
  if(source_dir.include?('svn:') || source_dir.include?('http:') || source_dir.include?('https:'))
76
+ puts 'warning arguments are in legacy order' if Environment.default.debug?
76
77
  # swap arguments
77
78
  tmp=source_dir
78
79
  source_dir=destination
79
80
  destination=tmp
80
81
  end
81
82
 
83
+ if(!source_filelist.kind_of?(FileList))
84
+ puts 'converting files array into FileList' if Environment.default.debug?
85
+ list=FileList.new
86
+ source_filelist.each{|item|list.include(item)}
87
+ source_fileList=list
88
+ end
89
+
82
90
  output = "\n"
83
91
  if(`svn info #{destination} 2>&1`.include?('Revision:'))
84
92
  puts "Svn.publish: destination #{destination} already exists"
@@ -98,7 +106,12 @@ class Svn
98
106
  output = output + f + " "
99
107
  }
100
108
  pwd=Dir.pwd
101
- Dir.mktmpdir{|dir|
109
+
110
+ dir="#{Environment.default.tmp_dir}/svn_publish"
111
+ Dir.remove dir if File.exists? dir
112
+ FileUtils.mkdir dir
113
+ Dir.chdir(dir) do
114
+ #Dir.mktmpdir{|dir|
102
115
 
103
116
  # checkout new subversion directory
104
117
  output = output + "\nsvn checkout #{destination} #{dir}/to_publish_checkout"
@@ -113,7 +126,6 @@ class Svn
113
126
 
114
127
  files.each{|f|
115
128
  fdir=File.dirname(f)
116
-
117
129
  FileUtils.mkdir_p(fdir) if(fdir.length > 0 && !File.exists?(fdir))
118
130
  FileUtils.cp("#{source_dir}/#{f}","#{f}")
119
131
  add_file.puts f
@@ -131,9 +143,10 @@ class Svn
131
143
  end
132
144
 
133
145
  #begin
134
- Dir.remove "#{dir}/to_publish_checkout"
146
+ #Dir.remove "#{dir}/to_publish_checkout"
135
147
  output
136
- }
148
+ end
149
+ Dir.remove(dir)
137
150
  end
138
151
  end
139
152
  end
@@ -41,6 +41,12 @@ class Environment < Hash
41
41
  dir
42
42
  end
43
43
 
44
+ def tmp_dir
45
+ dir="#{root_dir}/tmp"
46
+ FileUtils.mkdir_p dir if !File.exists? dir
47
+ dir
48
+ end
49
+
44
50
  def make_dir
45
51
  dir="#{root_dir}/make"
46
52
  FileUtils.mkdir_p dir if !File.exists? dir
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.272
4
+ version: 2.0.273
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake