pause_output 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83c19923ca0b37435ae429d19333cee7ecf30e5a
4
- data.tar.gz: f86703967f428ca682930f17988ac0464f4fe07b
3
+ metadata.gz: 5342f9d87af606805365df2af5c446efca66ba75
4
+ data.tar.gz: 6b1f9b15f87fd1c025a74c72e152a9abe3db487a
5
5
  SHA512:
6
- metadata.gz: cfa242aa5ca571b682089ca88522e6262cfc7bd11d48d545f4a6ec475d74ee8516c6cd7fab1868acabdca8f54443b5bd0d1fc4539eec1bf3c4eca8a914b854e1
7
- data.tar.gz: 65a06d93e70e33d4ddb032225608ed9f6162c75c0fc4edcd0ea07862690d6b202e849d14711540b4a17fd324005969d11281bfc7a979fb64384365752844c20a
6
+ metadata.gz: daf91ec8df41fc794ef1771f9bb144ed9edd1c1e9bbba18f8ac7c714c836c494144b825bf500346566af525ec4f2dc091aab5088fbdb6f50555336c2fdba907d
7
+ data.tar.gz: 16c3baf9839ed3cf8538a613a16cd4ea34d10cae13fd9ecf599f0dc5fb60faab2b24f14a1d64ec7d5224ce8e6261cb8dbfb5a75222413768be17834d89beda8c
@@ -8,12 +8,12 @@ class Object
8
8
  # Execute a block with page paused output.
9
9
  def more(options={})
10
10
  saved = $stdout
11
+ outer = $stdout.equal?($pause_output_out)
11
12
 
12
13
  disabled = options[:page_pause]
13
14
  disabled = disabled.downcase if disabled.is_a?(String)
14
15
 
15
16
  unless [false, 'false', 'off', 'no'].include?(disabled)
16
- outer = $stdout.equal?($pause_output_out)
17
17
  $stdout = ::PauseOutput::OutputPager.new(options) if outer
18
18
  end
19
19
 
@@ -40,11 +40,11 @@ module PauseOutput
40
40
  @chars += len
41
41
  return
42
42
  else
43
- tilt = chars_per_line - @chars
44
- $pause_output_out.write(str[0, tilt])
43
+ tipping_point = chars_per_line - @chars
44
+ $pause_output_out.write(str[0, tipping_point])
45
45
  count_lines
46
46
 
47
- str = (str[tilt..-1])
47
+ str = (str[tipping_point..-1])
48
48
  end
49
49
  end
50
50
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Pause console output so that it can be read before scrolling off the screen.
4
4
  module PauseOutput
5
- VERSION = "0.1.0".freeze
5
+ VERSION = "0.1.1".freeze
6
6
 
7
7
  DESCRIPTION = "pause_output: A simple facility to pause output on the console terminal.".freeze
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pause_output
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PeterCamilleri
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-15 00:00:00.000000000 Z
11
+ date: 2019-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler