dev 2.1.28 → 2.1.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/base/environment.rb +4 -0
- data/lib/tasks/add.rb +18 -13
- 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: 778c2b65dd9b66d0fd6bc73e1acf3b56a1618021
|
4
|
+
data.tar.gz: e9b111ea7b8943302c744241a4d4cab0655aada7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cddb3fa8694e5f74b94a7f73c39d6132f3ddf265fe095cce7ed8d64c1d62085a4eec8ff324aeaa251d965a53384f413b8a17e7e1b89ac6d5e0221c5e54b028c9
|
7
|
+
data.tar.gz: 0ea1b44a5f809013d868344efcf5c90d5a82787feaeb18c15b55848da66b82e76344e0e1716d775f1d8b1c75efbe438723c19375513d81fc98dc18f8b78b6175
|
data/lib/base/environment.rb
CHANGED
data/lib/tasks/add.rb
CHANGED
@@ -10,21 +10,26 @@ class Add < Array
|
|
10
10
|
else
|
11
11
|
if(defined?(SOURCE))
|
12
12
|
if(File.exists?('.svn'))
|
13
|
+
#---
|
14
|
+
list_output = %x[svn list -R]
|
15
|
+
status_output = %x[svn status]
|
16
|
+
status_output = status_output.gsub(/\\/,"/")
|
17
|
+
#---
|
13
18
|
SOURCE.each{|f|
|
14
|
-
if(File.exists?(f) && File.file?(f))
|
19
|
+
if(File.exists?(f) && File.file?(f) && !list_output.include?(f))
|
15
20
|
if(f.include?(' '))
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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?(' '))
|
24
29
|
add_quiet "svn add \"#{f}\" --parents"
|
25
|
-
|
30
|
+
else
|
26
31
|
add_quiet "svn add #{f} --parents"
|
27
|
-
|
32
|
+
end
|
28
33
|
end
|
29
34
|
end
|
30
35
|
}
|
@@ -34,9 +39,9 @@ class Add < Array
|
|
34
39
|
if(File.exists?(f) && File.file?(f))
|
35
40
|
status=Command.output("git status #{f} --short")
|
36
41
|
if status.include?('??') || status.include?(' M ')
|
37
|
-
|
42
|
+
add_quiet "git add #{f} -v"
|
38
43
|
end
|
39
|
-
|
44
|
+
end
|
40
45
|
}
|
41
46
|
end
|
42
47
|
end
|
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.1.
|
4
|
+
version: 2.1.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|