dev 2.0.62 → 2.0.63
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dev_svn.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2bc1b5f617805e2e8ea6a533c5933959b041839
|
4
|
+
data.tar.gz: d13d9f7c761e10f868a9a5e9f94ae82be52835d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5e7a13ad5f0e1d94b38d7433ab489a882c23cc864de2503b5fb17496470c946f7f410f7e8745f931adb8463ffc3796135f763d40b9567d750f0b816f75fb179
|
7
|
+
data.tar.gz: f83d4694ee55b0577b1364f472dcb7093d744ee0fc5abcb699086e3693ca748f3fd3adf8c6707de41cc4e4f7855605e55f9a5e392d49df5310901f893d198bb6
|
data/lib/dev_svn.rb
CHANGED
@@ -70,6 +70,14 @@ class Svn
|
|
70
70
|
# source_glob defaults to '**/*' to publish all files in the source_dir
|
71
71
|
def self.publish destination, source_dir, source_glob='**/*'
|
72
72
|
|
73
|
+
# Support for legacy argument order
|
74
|
+
if(source_dir.include?('svn:') || source_dir.include?('http:') || source_dir.include?('https:'))
|
75
|
+
# swap arguments
|
76
|
+
tmp=source_dir
|
77
|
+
source_dir=destination
|
78
|
+
destination=tmp
|
79
|
+
end
|
80
|
+
|
73
81
|
output = "\n"
|
74
82
|
if(`svn info #{destination} 2>&1`.include?('Revision:'))
|
75
83
|
#raise "Svn.publish: destination #{destination} already exists"
|