neovim 0.0.3 → 0.0.4
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/bin/neovim-ruby-host +1 -2
- data/lib/neovim.rb +13 -12
- data/lib/neovim/api_info.rb +1 -1
- data/lib/neovim/async_session.rb +4 -6
- data/lib/neovim/buffer.rb +2 -62
- data/lib/neovim/client.rb +0 -4
- data/lib/neovim/current.rb +9 -0
- data/lib/neovim/event_loop.rb +14 -13
- data/lib/neovim/host.rb +17 -55
- data/lib/neovim/line_range.rb +61 -0
- data/lib/neovim/manifest.rb +62 -0
- data/lib/neovim/msgpack_stream.rb +3 -6
- data/lib/neovim/notification.rb +5 -1
- data/lib/neovim/plugin.rb +77 -35
- data/lib/neovim/request.rb +5 -1
- data/lib/neovim/version.rb +1 -1
- data/spec/acceptance/neovim-ruby-host_spec.rb +15 -24
- data/spec/helper.rb +2 -0
- data/spec/neovim/async_session_spec.rb +2 -2
- data/spec/neovim/buffer_spec.rb +3 -41
- data/spec/neovim/current_spec.rb +14 -0
- data/spec/neovim/event_loop_spec.rb +54 -6
- data/spec/neovim/host_spec.rb +7 -46
- data/spec/neovim/line_range_spec.rb +68 -0
- data/spec/neovim/manifest_spec.rb +113 -0
- data/spec/neovim/msgpack_stream_spec.rb +5 -3
- data/spec/neovim/plugin_spec.rb +33 -33
- data/spec/neovim/session_spec.rb +97 -18
- data/spec/neovim_spec.rb +13 -4
- metadata +9 -3
data/spec/neovim_spec.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require "neovim/plugin"
|
1
2
|
require "helper"
|
2
3
|
require "fileutils"
|
3
4
|
|
@@ -53,10 +54,18 @@ RSpec.describe Neovim do
|
|
53
54
|
end
|
54
55
|
|
55
56
|
describe ".plugin" do
|
56
|
-
it "
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
it "registers the plugin to Neovim.__configured_plugin_manifest" do
|
58
|
+
mock_manifest = double(:manifest)
|
59
|
+
mock_plugin = double(:plugin)
|
60
|
+
mock_path = "/source/path"
|
61
|
+
|
62
|
+
allow(Neovim).to receive(:__configured_plugin_path).and_return(mock_path)
|
63
|
+
allow(Neovim).to receive(:__configured_plugin_manifest).and_return(mock_manifest)
|
64
|
+
|
65
|
+
expect(Neovim::Plugin).to receive(:from_config_block).with(mock_path).and_return(mock_plugin)
|
66
|
+
expect(mock_manifest).to receive(:register).with(mock_plugin)
|
67
|
+
|
68
|
+
Neovim.plugin
|
60
69
|
end
|
61
70
|
end
|
62
71
|
end
|
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.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Genco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -120,6 +120,8 @@ files:
|
|
120
120
|
- lib/neovim/current.rb
|
121
121
|
- lib/neovim/event_loop.rb
|
122
122
|
- lib/neovim/host.rb
|
123
|
+
- lib/neovim/line_range.rb
|
124
|
+
- lib/neovim/manifest.rb
|
123
125
|
- lib/neovim/msgpack_stream.rb
|
124
126
|
- lib/neovim/notification.rb
|
125
127
|
- lib/neovim/object.rb
|
@@ -138,6 +140,8 @@ files:
|
|
138
140
|
- spec/neovim/current_spec.rb
|
139
141
|
- spec/neovim/event_loop_spec.rb
|
140
142
|
- spec/neovim/host_spec.rb
|
143
|
+
- spec/neovim/line_range_spec.rb
|
144
|
+
- spec/neovim/manifest_spec.rb
|
141
145
|
- spec/neovim/msgpack_stream_spec.rb
|
142
146
|
- spec/neovim/object_spec.rb
|
143
147
|
- spec/neovim/plugin_spec.rb
|
@@ -164,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
168
|
version: '0'
|
165
169
|
requirements: []
|
166
170
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.4.
|
171
|
+
rubygems_version: 2.4.6
|
168
172
|
signing_key:
|
169
173
|
specification_version: 4
|
170
174
|
summary: A Ruby client for Neovim
|
@@ -177,6 +181,8 @@ test_files:
|
|
177
181
|
- spec/neovim/current_spec.rb
|
178
182
|
- spec/neovim/event_loop_spec.rb
|
179
183
|
- spec/neovim/host_spec.rb
|
184
|
+
- spec/neovim/line_range_spec.rb
|
185
|
+
- spec/neovim/manifest_spec.rb
|
180
186
|
- spec/neovim/msgpack_stream_spec.rb
|
181
187
|
- spec/neovim/object_spec.rb
|
182
188
|
- spec/neovim/plugin_spec.rb
|