dev 2.0.62 → 2.0.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dev_svn.rb +8 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ff484dde9d17451f5e8c340fe7c988caa2b10c3
4
- data.tar.gz: 59161e94aa5b5c90c17cd5cf9a95c1fe956cf303
3
+ metadata.gz: e2bc1b5f617805e2e8ea6a533c5933959b041839
4
+ data.tar.gz: d13d9f7c761e10f868a9a5e9f94ae82be52835d4
5
5
  SHA512:
6
- metadata.gz: d1e1a847bd9ee9e6edf6c71d883e01beac537b67a1517864cd00b9fbfc8ea436164ccb86341081dc9edde0875112ad2f49145b3214b6d5dfaaafe31952faa243
7
- data.tar.gz: 1bdaa551ed3add8af54755664178c57e4c5f57aed495bcb3f81f4877e0c6645132ab1e60a1241502e7ddb25fd6a6d9e3b1324fb4cad33ba3c257db46fb0d6f9f
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.62
4
+ version: 2.0.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow