vim-flavor 4.0.1 → 4.0.3
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/.github/workflows/ci.yml +2 -2
- data/CHANGELOG.md +20 -2
- data/features/step_definitions/flavor_steps.rb +1 -1
- data/lib/vim-flavor/flavor.rb +5 -5
- 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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29fd7f74d2d091f62e106af07360714b988e0672d66dddf551bbd8367acfd84c
|
4
|
+
data.tar.gz: 86c40c1535dfc44473673c8884b0769050237b8c32a7b5b8b07594910fe50229
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ab2a3e58ccac409126f0d1e663128d004d2d876d90f036c07629a6ab64cbb2185f1801545e388022007fffce714a9c8d87ddf5cd5e10378628472b2a75870f4
|
7
|
+
data.tar.gz: a839bae7743cb04a92284b1310b0010ab64f47f3f4450f653e4eb8f4dc1d204c58ca1f897d3f21d3acb0bf28f76a52098a251d08f15ca48ae9dc68db3018e23d
|
data/.github/workflows/ci.yml
CHANGED
@@ -12,7 +12,7 @@ jobs:
|
|
12
12
|
test:
|
13
13
|
runs-on: ubuntu-latest
|
14
14
|
steps:
|
15
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v4
|
16
16
|
with:
|
17
17
|
fetch-depth: 0 # t/blame.vim requires all commits.
|
18
18
|
submodules: true
|
@@ -21,7 +21,7 @@ jobs:
|
|
21
21
|
with:
|
22
22
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
23
23
|
- name: Set up Vim
|
24
|
-
uses: thinca/action-setup-vim@
|
24
|
+
uses: thinca/action-setup-vim@v2
|
25
25
|
with:
|
26
26
|
vim_version: ${{ github.event_name == 'schedule' && 'head' || 'v8.2.3446' }}
|
27
27
|
vim_type: vim
|
data/CHANGELOG.md
CHANGED
@@ -8,7 +8,25 @@ 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.3...master)
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## [4.0.3](https://github.com/kana/vim-flavor/compare/v4.0.2...v4.0.3) - 2024-07-13
|
17
|
+
|
18
|
+
### Fixed
|
19
|
+
|
20
|
+
* Fix an error while installing Vim plugins caused by Vim 9.1.0573 or later.
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## [4.0.2](https://github.com/kana/vim-flavor/compare/v4.0.1...v4.0.2) - 2022-01-11
|
26
|
+
|
27
|
+
### Fixed
|
28
|
+
|
29
|
+
* Remove deprecated usage of `.exists?` style methods ([#66](https://github.com/kana/vim-flavor/pull/66))
|
12
30
|
|
13
31
|
|
14
32
|
|
@@ -25,7 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
25
43
|
This is a breaking change if you installed Vim plugins with vim-flavor v4.0.0
|
26
44
|
or older. You'll see the following error in that case:
|
27
45
|
|
28
|
-
fatal: remote error:
|
46
|
+
fatal: remote error:
|
29
47
|
The unauthenticated git protocol on port 9418 is no longer supported.
|
30
48
|
|
31
49
|
There are two ways to fix this errors:
|
data/lib/vim-flavor/flavor.rb
CHANGED
@@ -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.
|
24
|
+
Dir.exist?(cached_repo_path)
|
25
25
|
end
|
26
26
|
|
27
27
|
def cached_version?(version)
|
@@ -96,10 +96,10 @@ module Vim
|
|
96
96
|
git checkout -f '#{locked_version.to_revision}' &&
|
97
97
|
git checkout-index -a -f --prefix='#{deployment_path}/' &&
|
98
98
|
{
|
99
|
-
vim -u NONE -i NONE -n -N -e -s
|
100
|
-
silent! helptags #{deployment_path}/doc
|
101
|
-
qall!
|
102
|
-
|
99
|
+
vim -u NONE -i NONE -n -N -e -s \
|
100
|
+
-c 'silent! helptags #{deployment_path}/doc' \
|
101
|
+
-c 'qall!' \
|
102
|
+
|| true
|
103
103
|
}
|
104
104
|
} 2>&1
|
105
105
|
]
|
@@ -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.3
|
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: 2024-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
- !ruby/object:Gem::Version
|
251
251
|
version: '0'
|
252
252
|
requirements: []
|
253
|
-
rubygems_version: 3.2.
|
253
|
+
rubygems_version: 3.2.22
|
254
254
|
signing_key:
|
255
255
|
specification_version: 4
|
256
256
|
summary: A tool to manage your favorite Vim plugins
|