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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a685e5113f973b6f044465d5535dfc1b3db973f
4
- data.tar.gz: 8d4ef8c6eb7cd1d8aabb937a7868b343858f80e6
3
+ metadata.gz: b97c09a2191a91a0931622534f1c8823f880e803
4
+ data.tar.gz: e9e2d5be0027b38e8a2899dd36250402add73054
5
5
  SHA512:
6
- metadata.gz: faa4c6848850fe2013f5e4671efb653edf8806771b8e0db2121e51cfa1bb318b43c90b66e6c934b054996e5f6d837b1a3d1bd723c5b315e8a2178eefe8f0f431
7
- data.tar.gz: 419d806822b4c2dd30aa088ed96a94b78e20a47170343671bb4306497a871a42c59a899affe293a3c5db1ab177929881cf9e7ba98eaec4db5dbc173be7818e9c
6
+ metadata.gz: 6ef6c649e2680b5e1bd1292fd49d9bc3bef01bffc5eb61a858e6dbd63165148cf5c20863e5c9021f5ab107c871ecac73b5fdd55127b72ae47d02d1940c508457
7
+ data.tar.gz: bc28f6b2cf686d68408179ece95157d12b46b26a3e26e02e3dfbe976f938edc6c89e78eee817e757c88682a01afc5fb7afb83436015deca2e762f703674e2e6a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.77
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
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.0.77'
3
+ VERSION = '0.0.78'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
data/utils.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "utils"
5
- s.version = "0.0.77"
5
+ s.version = "0.0.78"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.77
4
+ version: 0.0.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank