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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37dde5ac525eb3b802d3fa5b03b08a2e7765ae22
4
- data.tar.gz: 500f725cea23eb47729ec7ea5dd498057601e83a
3
+ metadata.gz: a331844ddac8b91cee51864cf1aec0d8b3272e48
4
+ data.tar.gz: 39cacc944953ef4978aaa5f37aa58399ffc79105
5
5
  SHA512:
6
- metadata.gz: b1b9ae5573ebbf80e2c82d8d1645732c905f8b558558ed278da948c569208fb113b24140c5661d85e02dcc1babaa9ab6b953ca352ba79c6f6f549e120f5f53c2
7
- data.tar.gz: 238e6bfded56e3d2f42d22e1d95464ced6dd731b991eda462572c8e33edd0ca26f27f0449e97f13cd057eb1c1822980c919feba4d939e1833dfcb4bf68300089
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
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Si
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
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.1
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-30 00:00:00.000000000 Z
11
+ date: 2013-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler