utils 0.0.77 → 0.0.78
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/utils/editor.rb +2 -6
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b97c09a2191a91a0931622534f1c8823f880e803
|
4
|
+
data.tar.gz: e9e2d5be0027b38e8a2899dd36250402add73054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ef6c649e2680b5e1bd1292fd49d9bc3bef01bffc5eb61a858e6dbd63165148cf5c20863e5c9021f5ab107c871ecac73b5fdd55127b72ae47d02d1940c508457
|
7
|
+
data.tar.gz: bc28f6b2cf686d68408179ece95157d12b46b26a3e26e02e3dfbe976f938edc6c89e78eee817e757c88682a01afc5fb7afb83436015deca2e762f703674e2e6a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.78
|
data/lib/utils/editor.rb
CHANGED
@@ -115,7 +115,6 @@ module Utils
|
|
115
115
|
end
|
116
116
|
|
117
117
|
def edit(*filenames)
|
118
|
-
ensure_running
|
119
118
|
if filenames.size == 1 and
|
120
119
|
source_location = filenames.first.source_location
|
121
120
|
then
|
@@ -123,6 +122,8 @@ module Utils
|
|
123
122
|
elsif source_locations = filenames.map(&:source_location).compact.full?
|
124
123
|
filenames = expand_globs(source_locations.map(&:first))
|
125
124
|
edit_file(*filenames)
|
125
|
+
end.tap do
|
126
|
+
activate
|
126
127
|
end
|
127
128
|
end
|
128
129
|
|
@@ -153,11 +154,6 @@ module Utils
|
|
153
154
|
edit_file_linenumber(source_location[0], source_location[1])
|
154
155
|
end
|
155
156
|
|
156
|
-
def ensure_running
|
157
|
-
started? ? activate : start
|
158
|
-
self
|
159
|
-
end
|
160
|
-
|
161
157
|
def start
|
162
158
|
started? or cmd(*vim, '--servername', servername)
|
163
159
|
end
|
data/lib/utils/version.rb
CHANGED
data/utils.gemspec
CHANGED