git-si 0.2.1 → 0.2.2
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 +4 -4
- data/lib/git/si.rb +4 -2
- data/lib/git/si/version.rb +1 -1
- 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: a331844ddac8b91cee51864cf1aec0d8b3272e48
|
4
|
+
data.tar.gz: 39cacc944953ef4978aaa5f37aa58399ffc79105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71fb13f703ddf31985ffcfb89c3be05b9eaf645dcdaddba9a19c43475de2b6842c3642caaa9e1bfc004b3cb2d6a6170ba08f8732676f9f7244b42c3009bcba4a
|
7
|
+
data.tar.gz: 3b42aa61cb749d92fac743f5b879c78dd007e1e685fd04128b0cb074a65bb030820009205311cba507531a6f2979b5a03c165c7243817309122efbcc20ae25f9
|
data/lib/git/si.rb
CHANGED
@@ -337,10 +337,12 @@ continue, it's wise to reset the master branch afterward."
|
|
337
337
|
def using_stderr(&block)
|
338
338
|
old_stdout = $stdout
|
339
339
|
$stdout = $stderr
|
340
|
+
@silent = true
|
340
341
|
begin
|
341
342
|
yield
|
342
343
|
ensure
|
343
344
|
$stdout = old_stdout
|
345
|
+
@silent = false
|
344
346
|
end
|
345
347
|
end
|
346
348
|
|
@@ -357,10 +359,10 @@ continue, it's wise to reset the master branch afterward."
|
|
357
359
|
end
|
358
360
|
|
359
361
|
def run_command(command, options={})
|
360
|
-
if STDOUT.tty?
|
362
|
+
if STDOUT.tty? and not @silent
|
361
363
|
run(command, options)
|
362
364
|
else
|
363
|
-
run(command, options.update(verbose: false))
|
365
|
+
run(command, options.update(verbose: false, capture: true))
|
364
366
|
end
|
365
367
|
raise ShellError.new("There was an error while trying to run the command: #{command}. Look above for any errors.") unless $?.success?
|
366
368
|
end
|
data/lib/git/si/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-si
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Payton Swick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|