Skip to content

Commit 2500bc1

Browse files
committed
Bump the ruby stack.
1 parent 30f7bc9 commit 2500bc1

File tree

8 files changed

+60
-17
lines changed

8 files changed

+60
-17
lines changed

VimFlavor renamed to Flavorfile

File renamed without changes.

Flavorfile.lock

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
kana/vim-textobj-user (0.7.6)
2+
kana/vim-vspec (v1.9.2)

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
source 'https://rubygems.org'
22

3-
gem 'vim-flavor', '~> 1.1'
3+
gem 'vim-flavor', '~> 4.0'
4+
gem 'rake', '~> 13.0'

bin/bundle

+23-14
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
require "rubygems"
1212

1313
m = Module.new do
14-
module_function
14+
module_function
1515

1616
def invoked_as_script?
1717
File.expand_path($0) == File.expand_path(__FILE__)
@@ -31,7 +31,7 @@ m = Module.new do
3131
bundler_version = a
3232
end
3333
next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34-
bundler_version = $1 || ">= 0.a"
34+
bundler_version = $1
3535
update_index = i
3636
end
3737
bundler_version
@@ -61,32 +61,41 @@ m = Module.new do
6161
end
6262

6363
def bundler_version
64-
@bundler_version ||= begin
64+
@bundler_version ||=
6565
env_var_version || cli_arg_version ||
66-
lockfile_version || "#{Gem::Requirement.default}.a"
67-
end
66+
lockfile_version
67+
end
68+
69+
def bundler_requirement
70+
return "#{Gem::Requirement.default}.a" unless bundler_version
71+
72+
bundler_gem_version = Gem::Version.new(bundler_version)
73+
74+
requirement = bundler_gem_version.approximate_recommendation
75+
76+
return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
77+
78+
requirement += ".a" if bundler_gem_version.prerelease?
79+
80+
requirement
6881
end
6982

7083
def load_bundler!
7184
ENV["BUNDLE_GEMFILE"] ||= gemfile
7285

73-
# must dup string for RG < 1.8 compatibility
74-
activate_bundler(bundler_version.dup)
86+
activate_bundler
7587
end
7688

77-
def activate_bundler(bundler_version)
78-
if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new("2.0")
79-
bundler_version = "< 2"
80-
end
89+
def activate_bundler
8190
gem_error = activation_error_handling do
82-
gem "bundler", bundler_version
91+
gem "bundler", bundler_requirement
8392
end
8493
return if gem_error.nil?
8594
require_error = activation_error_handling do
8695
require "bundler/version"
8796
end
88-
return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION))
89-
warn "Activating bundler (#{bundler_version}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_version}'`"
97+
return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
98+
warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
9099
exit 42
91100
end
92101

bin/rake

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'rake' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
require "pathname"
12+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13+
Pathname.new(__FILE__).realpath)
14+
15+
bundle_binstub = File.expand_path("../bundle", __FILE__)
16+
17+
if File.file?(bundle_binstub)
18+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19+
load(bundle_binstub)
20+
else
21+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23+
end
24+
end
25+
26+
require "rubygems"
27+
require "bundler/setup"
28+
29+
load Gem.bin_path("rake", "rake")

bin/thor

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
1515
bundle_binstub = File.expand_path("../bundle", __FILE__)
1616

1717
if File.file?(bundle_binstub)
18-
if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
18+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
1919
load(bundle_binstub)
2020
else
2121
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.

bin/vim-flavor

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
1515
bundle_binstub = File.expand_path("../bundle", __FILE__)
1616

1717
if File.file?(bundle_binstub)
18-
if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
18+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
1919
load(bundle_binstub)
2020
else
2121
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.

doc/tags

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vim-textobj-variable-segment-contents vim-textobj-variable-segment.txt /*vim-textobj-variable-segment-contents*
2+
vim-textobj-variable-segment-vim-textobj-variable-segment vim-textobj-variable-segment.txt /*vim-textobj-variable-segment-vim-textobj-variable-segment*

0 commit comments

Comments
 (0)