highline 1.7.8 → 1.7.10

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: 43fdbf38f854f17b3b9f288592f25e655797102f
4
- data.tar.gz: e48e95dea0924528f717586996c71710f7d1c32b
3
+ metadata.gz: 6de473a3d81859ef33fbaae779ea5d201215bfcb
4
+ data.tar.gz: 18d772cb47ed0d65627f782044a1f01e9c6baa9e
5
5
  SHA512:
6
- metadata.gz: ceefae17b4b0f5dc14a3f2c3962513ba7f60b2c69394521985c5f511826d5489b074bd327b51f6a04d3febfa1e7210f33562532b5e81e5623e361ab4fbe61c8a
7
- data.tar.gz: 6e62ef0f4382ec92f5ebc5177ccff83aea0d3ff7935402fae11212bae95f6b30aebbed898d001ca99523bda04cfb61c452bdc552c212446e470182f6ef52c6df
6
+ metadata.gz: 10d9975025b395161bb73cae4f35e2047d4b935d1906ac91f306907100b6f13fdda740f6fc822de076e1fc08143cd64cd2f08fdcbe7ebece11d0b218945dba0a
7
+ data.tar.gz: 17600d300c546a50083e664ba0f76fda1b0e872b3e5409c3a53929dfdd13231a9eaa923270b83a3e98c8b2ce250c8d6cb1cca6c85b56169640f324debf62d755
@@ -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.10 / 2017-11-23
6
+ * Add gemspec to Gemfile. Address #223. (@abinoam)
7
+
8
+ ### 1.7.9 / 2017-05-08
9
+ * Fix frozen string issue on HighLine::Simulate. (Ivan Giuliani (@ivgiuliani), PR #210)
10
+
5
11
  ### 1.7.8 / 2015-10-09
6
12
  * Fix some issues when paginating. (Nick Carboni (@carbonin) and Abinoam P. Marques Jr. (@abinoam), #168, PRs #169 #170)
7
13
 
data/Gemfile CHANGED
@@ -1,5 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
+ gemspec
4
+
3
5
  gem "rake", :require => false
4
6
  gem "rdoc", :require => false
5
7
 
@@ -23,7 +23,7 @@ class HighLine
23
23
 
24
24
  # Simulate StringIO#getbyte by shifting a single character off of the next line of the script
25
25
  def getbyte
26
- line = gets
26
+ line = gets.dup
27
27
  if line.length > 0
28
28
  char = line.slice! 0
29
29
  @strings.unshift line
@@ -1,4 +1,4 @@
1
1
  class HighLine
2
2
  # The version of the installed library.
3
- VERSION = "1.7.8".freeze
3
+ VERSION = "1.7.10".freeze
4
4
  end
@@ -20,4 +20,14 @@ class SimulatorTest < Test::Unit::TestCase
20
20
  assert_equal '18', age
21
21
  end
22
22
  end
23
+
24
+ def test_simulate_with_echo_and_frozen_strings
25
+ HighLine::Simulate.with('the password'.freeze) do
26
+ password = ask('What is your password?') do |q|
27
+ q.echo = '*'
28
+ end
29
+
30
+ assert_equal 'the password', password
31
+ end
32
+ end
23
33
  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.8
4
+ version: 1.7.10
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-10-09 00:00:00.000000000 Z
11
+ date: 2017-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_statistics
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project: highline
117
- rubygems_version: 2.4.5.1
117
+ rubygems_version: 2.6.14
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: HighLine is a high-level command-line IO library.