mini_readline 0.5.1 → 0.5.2

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: ea73fa12d40056083fdc2ffe14834b6489aaf13b
4
- data.tar.gz: fc7eeb12c81b535b75425ed0ababdc0338acc6ec
3
+ metadata.gz: 4c4b59c3ed5eef086cdc8d84721c915aff9245a9
4
+ data.tar.gz: 59cd9ed8d1551f35eff77d4741c0d929840adf29
5
5
  SHA512:
6
- metadata.gz: a95b6e3e7651f35462c708d6ef366a59bb6e4956fbb97b073087613d9e4f4be1f08b9505737e96b3b5e72af6a220fcd4a1fe7159db08bd4e143ad90a3d2ceaf9
7
- data.tar.gz: 332c84a05c1dd2ef3030dfe5be0864dab0e8b5b1b1703451526df120dc206daa0091206986416c229e34606231a9f7a049ba3c76cb92533e1a6b8bdefb5c0daf
6
+ metadata.gz: 01bbf868f58fd910b4b98bbc6a07847250ebb45ffa03aed55cb7e044d79d1a0844350f8d942850d56872e42fc8e14d8889e6252103b610b18ce9a2c8f0304a9c
7
+ data.tar.gz: 80c1d3a44427f21da3f44b70253af0fa62856aad01aa63a23b50fb2090f5f108e9c36b2d11e4c8483b215d791281b658112d3c1d09c770e353c93286bd65cc16
@@ -60,8 +60,8 @@ module MiniReadline
60
60
  #Interact with the user
61
61
  def edit_process
62
62
  result = edit_loop
63
- @history.append_history(result.chomp)
64
- result
63
+ @history.append_history(result)
64
+ result + "\n"
65
65
  end
66
66
 
67
67
  #The line editor processing loop.
@@ -8,7 +8,6 @@ module MiniReadline
8
8
 
9
9
  #The insert_text command. We are DONE!
10
10
  def enter(_keyboard_args)
11
- @edit_buffer << "\n"
12
11
  @working = false
13
12
  end
14
13
  end
@@ -45,7 +45,6 @@ module MiniReadline
45
45
 
46
46
  #Append a string to the history buffer if enabled.
47
47
  def append_history(str)
48
- str = str.chomp
49
48
  return if @options[:no_blanks] && str.strip.empty?
50
49
  history.delete(str) if @options[:no_dups]
51
50
 
@@ -1,4 +1,4 @@
1
1
  module MiniReadline
2
2
  #The current version of the mini_readline gem.
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_readline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest