dev 2.0.109 → 2.0.110

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/commands/add.rb +8 -13
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd6268b7d821b25f01a279fba1df424deda2f92c
4
- data.tar.gz: bd7eabb4fce9cc3b108b544c3725131535509293
3
+ metadata.gz: 1c5eca7b3b8318924572ebdac06201227e92bbe4
4
+ data.tar.gz: b977de466330e9aabfee51261ef72b7ced399abb
5
5
  SHA512:
6
- metadata.gz: 22aaf7fbf24b051876b561ac3a3cc5eccb11cec949e3b3e10fee9288e069f71ca0ce0e4736860c84a159ba217956493e8f952dd92b6c645be6898ac898b8c57c
7
- data.tar.gz: 21ff580b7d288e6688ff3b2abd0fc1c370f6122ec971c7c8b4753e75628636ffbe74f7d359e63d13ba5f3df84197474efc6ba8157057ce295926fcb1d0bdc8d1
6
+ metadata.gz: ee686790277bf6acce4aa2f92c53eb0c02262e9d23e20afa43644c2d0e326d250ec105e4d311bb08fbff9ead437bcbec44d680af676b6cffea58410d2998b1f0
7
+ data.tar.gz: c85da8ae2d4f35d72b64c06fa80b87bb0aa3b7354e65642ff4635519c6b5f6ba9112769150bb9deadcee8bb5543e3a2f3d047967d515409fb054624e1ff3f877
data/lib/commands/add.rb CHANGED
@@ -6,20 +6,15 @@ class Add < Array
6
6
  if(defined?(SOURCE))
7
7
  if(File.exists?('.svn'))
8
8
  SOURCE.each{|f|
9
-
10
- status=Command.output("svn status #{f}")
11
- if(status.length==0 || status.include?('was not found'))
12
- #if( status.include?('?') ||
13
- # status.include?('was not found') ||
14
- # Command.exit_code("svn status #{f}") != 0 )
15
- puts "svn add #{f} --parents"
16
- add "svn add #{f} --parents"
17
- else
18
- puts "#{status}"
9
+ if(File.exists?(f))
10
+ status=Command.output("svn status #{f}")
11
+ if(status.length==0 || status.include?('was not found'))
12
+ puts "svn add #{f} --parents"
13
+ add "svn add #{f} --parents"
14
+ else
15
+ puts "#{status}"
16
+ end
19
17
  end
20
- #add "svn add #{f} --parents" if Command.output("svn status #{f}").include?('?')
21
- #add "svn add #{f} --parents" if Command.output("svn status #{f}").include?('was not found')
22
- #add "svn add #{f} --parents" if Command.exit_code("svn status #{f}") != 0
23
18
  }
24
19
  end
25
20
  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.0.109
4
+ version: 2.0.110
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow