dev 2.0.135 → 2.0.136
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/add.rb +7 -5
- data/lib/commands.rb +2 -1
- 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: 910a174dca7b9774dfc45a2cb9c0d117935dd248
|
4
|
+
data.tar.gz: 763d497a599cbfcd85f299076a5bc50163b425f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f261ef09add35237b94e6116750ca6d0e0b7cc18f423b9f587ee018c8d8d60cf1d949244945e9c9b391699ff6c64417c810c6def7e2348871120a6e3b8cf5d34
|
7
|
+
data.tar.gz: e1cde789230e82cf2ec330c6099bbe4f237d93f254169dfcc9a60ff84fc1e166ff991a035f885bc2c8fdef33af46907dd66d6c639fb9ed157099a837fb25e1af
|
data/lib/commands/add.rb
CHANGED
@@ -21,14 +21,16 @@ class Add < Array
|
|
21
21
|
end
|
22
22
|
if(File.exists?('.git'))
|
23
23
|
SOURCE.each{|f|
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
if(File.exists?(f) && File.file?(f))
|
25
|
+
status=`git status #{f} --short`
|
26
|
+
#if status.include?('untracked') || status.include?('modified:')
|
27
|
+
if status.include?('??') || status.include?(' M ')
|
27
28
|
puts "git add #{f} -v"
|
28
29
|
add "git add #{f} -v"
|
29
|
-
|
30
|
+
else
|
30
31
|
#puts status if status.strip.length > 0
|
31
|
-
|
32
|
+
end
|
33
|
+
end
|
32
34
|
}
|
33
35
|
end
|
34
36
|
end
|
data/lib/commands.rb
CHANGED
@@ -12,10 +12,11 @@ SOURCE.include('**/*.{c,h}')
|
|
12
12
|
SOURCE.include('**/*.{cpp,hpp}')
|
13
13
|
SOURCE.include('**/*.{swift}')
|
14
14
|
SOURCE.include('**/*.{xcodeproj}')
|
15
|
-
SOURCE.include('**/*.{csproj,sln,nuspec,config}')
|
15
|
+
SOURCE.include('**/*.{csproj,sln,nuspec,config,snk}')
|
16
16
|
SOURCE.exclude('**/obj/**/*.*')
|
17
17
|
SOURCE.exclude('**/bin/**/*.*')
|
18
18
|
SOURCE.exclude('commit.message')
|
19
|
+
SOURCE.exclude('rakefile.default')
|
19
20
|
|
20
21
|
Dir.glob("#{File.dirname(__FILE__)}/commands/*.rb").each{|rb|
|
21
22
|
require(rb)
|