dev 2.1.29 → 2.1.30

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/tasks/add.rb +21 -15
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 778c2b65dd9b66d0fd6bc73e1acf3b56a1618021
4
- data.tar.gz: e9b111ea7b8943302c744241a4d4cab0655aada7
3
+ metadata.gz: 1fcd2988db575263e93c37190eb58babe302c8d2
4
+ data.tar.gz: 45ec11c713857ed935ee0bf4f8d4c55009216343
5
5
  SHA512:
6
- metadata.gz: cddb3fa8694e5f74b94a7f73c39d6132f3ddf265fe095cce7ed8d64c1d62085a4eec8ff324aeaa251d965a53384f413b8a17e7e1b89ac6d5e0221c5e54b028c9
7
- data.tar.gz: 0ea1b44a5f809013d868344efcf5c90d5a82787feaeb18c15b55848da66b82e76344e0e1716d775f1d8b1c75efbe438723c19375513d81fc98dc18f8b78b6175
6
+ metadata.gz: 7f1913bd2e8de6b2149a9dfd562ae794f7517467bd0b6a68fd3f7f3d67e9b59bb01bac03f5d5c2f26acc54d9de6c86a095ec9db7184bc5466df2f513c080b611
7
+ data.tar.gz: ce7da1943ac91c5315c30ab80149236cf17d6180075021aeee93fcee4f57a0dae76ae7ff90f1512694053ab2fe89a40d4b745b783152b8865e58bd45b1b0c5a9
data/lib/tasks/add.rb CHANGED
@@ -17,21 +17,27 @@ class Add < Array
17
17
  #---
18
18
  SOURCE.each{|f|
19
19
  if(File.exists?(f) && File.file?(f) && !list_output.include?(f))
20
- if(f.include?(' '))
21
- status=Command.output("svn status \"#{f}\"")
22
- error=Command.error("svn status \"#{f}\"")
23
- else
24
- status=Command.output("svn status #{f}")
25
- error=Command.error("svn status #{f}")
26
- end
27
- if(status.include?('?') || status.include?('was not found') || error.include?('was not found'))
28
- if(f.include?(' '))
29
- add_quiet "svn add \"#{f}\" --parents"
30
- else
31
- add_quiet "svn add #{f} --parents"
32
- end
33
- end
34
- end
20
+ if(m = status_output.match(/^(?<action>.)\s+(?<file>#{f})$/i))
21
+ if(m[:file] == f && m[:action] == '?')
22
+ add_quiet "svn add \"#{f}\" --parents"
23
+ end
24
+ end
25
+ end
26
+ # if(f.include?(' '))
27
+ # status=Command.output("svn status \"#{f}\"")
28
+ # error=Command.error("svn status \"#{f}\"")
29
+ # else
30
+ # status=Command.output("svn status #{f}")
31
+ # error=Command.error("svn status #{f}")
32
+ # end
33
+ # if(status.include?('?') || status.include?('was not found') || error.include?('was not found'))
34
+ # if(f.include?(' '))
35
+ # add_quiet "svn add \"#{f}\" --parents"
36
+ # else
37
+ # add_quiet "svn add #{f} --parents"
38
+ # end
39
+ # end
40
+ #end
35
41
  }
36
42
  end
37
43
  if(File.exists?('.git'))
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.1.29
4
+ version: 2.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow