highline 1.7.3 → 1.7.5

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: 3d4a9c838e40dcdf03c073ac0289cff66ffa2e1f
4
- data.tar.gz: 9dc114d82dd87b42b5c22538702adb0fdbbb7bfe
3
+ metadata.gz: 5d427604bbe3d36df03394ae00974d1d67cef159
4
+ data.tar.gz: 014e702bd3c39947099c03783d6378b47cb83195
5
5
  SHA512:
6
- metadata.gz: 72f9c49b3140bfeeee9ab62e5ed2d2b4e3dfeb03f2b74eac02ad1b72640e01f2bb4816b4533669b2274b2f93ac659782eca32ad28661a6bb173e9aa42e8427ee
7
- data.tar.gz: ace882a16b8693624c0894a3d88ad75945f00bf060b463ddf485b8697c9fa7f8649ea685eaeb739d2e5edef370805c80b4308a3bd66ae470938f3a2adea3b813
6
+ metadata.gz: 9dc2f74dcb23d4920633116eda38d8b4d7ced4e364d09955e516df1e42d7a37f6f1c9ea4a850f9561800a9a02d2099d6305a9f1487b54284c4c46f10077913ef
7
+ data.tar.gz: 5d71bc709acda2d0765ddb5b56d3f20241c688825cd3c68e97ef56cfd0c6da05f0b8dea6fc6f8b4e3a423c914f7df32291c3d34d8f8d189cb8d84dce15a7127b
@@ -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 JRUBY_VERSION =~ /^1.7/
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 JRUBY_VERSION =~ /^1.7/
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
@@ -1,4 +1,4 @@
1
1
  class HighLine
2
2
  # The version of the installed library.
3
- VERSION = "1.7.3".freeze
3
+ VERSION = "1.7.5".freeze
4
4
  end
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.3
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-08-01 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_statistics