ro 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/ro.rb +1 -1
- data/lib/ro/git.rb +3 -3
- 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
|
+
NTI4MGE3ZmJiMTNiMmQ1ODY3ZmQ1MGVjZDNkOGNkNzE5MTg1ZmE5NA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZjZkMDlhOTIwOWEyMDcwYzQwZjUwYjc5MDI0ZTZiMzk4ZDg1NjVkMg==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NTdmYTk2ZGU5ZTc5NTU5NWJmMjM2ZThiYjdjZjQ4Y2MzZDRmNDUzZDgyYmUw
|
|
10
|
+
YTFhMTlkNWZlZTIwZmFjMzcxMmUxNmYxOWY5ZWIwNDg2MTdjMzk0MmM4ZDlk
|
|
11
|
+
ODk2YTllYWU3NWZlNTgxOWFmMDhhMzc4MjBhZTYyMDA1MmMwOTI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZGFjMDliMjAxOWM0OGRlMzQ0ZjI4M2RlMWYyNGM0ZTIyNTdmYzMwYTgzZjRk
|
|
14
|
+
ODM0MTNmMWUxOTY2NTA4NDFiNDI4MDZhNjgyYjliNzYyMDRlMjM4ZGQzOWUx
|
|
15
|
+
YzUyMDg0NTJiMmU2MGUxOGJkZTcyOGE0ZDczY2NkNjkwMWVhOTI=
|
data/lib/ro.rb
CHANGED
data/lib/ro/git.rb
CHANGED
|
@@ -23,7 +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
|
+
add = options.has_key?(:add) ? options[:add] : true
|
|
27
27
|
|
|
28
28
|
patch = nil
|
|
29
29
|
|
|
@@ -68,7 +68,7 @@ module Ro
|
|
|
68
68
|
#
|
|
69
69
|
block.call
|
|
70
70
|
|
|
71
|
-
# add all changes - additions, deletions, or modifications -
|
|
71
|
+
# add all changes - additions, deletions, or modifications - unless :add => false was specified
|
|
72
72
|
#
|
|
73
73
|
if add
|
|
74
74
|
spawn("git add . --all", :raise => true)
|
|
@@ -77,7 +77,7 @@ module Ro
|
|
|
77
77
|
# commit if anything changed
|
|
78
78
|
#
|
|
79
79
|
changes_to_apply =
|
|
80
|
-
spawn("git commit -
|
|
80
|
+
spawn("git commit -m #{ msg.inspect }")
|
|
81
81
|
|
|
82
82
|
if changes_to_apply
|
|
83
83
|
# create the patch
|
data/ro.gemspec
CHANGED