vim-flavor 4.0.1 → 4.0.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -2
- data/lib/vim-flavor/flavor.rb +1 -1
- data/lib/vim-flavor/flavorfile.rb +4 -4
- data/lib/vim-flavor/lockfile.rb +2 -2
- data/lib/vim-flavor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75d0bb94ee0f8229e9d2500cdd40d17315585d4fe0d5fa70b3f3ae2fa2216dda
|
4
|
+
data.tar.gz: 02a54ee18922bb471666736b55b4bc783b9581b1ff35b94f5534ce9f91051a0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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:
|
data/lib/vim-flavor/flavor.rb
CHANGED
@@ -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.
|
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.
|
37
|
-
if warn and FileTest.
|
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.
|
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
|
data/lib/vim-flavor/lockfile.rb
CHANGED
@@ -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.
|
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.
|
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
|
|
data/lib/vim-flavor/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|