highline 1.7.3 → 1.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +6 -0
- data/lib/highline/system_extensions.rb +5 -2
- data/lib/highline/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: 5d427604bbe3d36df03394ae00974d1d67cef159
|
4
|
+
data.tar.gz: 014e702bd3c39947099c03783d6378b47cb83195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dc2f74dcb23d4920633116eda38d8b4d7ced4e364d09955e516df1e42d7a37f6f1c9ea4a850f9561800a9a02d2099d6305a9f1487b54284c4c46f10077913ef
|
7
|
+
data.tar.gz: 5d71bc709acda2d0765ddb5b56d3f20241c688825cd3c68e97ef56cfd0c6da05f0b8dea6fc6f8b4e3a423c914f7df32291c3d34d8f8d189cb8d84dce15a7127b
|
data/Changelog.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
Below is a complete listing of changes for each revision of HighLine.
|
4
4
|
|
5
|
+
### 1.7.5 / 2015-09-14
|
6
|
+
* Support jruby9k for system extensions (Michael (@mmmries), PR #153)
|
7
|
+
|
8
|
+
### 1.7.4 / 2015-06-16
|
9
|
+
* Workaround on #55 for stty
|
10
|
+
|
5
11
|
### 1.7.3 / 2015-06-29
|
6
12
|
* Add HighLine::Simulator tests (Bala Paranj (@bparanj) and Abinoam Marques Jr. (@abinoam), #142, PR #143)
|
7
13
|
|
@@ -12,10 +12,12 @@ class HighLine
|
|
12
12
|
JRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
|
13
13
|
|
14
14
|
if JRUBY
|
15
|
+
JRUBY_OVER_17 = JRUBY_VERSION =~ /^1.7/ || JRUBY_VERSION =~ /^9/
|
16
|
+
|
15
17
|
def initialize_system_extensions
|
16
18
|
require 'java'
|
17
19
|
require 'readline'
|
18
|
-
if
|
20
|
+
if JRUBY_OVER_17
|
19
21
|
java_import 'jline.console.ConsoleReader'
|
20
22
|
|
21
23
|
input = @input && @input.to_inputstream
|
@@ -160,7 +162,7 @@ class HighLine
|
|
160
162
|
CHARACTER_MODE = "jline" # For Debugging purposes only.
|
161
163
|
|
162
164
|
def terminal_size
|
163
|
-
if
|
165
|
+
if JRUBY_OVER_17
|
164
166
|
[ @java_terminal.get_width, @java_terminal.get_height ]
|
165
167
|
else
|
166
168
|
[ @java_terminal.getTerminalWidth, @java_terminal.getTerminalHeight ]
|
@@ -213,6 +215,7 @@ class HighLine
|
|
213
215
|
|
214
216
|
def restore_mode
|
215
217
|
system "stty #{@state}"
|
218
|
+
print "\r"
|
216
219
|
end
|
217
220
|
end
|
218
221
|
end
|
data/lib/highline/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: highline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Edward Gray II
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: code_statistics
|