neovim 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/CHANGELOG.md +9 -3
- data/CODE_OF_CONDUCT.md +46 -0
- data/README.md +2 -2
- data/Rakefile +6 -6
- data/lib/neovim.rb +8 -7
- data/lib/neovim/api.rb +87 -0
- data/lib/neovim/buffer.rb +7 -1
- data/lib/neovim/client.rb +32 -6
- data/lib/neovim/event_loop.rb +114 -0
- data/lib/neovim/event_loop/connection.rb +78 -0
- data/lib/neovim/event_loop/message_builder.rb +127 -0
- data/lib/neovim/event_loop/serializer.rb +37 -0
- data/lib/neovim/host.rb +28 -28
- data/lib/neovim/logging.rb +41 -19
- data/lib/neovim/plugin/dsl.rb +6 -6
- data/lib/neovim/remote_object.rb +2 -2
- data/lib/neovim/ruby_provider.rb +8 -6
- data/lib/neovim/ruby_provider/vim.rb +2 -2
- data/lib/neovim/session.rb +42 -79
- data/lib/neovim/tabpage.rb +1 -1
- data/lib/neovim/version.rb +1 -1
- data/lib/neovim/window.rb +1 -1
- data/script/dump_api +4 -2
- data/script/generate_docs +2 -1
- data/spec/{integration → acceptance}/rplugin_autocmd_spec.vim +1 -1
- data/spec/{integration → acceptance}/rplugin_command_spec.vim +6 -2
- data/spec/{integration → acceptance}/rplugin_function_spec.vim +5 -2
- data/spec/{integration → acceptance}/ruby_spec.vim +18 -0
- data/spec/{integration → acceptance}/rubydo_spec.vim +0 -0
- data/spec/{integration → acceptance}/rubyfile/call_foo.rb +0 -0
- data/spec/{integration → acceptance}/rubyfile/curbuf_ivar_get.rb +0 -0
- data/spec/{integration → acceptance}/rubyfile/curbuf_ivar_set.rb +0 -0
- data/spec/{integration → acceptance}/rubyfile/define_foo.rb +0 -0
- data/spec/acceptance/rubyfile/nested.rb +1 -0
- data/spec/acceptance/rubyfile/nested_inner.rb +1 -0
- data/spec/{integration → acceptance}/rubyfile/raise_standard_error.rb +0 -0
- data/spec/{integration → acceptance}/rubyfile/raise_syntax_error.rb +0 -0
- data/spec/acceptance/rubyfile/ruby_interface.rb +8 -0
- data/spec/{integration → acceptance}/rubyfile/set_pwd_after.rb +0 -0
- data/spec/{integration → acceptance}/rubyfile/set_pwd_before.rb +0 -0
- data/spec/{integration → acceptance}/rubyfile_spec.vim +9 -0
- data/spec/acceptance/runtime/init.vim +8 -0
- data/spec/acceptance/runtime/rplugin.vim +37 -0
- data/spec/{integration → acceptance}/runtime/rplugin/ruby/autocmds.rb +1 -1
- data/spec/{integration → acceptance}/runtime/rplugin/ruby/commands.rb +9 -1
- data/spec/{integration → acceptance}/runtime/rplugin/ruby/functions.rb +9 -1
- data/spec/{integration → acceptance}/runtime/vader.vim/autoload/vader.vim +0 -0
- data/spec/{integration → acceptance}/runtime/vader.vim/autoload/vader/assert.vim +0 -0
- data/spec/{integration → acceptance}/runtime/vader.vim/autoload/vader/helper.vim +0 -0
- data/spec/{integration → acceptance}/runtime/vader.vim/autoload/vader/parser.vim +0 -0
- data/spec/{integration → acceptance}/runtime/vader.vim/autoload/vader/syntax.vim +0 -0
- data/spec/{integration → acceptance}/runtime/vader.vim/autoload/vader/window.vim +0 -0
- data/spec/{integration → acceptance}/runtime/vader.vim/plugin/vader.vim +0 -0
- data/spec/acceptance_spec.rb +74 -0
- data/spec/helper.rb +2 -32
- data/spec/neovim/api_spec.rb +59 -0
- data/spec/neovim/buffer_spec.rb +161 -2
- data/spec/neovim/client_spec.rb +18 -4
- data/spec/neovim/event_loop/connection_spec.rb +63 -0
- data/spec/neovim/event_loop/message_builder_spec.rb +105 -0
- data/spec/neovim/event_loop/serializer_spec.rb +63 -0
- data/spec/neovim/event_loop_spec.rb +81 -0
- data/spec/neovim/host/loader_spec.rb +0 -1
- data/spec/neovim/host_spec.rb +130 -161
- data/spec/neovim/logging_spec.rb +77 -5
- data/spec/neovim/session_spec.rb +54 -127
- data/spec/neovim/window_spec.rb +46 -0
- metadata +81 -81
- data/lib/neovim/session/api.rb +0 -95
- data/lib/neovim/session/event_loop.rb +0 -100
- data/lib/neovim/session/notification.rb +0 -19
- data/lib/neovim/session/request.rb +0 -31
- data/lib/neovim/session/rpc.rb +0 -95
- data/lib/neovim/session/serializer.rb +0 -62
- data/spec/integration/ruby_buffer_spec.rb +0 -151
- data/spec/integration/ruby_vim_spec.rb +0 -27
- data/spec/integration/ruby_window_spec.rb +0 -56
- data/spec/integration/runtime/init.vim +0 -9
- data/spec/integration_spec.rb +0 -119
- data/spec/neovim/session/api_spec.rb +0 -70
- data/spec/neovim/session/event_loop_spec.rb +0 -152
- data/spec/neovim/session/notification_spec.rb +0 -20
- data/spec/neovim/session/request_spec.rb +0 -36
- data/spec/neovim/session/rpc_spec.rb +0 -120
- data/spec/neovim/session/serializer_spec.rb +0 -62
data/spec/neovim/logging_spec.rb
CHANGED
@@ -15,21 +15,21 @@ module Neovim
|
|
15
15
|
|
16
16
|
describe ".logger" do
|
17
17
|
it "fetches the output from $NVIM_RUBY_LOG_FILE" do
|
18
|
-
logger = instance_double(Logger, :level= => nil)
|
18
|
+
logger = instance_double(Logger, :level= => nil, :formatter= => nil)
|
19
19
|
expect(Logger).to receive(:new).with("/tmp/nvim.log").and_return(logger)
|
20
20
|
Logging.logger("NVIM_RUBY_LOG_FILE" => "/tmp/nvim.log")
|
21
21
|
expect(Logging.logger).to be(logger)
|
22
22
|
end
|
23
23
|
|
24
24
|
it "defaults the output to STDERR" do
|
25
|
-
logger = instance_double(Logger, :level= => nil)
|
25
|
+
logger = instance_double(Logger, :level= => nil, :formatter= => nil)
|
26
26
|
expect(Logger).to receive(:new).with(STDERR).and_return(logger)
|
27
27
|
Logging.logger({})
|
28
28
|
expect(Logging.logger).to be(logger)
|
29
29
|
end
|
30
30
|
|
31
31
|
it "fetches the level from $NVIM_RUBY_LOG_LEVEL as a string" do
|
32
|
-
logger = instance_double(Logger)
|
32
|
+
logger = instance_double(Logger, :formatter= => nil)
|
33
33
|
expect(Logger).to receive(:new).and_return(logger)
|
34
34
|
expect(logger).to receive(:level=).with(Logger::DEBUG)
|
35
35
|
Logging.logger("NVIM_RUBY_LOG_LEVEL" => "DEBUG")
|
@@ -37,7 +37,7 @@ module Neovim
|
|
37
37
|
end
|
38
38
|
|
39
39
|
it "fetches the level from $NVIM_RUBY_LOG_LEVEL as an integer" do
|
40
|
-
logger = instance_double(Logger)
|
40
|
+
logger = instance_double(Logger, :formatter= => nil)
|
41
41
|
expect(Logger).to receive(:new).and_return(logger)
|
42
42
|
expect(logger).to receive(:level=).with(0)
|
43
43
|
Logging.logger("NVIM_RUBY_LOG_LEVEL" => "0")
|
@@ -45,12 +45,84 @@ module Neovim
|
|
45
45
|
end
|
46
46
|
|
47
47
|
it "defaults the level to WARN" do
|
48
|
-
logger = instance_double(Logger)
|
48
|
+
logger = instance_double(Logger, :formatter= => nil)
|
49
49
|
expect(Logger).to receive(:new).and_return(logger)
|
50
50
|
expect(logger).to receive(:level=).with(Logger::WARN)
|
51
51
|
Logging.logger({})
|
52
52
|
expect(Logging.logger).to be(logger)
|
53
53
|
end
|
54
54
|
end
|
55
|
+
|
56
|
+
describe Logging::Helpers do
|
57
|
+
let!(:log) do
|
58
|
+
StringIO.new.tap do |io|
|
59
|
+
logger = Logger.new(io)
|
60
|
+
logger.level = Logger::DEBUG
|
61
|
+
Neovim.logger = logger
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
let(:klass) do
|
66
|
+
Class.new do
|
67
|
+
include Logging
|
68
|
+
|
69
|
+
def public_log(level, fields)
|
70
|
+
log(level) { fields }
|
71
|
+
end
|
72
|
+
|
73
|
+
def public_log_exception(*args)
|
74
|
+
log_exception(*args)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
let(:obj) { klass.new }
|
80
|
+
|
81
|
+
describe "#log" do
|
82
|
+
it "logs JSON at the specified level" do
|
83
|
+
obj.public_log(:info, :foo => "bar")
|
84
|
+
logged = JSON.parse(log.string)
|
85
|
+
|
86
|
+
expect(logged).to match(
|
87
|
+
"_level" => "INFO",
|
88
|
+
"_class" => klass.to_s,
|
89
|
+
"_method" => "public_log",
|
90
|
+
"_time" => /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+/,
|
91
|
+
"foo" => "bar"
|
92
|
+
)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
describe "#log_exception" do
|
97
|
+
it "logs JSON at the specified level and debugs the backtrace" do
|
98
|
+
ex = RuntimeError.new("BOOM")
|
99
|
+
ex.set_backtrace(["one", "two"])
|
100
|
+
obj.public_log_exception(:fatal, ex, :some_method)
|
101
|
+
lines = log.string.lines.to_a
|
102
|
+
|
103
|
+
fatal = JSON.parse(lines[0])
|
104
|
+
debug = JSON.parse(lines[1])
|
105
|
+
|
106
|
+
expect(fatal).to match(
|
107
|
+
"_level" => "FATAL",
|
108
|
+
"_class" => klass.to_s,
|
109
|
+
"_method" => "some_method",
|
110
|
+
"_time" => /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+/,
|
111
|
+
"exception" => "RuntimeError",
|
112
|
+
"message" => "BOOM",
|
113
|
+
)
|
114
|
+
|
115
|
+
expect(debug).to match(
|
116
|
+
"_level" => "DEBUG",
|
117
|
+
"_class" => klass.to_s,
|
118
|
+
"_method" => "some_method",
|
119
|
+
"_time" => /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+/,
|
120
|
+
"exception" => "RuntimeError",
|
121
|
+
"message" => "BOOM",
|
122
|
+
"backtrace" => ["one", "two"],
|
123
|
+
)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
55
127
|
end
|
56
128
|
end
|
data/spec/neovim/session_spec.rb
CHANGED
@@ -1,157 +1,84 @@
|
|
1
1
|
require "helper"
|
2
|
-
require "securerandom"
|
3
2
|
|
4
3
|
module Neovim
|
5
4
|
RSpec.describe Session do
|
6
|
-
|
7
|
-
|
8
|
-
it "returns nil when the API hasn't been discovered" do
|
9
|
-
expect(session.channel_id).to be(nil)
|
10
|
-
end
|
11
|
-
|
12
|
-
it "returns the channel_id when the API has been discovered" do
|
13
|
-
session.discover_api
|
14
|
-
expect(session.channel_id).to respond_to(:to_int)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe "#request" do
|
19
|
-
it "synchronously returns a result" do
|
20
|
-
expect(session.request(:nvim_strwidth, "foobar")).to be(6)
|
21
|
-
end
|
22
|
-
|
23
|
-
it "raises an exception when there are errors" do
|
24
|
-
expect {
|
25
|
-
session.request(:nvim_strwidth, "too", "many")
|
26
|
-
}.to raise_error(/wrong number of arguments/i)
|
27
|
-
end
|
5
|
+
let(:event_loop) { EventLoop.child(Support.child_argv) }
|
6
|
+
let!(:session) { Session.new(event_loop) }
|
28
7
|
|
29
|
-
|
30
|
-
large_str = Array.new(1024 * 17) { SecureRandom.hex(1) }.join
|
31
|
-
session.request(:nvim_set_current_line, large_str)
|
32
|
-
expect(session.request(:nvim_get_current_line)).to eq(large_str)
|
33
|
-
end
|
8
|
+
after { session.shutdown }
|
34
9
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
}.to raise_error(/outside of the main thread/)
|
39
|
-
end
|
10
|
+
describe "#request" do
|
11
|
+
it "synchronously returns a result" do
|
12
|
+
expect(session.request(:nvim_strwidth, "foobar")).to be(6)
|
40
13
|
end
|
41
14
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
it "doesn't raise exceptions" do
|
48
|
-
expect {
|
49
|
-
session.notify(:nvim_strwidth, "too", "many")
|
50
|
-
}.not_to raise_error
|
51
|
-
end
|
52
|
-
|
53
|
-
it "handles large data" do
|
54
|
-
large_str = Array.new(1024 * 17) { SecureRandom.hex(1) }.join
|
55
|
-
session.notify(:nvim_set_current_line, large_str)
|
56
|
-
expect(session.request(:nvim_get_current_line)).to eq(large_str)
|
57
|
-
end
|
58
|
-
|
59
|
-
it "fails outside of the main thread" do
|
60
|
-
expect {
|
61
|
-
Thread.new { session.notify(:nvim_set_current_line, "foo") }.join
|
62
|
-
}.to raise_error(/outside of the main thread/)
|
63
|
-
end
|
15
|
+
it "raises an exception when there are errors" do
|
16
|
+
expect {
|
17
|
+
session.request(:nvim_strwidth, "too", "many")
|
18
|
+
}.to raise_error(/wrong number of arguments/i)
|
64
19
|
end
|
65
20
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
message = nil
|
72
|
-
session.run do |msg|
|
73
|
-
message = msg
|
74
|
-
session.shutdown
|
75
|
-
end
|
76
|
-
|
77
|
-
expect(message).to be_a(Session::Notification)
|
78
|
-
expect(message.method_name).to eq("my_event")
|
79
|
-
expect(message.arguments).to eq(["foo"])
|
80
|
-
end
|
81
|
-
|
82
|
-
it "supports requests within callbacks" do
|
83
|
-
session.request(:nvim_subscribe, "my_event")
|
84
|
-
session.request(:nvim_command, "call rpcnotify(0, 'my_event', 'foo')")
|
85
|
-
|
86
|
-
result = nil
|
87
|
-
session.run do |msg|
|
88
|
-
result = session.request(:nvim_strwidth, msg.arguments.first)
|
89
|
-
session.shutdown
|
90
|
-
end
|
21
|
+
it "handles large data" do
|
22
|
+
large_str = Array.new(1024 * 17) { SecureRandom.hex(1) }.join
|
23
|
+
session.request(:nvim_set_current_line, large_str)
|
24
|
+
expect(session.request(:nvim_get_current_line)).to eq(large_str)
|
25
|
+
end
|
91
26
|
|
92
|
-
|
93
|
-
|
27
|
+
it "fails outside of the main thread" do
|
28
|
+
expect {
|
29
|
+
Thread.new { session.request(:nvim_strwidth, "foo") }.join
|
30
|
+
}.to raise_error(/outside of the main thread/)
|
94
31
|
end
|
95
32
|
end
|
96
33
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
Support.child_argv.join(" "),
|
103
|
-
[:out, :err] => "/dev/null"
|
104
|
-
)
|
105
|
-
|
106
|
-
begin
|
107
|
-
TCPSocket.open("0.0.0.0", nvim_port).close
|
108
|
-
rescue Errno::ECONNREFUSED
|
109
|
-
retry
|
110
|
-
end
|
111
|
-
|
112
|
-
pid
|
34
|
+
describe "#notify" do
|
35
|
+
it "doesn't raise exceptions" do
|
36
|
+
expect {
|
37
|
+
session.notify(:nvim_strwidth, "too", "many")
|
38
|
+
}.not_to raise_error
|
113
39
|
end
|
114
40
|
|
115
|
-
|
116
|
-
|
117
|
-
|
41
|
+
it "handles large data" do
|
42
|
+
large_str = Array.new(1024 * 17) { SecureRandom.hex(1) }.join
|
43
|
+
session.notify(:nvim_set_current_line, large_str)
|
44
|
+
expect(session.request(:nvim_get_current_line)).to eq(large_str)
|
118
45
|
end
|
119
46
|
|
120
|
-
|
121
|
-
|
47
|
+
it "succeeds outside of the main thread" do
|
48
|
+
expect {
|
49
|
+
Thread.new { session.notify(:nvim_set_current_line, "foo") }.join
|
50
|
+
}.not_to raise_error
|
51
|
+
end
|
122
52
|
end
|
123
53
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
{"NVIM_LISTEN_ADDRESS" => socket_path},
|
129
|
-
Support.child_argv.join(" "),
|
130
|
-
[:out, :err] => "/dev/null"
|
131
|
-
)
|
54
|
+
describe "#run" do
|
55
|
+
it "enqueues messages received during blocking requests" do
|
56
|
+
session.request(:nvim_subscribe, "my_event")
|
57
|
+
session.request(:nvim_command, "call rpcnotify(0, 'my_event', 'foo')")
|
132
58
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
59
|
+
message = nil
|
60
|
+
session.run do |msg|
|
61
|
+
message = msg
|
62
|
+
session.shutdown
|
137
63
|
end
|
138
64
|
|
139
|
-
|
65
|
+
expect(message.sync?).to eq(false)
|
66
|
+
expect(message.method_name).to eq("my_event")
|
67
|
+
expect(message.arguments).to eq(["foo"])
|
140
68
|
end
|
141
69
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
end
|
70
|
+
it "supports requests within callbacks" do
|
71
|
+
session.request(:nvim_subscribe, "my_event")
|
72
|
+
session.request(:nvim_command, "call rpcnotify(0, 'my_event', 'foo')")
|
146
73
|
|
147
|
-
|
148
|
-
|
149
|
-
|
74
|
+
result = nil
|
75
|
+
session.run do |msg|
|
76
|
+
result = session.request(:nvim_strwidth, msg.arguments.first)
|
77
|
+
session.shutdown
|
78
|
+
end
|
150
79
|
|
151
|
-
|
152
|
-
|
153
|
-
include_context "session behavior"
|
154
|
-
after { session.shutdown }
|
80
|
+
expect(result).to be(3)
|
81
|
+
end
|
155
82
|
end
|
156
83
|
end
|
157
84
|
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require "helper"
|
2
|
+
|
3
|
+
module Neovim
|
4
|
+
RSpec.describe Window do
|
5
|
+
let(:client) { Neovim.attach_child(Support.child_argv) }
|
6
|
+
let(:window) { client.current.window }
|
7
|
+
|
8
|
+
before do
|
9
|
+
client.command("normal ione")
|
10
|
+
client.command("normal otwo")
|
11
|
+
client.command("normal gg")
|
12
|
+
client.command("vsplit")
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "#buffer" do
|
16
|
+
it "returns the window's buffer" do
|
17
|
+
expect(window.buffer).to eq(client.get_current_buf)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "#height", "#height=" do
|
22
|
+
it "adjusts the window height" do
|
23
|
+
expect do
|
24
|
+
window.height -= 1
|
25
|
+
end.to change { window.height }.by(-1)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "#width", "#width=" do
|
30
|
+
it "adjusts the window width" do
|
31
|
+
expect do
|
32
|
+
window.width -= 1
|
33
|
+
end.to change { window.width }.by(-1)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
describe "#cursor", "#cursor=" do
|
38
|
+
it "adjusts the window cursor" do
|
39
|
+
expect do
|
40
|
+
window.cursor = [2, 0]
|
41
|
+
end.to change { window.cursor }.to([2, 0])
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neovim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Genco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -94,15 +94,21 @@ files:
|
|
94
94
|
- ".rspec"
|
95
95
|
- ".travis.yml"
|
96
96
|
- CHANGELOG.md
|
97
|
+
- CODE_OF_CONDUCT.md
|
97
98
|
- Gemfile
|
98
99
|
- LICENSE.txt
|
99
100
|
- README.md
|
100
101
|
- Rakefile
|
101
102
|
- bin/neovim-ruby-host
|
102
103
|
- lib/neovim.rb
|
104
|
+
- lib/neovim/api.rb
|
103
105
|
- lib/neovim/buffer.rb
|
104
106
|
- lib/neovim/client.rb
|
105
107
|
- lib/neovim/current.rb
|
108
|
+
- lib/neovim/event_loop.rb
|
109
|
+
- lib/neovim/event_loop/connection.rb
|
110
|
+
- lib/neovim/event_loop/message_builder.rb
|
111
|
+
- lib/neovim/event_loop/serializer.rb
|
106
112
|
- lib/neovim/executable.rb
|
107
113
|
- lib/neovim/host.rb
|
108
114
|
- lib/neovim/host/loader.rb
|
@@ -117,12 +123,6 @@ files:
|
|
117
123
|
- lib/neovim/ruby_provider/vim.rb
|
118
124
|
- lib/neovim/ruby_provider/window_ext.rb
|
119
125
|
- lib/neovim/session.rb
|
120
|
-
- lib/neovim/session/api.rb
|
121
|
-
- lib/neovim/session/event_loop.rb
|
122
|
-
- lib/neovim/session/notification.rb
|
123
|
-
- lib/neovim/session/request.rb
|
124
|
-
- lib/neovim/session/rpc.rb
|
125
|
-
- lib/neovim/session/serializer.rb
|
126
126
|
- lib/neovim/tabpage.rb
|
127
127
|
- lib/neovim/version.rb
|
128
128
|
- lib/neovim/window.rb
|
@@ -131,40 +131,45 @@ files:
|
|
131
131
|
- script/generate_docs
|
132
132
|
- script/j2mp
|
133
133
|
- script/mp2j
|
134
|
+
- spec/acceptance/rplugin_autocmd_spec.vim
|
135
|
+
- spec/acceptance/rplugin_command_spec.vim
|
136
|
+
- spec/acceptance/rplugin_function_spec.vim
|
137
|
+
- spec/acceptance/ruby_spec.vim
|
138
|
+
- spec/acceptance/rubydo_spec.vim
|
139
|
+
- spec/acceptance/rubyfile/call_foo.rb
|
140
|
+
- spec/acceptance/rubyfile/curbuf_ivar_get.rb
|
141
|
+
- spec/acceptance/rubyfile/curbuf_ivar_set.rb
|
142
|
+
- spec/acceptance/rubyfile/define_foo.rb
|
143
|
+
- spec/acceptance/rubyfile/nested.rb
|
144
|
+
- spec/acceptance/rubyfile/nested_inner.rb
|
145
|
+
- spec/acceptance/rubyfile/raise_standard_error.rb
|
146
|
+
- spec/acceptance/rubyfile/raise_syntax_error.rb
|
147
|
+
- spec/acceptance/rubyfile/ruby_interface.rb
|
148
|
+
- spec/acceptance/rubyfile/set_pwd_after.rb
|
149
|
+
- spec/acceptance/rubyfile/set_pwd_before.rb
|
150
|
+
- spec/acceptance/rubyfile_spec.vim
|
151
|
+
- spec/acceptance/runtime/init.vim
|
152
|
+
- spec/acceptance/runtime/rplugin.vim
|
153
|
+
- spec/acceptance/runtime/rplugin/ruby/autocmds.rb
|
154
|
+
- spec/acceptance/runtime/rplugin/ruby/commands.rb
|
155
|
+
- spec/acceptance/runtime/rplugin/ruby/functions.rb
|
156
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader.vim
|
157
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/assert.vim
|
158
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/helper.vim
|
159
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/parser.vim
|
160
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/syntax.vim
|
161
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/window.vim
|
162
|
+
- spec/acceptance/runtime/vader.vim/plugin/vader.vim
|
163
|
+
- spec/acceptance_spec.rb
|
134
164
|
- spec/helper.rb
|
135
|
-
- spec/
|
136
|
-
- spec/integration/rplugin_command_spec.vim
|
137
|
-
- spec/integration/rplugin_function_spec.vim
|
138
|
-
- spec/integration/ruby_buffer_spec.rb
|
139
|
-
- spec/integration/ruby_spec.vim
|
140
|
-
- spec/integration/ruby_vim_spec.rb
|
141
|
-
- spec/integration/ruby_window_spec.rb
|
142
|
-
- spec/integration/rubydo_spec.vim
|
143
|
-
- spec/integration/rubyfile/call_foo.rb
|
144
|
-
- spec/integration/rubyfile/curbuf_ivar_get.rb
|
145
|
-
- spec/integration/rubyfile/curbuf_ivar_set.rb
|
146
|
-
- spec/integration/rubyfile/define_foo.rb
|
147
|
-
- spec/integration/rubyfile/raise_standard_error.rb
|
148
|
-
- spec/integration/rubyfile/raise_syntax_error.rb
|
149
|
-
- spec/integration/rubyfile/set_pwd_after.rb
|
150
|
-
- spec/integration/rubyfile/set_pwd_before.rb
|
151
|
-
- spec/integration/rubyfile_spec.vim
|
152
|
-
- spec/integration/runtime/init.vim
|
153
|
-
- spec/integration/runtime/rplugin.vim
|
154
|
-
- spec/integration/runtime/rplugin/ruby/autocmds.rb
|
155
|
-
- spec/integration/runtime/rplugin/ruby/commands.rb
|
156
|
-
- spec/integration/runtime/rplugin/ruby/functions.rb
|
157
|
-
- spec/integration/runtime/vader.vim/autoload/vader.vim
|
158
|
-
- spec/integration/runtime/vader.vim/autoload/vader/assert.vim
|
159
|
-
- spec/integration/runtime/vader.vim/autoload/vader/helper.vim
|
160
|
-
- spec/integration/runtime/vader.vim/autoload/vader/parser.vim
|
161
|
-
- spec/integration/runtime/vader.vim/autoload/vader/syntax.vim
|
162
|
-
- spec/integration/runtime/vader.vim/autoload/vader/window.vim
|
163
|
-
- spec/integration/runtime/vader.vim/plugin/vader.vim
|
164
|
-
- spec/integration_spec.rb
|
165
|
+
- spec/neovim/api_spec.rb
|
165
166
|
- spec/neovim/buffer_spec.rb
|
166
167
|
- spec/neovim/client_spec.rb
|
167
168
|
- spec/neovim/current_spec.rb
|
169
|
+
- spec/neovim/event_loop/connection_spec.rb
|
170
|
+
- spec/neovim/event_loop/message_builder_spec.rb
|
171
|
+
- spec/neovim/event_loop/serializer_spec.rb
|
172
|
+
- spec/neovim/event_loop_spec.rb
|
168
173
|
- spec/neovim/executable_spec.rb
|
169
174
|
- spec/neovim/host/loader_spec.rb
|
170
175
|
- spec/neovim/host_spec.rb
|
@@ -175,13 +180,8 @@ files:
|
|
175
180
|
- spec/neovim/ruby_provider/buffer_ext_spec.rb
|
176
181
|
- spec/neovim/ruby_provider/vim_spec.rb
|
177
182
|
- spec/neovim/ruby_provider/window_ext_spec.rb
|
178
|
-
- spec/neovim/session/api_spec.rb
|
179
|
-
- spec/neovim/session/event_loop_spec.rb
|
180
|
-
- spec/neovim/session/notification_spec.rb
|
181
|
-
- spec/neovim/session/request_spec.rb
|
182
|
-
- spec/neovim/session/rpc_spec.rb
|
183
|
-
- spec/neovim/session/serializer_spec.rb
|
184
183
|
- spec/neovim/session_spec.rb
|
184
|
+
- spec/neovim/window_spec.rb
|
185
185
|
- spec/neovim_spec.rb
|
186
186
|
- spec/support.rb
|
187
187
|
homepage: https://github.com/alexgenco/neovim-ruby
|
@@ -204,45 +204,50 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
204
|
version: '0'
|
205
205
|
requirements: []
|
206
206
|
rubyforge_project:
|
207
|
-
rubygems_version: 2.6.
|
207
|
+
rubygems_version: 2.6.13
|
208
208
|
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: A Ruby client for Neovim
|
211
211
|
test_files:
|
212
|
+
- spec/acceptance/rplugin_autocmd_spec.vim
|
213
|
+
- spec/acceptance/rplugin_command_spec.vim
|
214
|
+
- spec/acceptance/rplugin_function_spec.vim
|
215
|
+
- spec/acceptance/ruby_spec.vim
|
216
|
+
- spec/acceptance/rubydo_spec.vim
|
217
|
+
- spec/acceptance/rubyfile/call_foo.rb
|
218
|
+
- spec/acceptance/rubyfile/curbuf_ivar_get.rb
|
219
|
+
- spec/acceptance/rubyfile/curbuf_ivar_set.rb
|
220
|
+
- spec/acceptance/rubyfile/define_foo.rb
|
221
|
+
- spec/acceptance/rubyfile/nested.rb
|
222
|
+
- spec/acceptance/rubyfile/nested_inner.rb
|
223
|
+
- spec/acceptance/rubyfile/raise_standard_error.rb
|
224
|
+
- spec/acceptance/rubyfile/raise_syntax_error.rb
|
225
|
+
- spec/acceptance/rubyfile/ruby_interface.rb
|
226
|
+
- spec/acceptance/rubyfile/set_pwd_after.rb
|
227
|
+
- spec/acceptance/rubyfile/set_pwd_before.rb
|
228
|
+
- spec/acceptance/rubyfile_spec.vim
|
229
|
+
- spec/acceptance/runtime/init.vim
|
230
|
+
- spec/acceptance/runtime/rplugin.vim
|
231
|
+
- spec/acceptance/runtime/rplugin/ruby/autocmds.rb
|
232
|
+
- spec/acceptance/runtime/rplugin/ruby/commands.rb
|
233
|
+
- spec/acceptance/runtime/rplugin/ruby/functions.rb
|
234
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader.vim
|
235
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/assert.vim
|
236
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/helper.vim
|
237
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/parser.vim
|
238
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/syntax.vim
|
239
|
+
- spec/acceptance/runtime/vader.vim/autoload/vader/window.vim
|
240
|
+
- spec/acceptance/runtime/vader.vim/plugin/vader.vim
|
241
|
+
- spec/acceptance_spec.rb
|
212
242
|
- spec/helper.rb
|
213
|
-
- spec/
|
214
|
-
- spec/integration/rplugin_command_spec.vim
|
215
|
-
- spec/integration/rplugin_function_spec.vim
|
216
|
-
- spec/integration/ruby_buffer_spec.rb
|
217
|
-
- spec/integration/ruby_spec.vim
|
218
|
-
- spec/integration/ruby_vim_spec.rb
|
219
|
-
- spec/integration/ruby_window_spec.rb
|
220
|
-
- spec/integration/rubydo_spec.vim
|
221
|
-
- spec/integration/rubyfile/call_foo.rb
|
222
|
-
- spec/integration/rubyfile/curbuf_ivar_get.rb
|
223
|
-
- spec/integration/rubyfile/curbuf_ivar_set.rb
|
224
|
-
- spec/integration/rubyfile/define_foo.rb
|
225
|
-
- spec/integration/rubyfile/raise_standard_error.rb
|
226
|
-
- spec/integration/rubyfile/raise_syntax_error.rb
|
227
|
-
- spec/integration/rubyfile/set_pwd_after.rb
|
228
|
-
- spec/integration/rubyfile/set_pwd_before.rb
|
229
|
-
- spec/integration/rubyfile_spec.vim
|
230
|
-
- spec/integration/runtime/init.vim
|
231
|
-
- spec/integration/runtime/rplugin.vim
|
232
|
-
- spec/integration/runtime/rplugin/ruby/autocmds.rb
|
233
|
-
- spec/integration/runtime/rplugin/ruby/commands.rb
|
234
|
-
- spec/integration/runtime/rplugin/ruby/functions.rb
|
235
|
-
- spec/integration/runtime/vader.vim/autoload/vader.vim
|
236
|
-
- spec/integration/runtime/vader.vim/autoload/vader/assert.vim
|
237
|
-
- spec/integration/runtime/vader.vim/autoload/vader/helper.vim
|
238
|
-
- spec/integration/runtime/vader.vim/autoload/vader/parser.vim
|
239
|
-
- spec/integration/runtime/vader.vim/autoload/vader/syntax.vim
|
240
|
-
- spec/integration/runtime/vader.vim/autoload/vader/window.vim
|
241
|
-
- spec/integration/runtime/vader.vim/plugin/vader.vim
|
242
|
-
- spec/integration_spec.rb
|
243
|
+
- spec/neovim/api_spec.rb
|
243
244
|
- spec/neovim/buffer_spec.rb
|
244
245
|
- spec/neovim/client_spec.rb
|
245
246
|
- spec/neovim/current_spec.rb
|
247
|
+
- spec/neovim/event_loop/connection_spec.rb
|
248
|
+
- spec/neovim/event_loop/message_builder_spec.rb
|
249
|
+
- spec/neovim/event_loop/serializer_spec.rb
|
250
|
+
- spec/neovim/event_loop_spec.rb
|
246
251
|
- spec/neovim/executable_spec.rb
|
247
252
|
- spec/neovim/host/loader_spec.rb
|
248
253
|
- spec/neovim/host_spec.rb
|
@@ -253,12 +258,7 @@ test_files:
|
|
253
258
|
- spec/neovim/ruby_provider/buffer_ext_spec.rb
|
254
259
|
- spec/neovim/ruby_provider/vim_spec.rb
|
255
260
|
- spec/neovim/ruby_provider/window_ext_spec.rb
|
256
|
-
- spec/neovim/session/api_spec.rb
|
257
|
-
- spec/neovim/session/event_loop_spec.rb
|
258
|
-
- spec/neovim/session/notification_spec.rb
|
259
|
-
- spec/neovim/session/request_spec.rb
|
260
|
-
- spec/neovim/session/rpc_spec.rb
|
261
|
-
- spec/neovim/session/serializer_spec.rb
|
262
261
|
- spec/neovim/session_spec.rb
|
262
|
+
- spec/neovim/window_spec.rb
|
263
263
|
- spec/neovim_spec.rb
|
264
264
|
- spec/support.rb
|