vim-flavor 4.0.1 → 4.0.2

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
  SHA256:
3
- metadata.gz: ab518031fdcf2dbfebc8e07e3e0c3037d23c945bb829836eb3c949b707712aa9
4
- data.tar.gz: 45738011fd3d87e1c3cb2c2a2ee0f039c02824b3df2953797a88099d3aae32f2
3
+ metadata.gz: 75d0bb94ee0f8229e9d2500cdd40d17315585d4fe0d5fa70b3f3ae2fa2216dda
4
+ data.tar.gz: 02a54ee18922bb471666736b55b4bc783b9581b1ff35b94f5534ce9f91051a0b
5
5
  SHA512:
6
- metadata.gz: 2f95c199e8b3edfa0e2b90129c9b0858739fc3448d5cd485166f7bf7c8ee92ec3eee4160643428c016741b66658fb4a14ef713fd88dd8b60d9db27223fce7d2c
7
- data.tar.gz: 3e76e7c2403b87554e2b4856e0c30e98cd4fee7fcf4981bae63b6238c50a65d10ce638cc6a6cc057962d30880f67f0d3fb7771b637b11b651c4b919ffc93a797
6
+ metadata.gz: 2ad9d76f9f2fc93b088cc2b8f9cecf5d351f027cead304e42adbd60d04ff567b4a767249f81b56c42e157fdf123ab3a280d37920efc4fa7e290790f2dbdf1187
7
+ data.tar.gz: 535d9dc0232e83c642afce3d6a608875738021ddbd12f113a64b7b4e99ed7fa3722f8772161bee025facaef3eeb42fb338fce9c9abb0fdb4255ced75ac94c2a6
data/CHANGELOG.md CHANGED
@@ -8,7 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
 
9
9
 
10
10
 
11
- ## [Unreleased](https://github.com/kana/vim-flavor/compare/v4.0.0...master)
11
+ ## [Unreleased](https://github.com/kana/vim-flavor/compare/v4.0.2...master)
12
+
13
+
14
+
15
+
16
+ ## [4.0.2](https://github.com/kana/vim-flavor/compare/v4.0.1...v4.0.2) - 2022-01-11
17
+
18
+ ### Fixed
19
+
20
+ * Remove deprecated usage of `.exists?` style methods ([#66](https://github.com/kana/vim-flavor/pull/66))
12
21
 
13
22
 
14
23
 
@@ -25,7 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25
34
  This is a breaking change if you installed Vim plugins with vim-flavor v4.0.0
26
35
  or older. You'll see the following error in that case:
27
36
 
28
- fatal: remote error:
37
+ fatal: remote error:
29
38
  The unauthenticated git protocol on port 9418 is no longer supported.
30
39
 
31
40
  There are two ways to fix this errors:
@@ -21,7 +21,7 @@ module Vim
21
21
 
22
22
  # Return true if this flavor's repository is already cloned.
23
23
  def cached?
24
- Dir.exists?(cached_repo_path)
24
+ Dir.exist?(cached_repo_path)
25
25
  end
26
26
 
27
27
  def cached_version?(version)
@@ -18,7 +18,7 @@ module Vim
18
18
 
19
19
  def self.load_or_new(flavorfile_path)
20
20
  ff = new()
21
- ff.load(flavorfile_path) if FileTest.exists?(flavorfile_path)
21
+ ff.load(flavorfile_path) if FileTest.exist?(flavorfile_path)
22
22
  ff
23
23
  end
24
24
 
@@ -33,12 +33,12 @@ module Vim
33
33
  new_path = Pathname.new(flavorfile_path).relative_path_from(Pathname.getwd())
34
34
  old_path = new_path.dirname() / 'VimFlavor'
35
35
 
36
- path = if FileTest.exists?(new_path)
37
- if warn and FileTest.exists?(old_path)
36
+ path = if FileTest.exist?(new_path)
37
+ if warn and FileTest.exist?(old_path)
38
38
  Console::warn "Delete #{old_path}. #{new_path} is being read instead."
39
39
  end
40
40
  new_path
41
- elsif FileTest.exists?(old_path)
41
+ elsif FileTest.exist?(old_path)
42
42
  if warn
43
43
  Console::warn "Rename #{old_path} to #{new_path}. #{old_path} wll be ignored in future version."
44
44
  end
@@ -5,7 +5,7 @@ module Vim
5
5
  class LockFile
6
6
  def self.load_or_new(lockfile_path)
7
7
  l = new(lockfile_path)
8
- l.load() if File.exists?(lockfile_path)
8
+ l.load() if File.exist?(lockfile_path)
9
9
  l
10
10
  end
11
11
 
@@ -14,7 +14,7 @@ module Vim
14
14
  new_path = Pathname.new(lockfile_path).relative_path_from(Pathname.getwd())
15
15
  old_path = new_path.dirname() / 'VimFlavor.lock'
16
16
 
17
- if error and FileTest.exists?(old_path)
17
+ if error and FileTest.exist?(old_path)
18
18
  Console::error "#{old_path} is no longer used. Rename it to #{new_path}."
19
19
  end
20
20
 
@@ -1,6 +1,6 @@
1
1
  module Vim
2
2
  module Flavor
3
- VERSION = '4.0.1'
3
+ VERSION = '4.0.2'
4
4
 
5
5
  class Version
6
6
  def self.create(arg)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vim-flavor
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kana Natsuno
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-02 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet