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 +4 -4
- data/lib/apps/svn.rb +17 -4
- data/lib/base/environment.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 841785b402f131ebe6ed1ab01367c48c65855dc4
|
4
|
+
data.tar.gz: 9477db61042859888e44d429fface18b3800ebd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/base/environment.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|