ro 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ro.rb +1 -1
- data/lib/ro/git.rb +5 -2
- data/ro.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzcxYTJlZmMwOGJlNzZkNjc5MWIwMmNkMDc3NWRmNmQ0YzA5ZWEwNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjBkN2E5MjJmYmVhNTVmYjQ3ZmFiNjg1MDUwMDc4NTY1ODBiZWNmZg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGEwZmJlZDM0Mjc2MmRjMDk3Njc0MmQ2ZDEyMzY3NDdjMjM1YmJmZjRiMjlh
|
10
|
+
OWFkMGUwZGM1MmYxNDQ5ZGQ4Y2Q4Yjg4M2JkZjk1ZWQyOTgzY2JlMzIxZjI3
|
11
|
+
ZjI5OTI5YzBjMzU1Y2ZhOGU4MjZlMzdlYzUzYjQ4MGE1ZGJmZjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTlmNmU5N2JlZjc5OTAyZmY2YmQ4ODRlNzQxNWU2ZGEzNWVhZWMzZDE0NmVi
|
14
|
+
NDNhZGQ3ZjAzOTBkNDY5NTg5NmQ5YmUwMTFkMThlMDM0ZTBiNjIwZmY5MzMx
|
15
|
+
ZWZlNzVmMjViYTYzOGU5MzA3MmUzY2IzY2VlZjM0NzNlZjJkNzk=
|
data/lib/ro.rb
CHANGED
data/lib/ro/git.rb
CHANGED
@@ -23,6 +23,7 @@ module Ro
|
|
23
23
|
|
24
24
|
user = options[:user] || ENV['USER'] || 'ro'
|
25
25
|
msg = options[:message] || "#{ user } edits on #{ File.basename(@root).inspect }"
|
26
|
+
add = options[:add]
|
26
27
|
|
27
28
|
patch = nil
|
28
29
|
|
@@ -67,9 +68,11 @@ module Ro
|
|
67
68
|
#
|
68
69
|
block.call
|
69
70
|
|
70
|
-
# add all changes - additions, deletions, or modifications
|
71
|
+
# add all changes - additions, deletions, or modifications - if :add => true was specified
|
71
72
|
#
|
72
|
-
|
73
|
+
if add
|
74
|
+
spawn("git add . --all", :raise => true)
|
75
|
+
end
|
73
76
|
|
74
77
|
# commit if anything changed
|
75
78
|
#
|
data/ro.gemspec
CHANGED