vimrunner 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vimrunner/server.rb +7 -5
- data/lib/vimrunner/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bd4792255a286c69446f22fbab494d375a96d08
|
4
|
+
data.tar.gz: e1e80572a1075b40d9262f0b2a2729ecc4985bf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8d492f00a6d31bd31b9958e540a56ec602e90b485df8b3eb246afe80647d17acd27834473f85c284a180241a5077e02387afb809c266f5deec2ff4374d56ba6
|
7
|
+
data.tar.gz: d6254a9972afcc336c5eed45831405a332d4ed6a6eb92c0d466c97fcb7a25489d24f30f849033cd10dfc8c0a00e9e0cc0c7ed930aaed24eec17eb6227d626e86
|
data/lib/vimrunner/server.rb
CHANGED
@@ -61,9 +61,7 @@ module Vimrunner
|
|
61
61
|
begin
|
62
62
|
@result = yield(connect!)
|
63
63
|
ensure
|
64
|
-
|
65
|
-
@w.close
|
66
|
-
Process.kill(9, @pid) rescue Errno::ESRCH
|
64
|
+
kill
|
67
65
|
end
|
68
66
|
@result
|
69
67
|
else
|
@@ -119,7 +117,11 @@ module Vimrunner
|
|
119
117
|
def kill
|
120
118
|
@r.close
|
121
119
|
@w.close
|
122
|
-
|
120
|
+
|
121
|
+
begin
|
122
|
+
Process.kill(9, @pid)
|
123
|
+
rescue Errno::ESRCH
|
124
|
+
end
|
123
125
|
|
124
126
|
self
|
125
127
|
end
|
@@ -166,7 +168,7 @@ module Vimrunner
|
|
166
168
|
end
|
167
169
|
|
168
170
|
def execute(command)
|
169
|
-
IO.popen(command) { |io| io.read.
|
171
|
+
IO.popen(command) { |io| io.read.chomp.gsub(/\A\n/, '') }
|
170
172
|
end
|
171
173
|
|
172
174
|
def spawn
|
data/lib/vimrunner/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimrunner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Radev
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -57,16 +57,16 @@ dependencies:
|
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 3.1.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 3.1.0
|
70
70
|
description: |2
|
71
71
|
Using Vim's client/server functionality, this library exposes a way to
|
72
72
|
spawn a Vim instance and control it programatically. Apart from being a fun
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: 1.3.6
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project: vimrunner
|
115
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.5.1
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Lets you control a Vim instance through Ruby
|