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.
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 "adds to Neovim.__configured_plugins" do
57
- expect {
58
- Neovim.plugin
59
- }.to change { Neovim.__configured_plugins.size }.by(1)
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.3
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: 2015-11-23 00:00:00.000000000 Z
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.5
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