ansi-select 0.3.3 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea2d52fba58aa395310efe0a495ee112003322b7
4
- data.tar.gz: 0290503dc6e1e24a016efb47c6c4d671487918ad
3
+ metadata.gz: aa5c6589d8a9af92e7710bdc7fbcd713c244a215
4
+ data.tar.gz: d849fa73a5f9b75c6486c0e00d709b0c40f01a2a
5
5
  SHA512:
6
- metadata.gz: e26e3d96e525fd1a4ca7cfa51fc26c1c59c81d63ea85f2c5bed0a1afe941c50a921d7473ca42899677db7b1d47e7feedd8a42822c61a50cad037426c21120a94
7
- data.tar.gz: 50324a46f2997a7d66c47710f4ece0a3b41acbf61ef98e37ff837955a91c40bd45bdeae8340c08f22f100bb1fb107943b0fe3deb843dfb9476ea8e377958e399
6
+ metadata.gz: 9281add89f0ae343b229a86b3207dc7c9a98a05ed9e81ca328ae91fb5d60512b533faace2097b90f1640d263fc7efa8f38dd376de7de6595ed9379fe7a84a4ad
7
+ data.tar.gz: 90343e5cf89358b709d47b445b4baeb5552ffeeff0273f384d9ede868222130bee162203666528b9c799ff4fc5684f37c77ac1dcf9fc0a97a11e86e33aadd559
@@ -1,3 +1,7 @@
1
+ ### 0.3.4
2
+
3
+ * Always use `/bin/stty` instead of the one from `PATH`.
4
+
1
5
  ### 0.3.3
2
6
 
3
7
  * Fix the issue when it couldn't process array formats which include `nil`s.
@@ -1,5 +1,5 @@
1
1
  module Ansi
2
2
  class Selector
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
@@ -1,13 +1,13 @@
1
1
  #!/bin/bash
2
2
  # based on a script from http://invisible-island.net/xterm/xterm.faq.html
3
3
  exec < /dev/tty
4
- oldstty=$(stty -g)
5
- stty raw -echo min 0
4
+ oldstty=$(/bin/stty -g)
5
+ /bin/stty raw -echo min 0
6
6
  # on my system, the following line can be replaced by the line below it
7
7
  echo -en "\033[6n" > /dev/tty
8
8
  # tput u7 > /dev/tty # when TERM=xterm (and relatives)
9
9
  IFS=';' read -r -d R -a pos
10
- stty $oldstty
10
+ /bin/stty $oldstty
11
11
  # change from one-based to zero based so they work with: tput cup $row $col
12
12
  row=$((${pos[0]:2} - 1)) # strip off the esc-[
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansi-select
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volodymyr Shatskyi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-23 00:00:00.000000000 Z
11
+ date: 2015-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler