nvim 1.13.1 → 1.13.3

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
  SHA256:
3
- metadata.gz: 6e10763edb636c850c176e60d8d63d5d90e8a16dcf7eed0fc3a0831b095d4f71
4
- data.tar.gz: beaf13099284542eb9ad80af988f046ef9bf21b2153efc253fd674cdd274c268
3
+ metadata.gz: 2d1d244349388420fb4dab2da25a9aa801a9af8de8110754c6dd250321e5ef45
4
+ data.tar.gz: 786a2add94ef5b57069939e906be3a98b5643cb33c0000fa450ef485bf38cdfb
5
5
  SHA512:
6
- metadata.gz: f6493af152fffef06a515df8f66c2131bf27b91208bf6836ad8f980f1c4d42186a48f45241a52a4aabb84ea9190fbf7fc21b58a2c97af480b90a431a4355f314
7
- data.tar.gz: 827a1cb5920edd901ff52a027916e602d0d0ba9d9abf2ca90768047fa34e5ac3b2a3fa9b6449ef4be8d27afdf60773397f9cfa1a00866a2282ddb82d5325f3d9
6
+ metadata.gz: 55c822129d9b098431c940202014031c75f1fecad4b25b5e224c4b28b8a3e6be093a7d61c896dcdb8bbf702084e9cdf9211081dd1de52b5aa021ca7cf6d0d768
7
+ data.tar.gz: 9aa7c2b26696102dcb0689b050a327c83dcc52f0e7b0e5cf4d4261f01426d4eb80aab2876526491d2fee698ef415e80db00bd57d77d443e44466c3201dad0f9c
data/INFO.yaml CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
 
5
5
  nvim:
6
- version: "1.13.1"
6
+ version: "1.13.3"
7
7
  license: BSD-2-Clause+
8
8
  authors:
9
9
  - Bertram Scharpf
data/README.md CHANGED
@@ -303,6 +303,7 @@ values will be converted by `#to_s`.
303
303
  :rubydo $_ = nil if $_ =~ /^#/ # delete comment lines
304
304
  :rubydo $_ = $_.split # put each word on its own line
305
305
  :rubydo $_ = [$_]*3 if ~/knock/i # triple lines containing /knock/
306
+ :rubydo $_ = [$_, ""] # spread by empty lines
306
307
  ```
307
308
 
308
309
 
data/lib/neovim/client.rb CHANGED
@@ -165,7 +165,6 @@ module Neovim
165
165
  if not String === m or m.hash != h then
166
166
  r = result_strings m
167
167
  r.flatten!
168
- r.each { |l| l.chomp! }
169
168
  @client.buf_set_lines @buffer, @i-1, @i, true, r
170
169
  @inc = r.length
171
170
  @last += @inc-1
@@ -179,7 +178,7 @@ module Neovim
179
178
  case obj
180
179
  when Enumerable then obj.map { |l| result_strings l }
181
180
  when nil then []
182
- else obj.to_s.lines
181
+ else obj.to_s.scan /^.*$/
183
182
  end
184
183
  end
185
184
 
data/lib/neovim/info.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require "neovim/meta.rb"
2
2
  Neovim::INFO = Neovim::Meta.new "nvim",
3
- version: "1.13.1",
3
+ version: "1.13.3",
4
4
  license: "BSD-2-Clause+",
5
5
  authors: ["Bertram Scharpf"],
6
6
  email: "software@bertram-scharpf.de",
7
7
  summary: "Yet another Ruby client for Neovim",
8
8
  description: "A simple Ruby client for Neovim.\nClean code, minimal dependecies, no frills, no wokeness.",
9
9
  homepage: "https://github.com/BertramScharpf/ruby-nvim",
10
- commit: "b9f2c3f"
10
+ commit: "81a5b7a"
@@ -86,7 +86,12 @@ module Neovim
86
86
  if msg =~ /\A.*?:(\d+):\s*/ then
87
87
  line, msg = $1, $'
88
88
  else
89
- line = $@.first[ /:(\d+):in\b/, 1]
89
+ $@.each { |b|
90
+ if b =~ /:(\d+):in\b/ then
91
+ line = $1.to_i
92
+ break
93
+ end
94
+ }
90
95
  end
91
96
  client.message_err "Ruby #{$!.class}:#{line}: #{msg}"
92
97
  end
@@ -154,7 +159,7 @@ module Neovim
154
159
  r = begin
155
160
  script_binding.eval lines.to_s, "ruby_run"
156
161
  rescue Exception
157
- $@.pop until $@.empty? or $@.last.ends_with? ":in `empty_binding'"
162
+ $@.pop until $@.empty? or $@.last =~ /:\d+:in .*\bempty_binding\W*$/
158
163
  raise unless $rescue and $result != false
159
164
  $!
160
165
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nvim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.1
4
+ version: 1.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bertram Scharpf