capistrano 2.15.10 → 2.15.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f986600872a063729f0240985dbfd69909eefafa12c2fc21bd2facb3f1af2964
4
- data.tar.gz: 6d171b71a54a3f5c1d49e609a81704c7839b33b8d33428017024506113c2d321
3
+ metadata.gz: 2bbbdc546cc7bf99f6279f5b9e646b278e6a8afd1019610162e4487734b47f9e
4
+ data.tar.gz: 57448a1d53a918a5180ebb6f7e30b5f33b9145b27cc088f250e8218fdba7f7a6
5
5
  SHA512:
6
- metadata.gz: b5612f8f95dce8fa876597c8071b969f213c217afb0116c653ccb01a38f3f2bec5c1bfc712db32d6f67f649771e664de4d61ba1c5952fd1b2585837814a4626a
7
- data.tar.gz: 256108d0340a68bce7ca25bdcecc41ea5c618b1ad2df98323e7b5ee6ecf26a7f4a930af1292b4d42a1778b824063d8a6bfe630a473be374f7055412d9768c0c0
6
+ metadata.gz: 13aad84b057a8b6d856d00c8ee921a82abda3239840ff75535e58ee3e0349446860b0037c85d1622a98a2b8cd081995bcbfc1b374998b72d1d9e6900875b336a
7
+ data.tar.gz: 760398ba57d0b509d16fe0ec8163e0af6f443eb624ec63276fd6b870cc3a3a24866472fde768190fd54d67933850bd12dd4b690700fd82993815ff22d5984d5c
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.15.11
2
+
3
+ * Fix `capify` failure on Ruby 3 due to removal of `File.exists?` (#2135) @mackuba
4
+
1
5
  ## 2.15.10
2
6
 
3
7
  * Fix Ruby 3.2 compatibility issues (@intrip)
data/bin/capify CHANGED
@@ -22,7 +22,7 @@ end
22
22
 
23
23
  if ARGV.empty?
24
24
  abort "Please specify the directory to capify, e.g. `#{File.basename($0)} .'"
25
- elsif !File.exists?(ARGV.first)
25
+ elsif !File.exist?(ARGV.first)
26
26
  abort "`#{ARGV.first}' does not exist."
27
27
  elsif !File.directory?(ARGV.first)
28
28
  abort "`#{ARGV.first}' is not a directory."
@@ -75,12 +75,12 @@ role :db, "your slave db-server here"
75
75
  base = ARGV.shift
76
76
  files.each do |file, content|
77
77
  file = File.join(base, file)
78
- if File.exists?(file)
78
+ if File.exist?(file)
79
79
  warn "[skip] '#{file}' already exists"
80
- elsif File.exists?(file.downcase)
80
+ elsif File.exist?(file.downcase)
81
81
  warn "[skip] '#{file.downcase}' exists, which could conflict with `#{file}'"
82
82
  else
83
- unless File.exists?(File.dirname(file))
83
+ unless File.exist?(File.dirname(file))
84
84
  puts "[add] making directory '#{File.dirname(file)}'"
85
85
  FileUtils.mkdir(File.dirname(file))
86
86
  end
@@ -52,7 +52,7 @@ Capistrano::Configuration.instance.load do
52
52
  FileUtils.mkdir_p(location)
53
53
  stages.each do |name|
54
54
  file = File.join(location, name + ".rb")
55
- unless File.exists?(file)
55
+ unless File.exist?(file)
56
56
  File.open(file, "w") do |f|
57
57
  f.puts "# #{name.upcase}-specific deployment configuration"
58
58
  f.puts "# please put general deployment config in config/deploy.rb"
@@ -227,7 +227,7 @@ module Capistrano
227
227
  end
228
228
 
229
229
  def copy_repository_to_local_cache
230
- return refresh_local_cache if File.exists?(copy_cache)
230
+ return refresh_local_cache if File.exist?(copy_cache)
231
231
  create_local_cache
232
232
  end
233
233
 
@@ -2,7 +2,7 @@ module Capistrano
2
2
  class Version
3
3
  MAJOR = 2
4
4
  MINOR = 15
5
- PATCH = 10
5
+ PATCH = 11
6
6
 
7
7
  def self.to_s
8
8
  "#{MAJOR}.#{MINOR}.#{PATCH}"
@@ -222,7 +222,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
222
222
  @config[:copy_cache] = true
223
223
 
224
224
  Dir.stubs(:tmpdir).returns("/temp/dir")
225
- File.expects(:exists?).with("/temp/dir/captest").returns(false)
225
+ File.expects(:exist?).with("/temp/dir/captest").returns(false)
226
226
  Dir.expects(:chdir).with("/temp/dir/captest").yields
227
227
 
228
228
  @source.expects(:checkout).with("154", "/temp/dir/captest").returns(:local_checkout)
@@ -240,7 +240,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
240
240
  @config[:copy_cache] = true
241
241
 
242
242
  Dir.stubs(:tmpdir).returns("/temp/dir")
243
- File.expects(:exists?).with("/temp/dir/captest").returns(true)
243
+ File.expects(:exist?).with("/temp/dir/captest").returns(true)
244
244
  Dir.expects(:chdir).with("/temp/dir/captest").yields
245
245
 
246
246
  @source.expects(:sync).with("154", "/temp/dir/captest").returns(:local_sync)
@@ -258,7 +258,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
258
258
  @config[:copy_cache] = "/u/caches/captest"
259
259
 
260
260
  Dir.stubs(:tmpdir).returns("/temp/dir")
261
- File.expects(:exists?).with("/u/caches/captest").returns(true)
261
+ File.expects(:exist?).with("/u/caches/captest").returns(true)
262
262
  Dir.expects(:chdir).with("/u/caches/captest").yields
263
263
 
264
264
  @source.expects(:sync).with("154", "/u/caches/captest").returns(:local_sync)
@@ -277,7 +277,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
277
277
 
278
278
  Dir.stubs(:pwd).returns("/u")
279
279
  Dir.stubs(:tmpdir).returns("/temp/dir")
280
- File.expects(:exists?).with("/u/caches/captest").returns(true)
280
+ File.expects(:exist?).with("/u/caches/captest").returns(true)
281
281
  Dir.expects(:chdir).with("/u/caches/captest").yields
282
282
 
283
283
  @source.expects(:sync).with("154", "/u/caches/captest").returns(:local_sync)
@@ -296,7 +296,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
296
296
  @config[:copy_exclude] = "*/bar.txt"
297
297
 
298
298
  Dir.stubs(:tmpdir).returns("/temp/dir")
299
- File.expects(:exists?).with("/temp/dir/captest").returns(true)
299
+ File.expects(:exist?).with("/temp/dir/captest").returns(true)
300
300
  Dir.expects(:chdir).with("/temp/dir/captest").yields
301
301
 
302
302
  @source.expects(:sync).with("154", "/temp/dir/captest").returns(:local_sync)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.10
4
+ version: 2.15.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-17 00:00:00.000000000 Z
12
+ date: 2023-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.4.12
247
+ rubygems_version: 3.4.13
248
248
  signing_key:
249
249
  specification_version: 3
250
250
  summary: Capistrano - Welcome to easy deployment with Ruby over SSH