capistrano 2.15.9 → 2.15.11

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
- SHA1:
3
- metadata.gz: fe2657c8f2aa6a1133f1b14fde0ffa1539494573
4
- data.tar.gz: 4c8515035d2677be3ecb0778bec0ce05c1106ec6
2
+ SHA256:
3
+ metadata.gz: 2bbbdc546cc7bf99f6279f5b9e646b278e6a8afd1019610162e4487734b47f9e
4
+ data.tar.gz: 57448a1d53a918a5180ebb6f7e30b5f33b9145b27cc088f250e8218fdba7f7a6
5
5
  SHA512:
6
- metadata.gz: dc5df21a5dd251af125612bd2be2af0adc4b54619479ec0781dd65d5de41b5dc3903690a3e96200a068b16f06eaff55a855ea9c9df12630175fe1547add7614e
7
- data.tar.gz: 67d5e71632b874e93061b88e1c429187f5f991b12bca97ff0c18bc24fd1dcef8a0dc293cc7d3ac1b41ab3cd173ffba3f115b20a36c1963a868af5a00267d582a
6
+ metadata.gz: 13aad84b057a8b6d856d00c8ee921a82abda3239840ff75535e58ee3e0349446860b0037c85d1622a98a2b8cd081995bcbfc1b374998b72d1d9e6900875b336a
7
+ data.tar.gz: 760398ba57d0b509d16fe0ec8163e0af6f443eb624ec63276fd6b870cc3a3a24866472fde768190fd54d67933850bd12dd4b690700fd82993815ff22d5984d5c
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ ## 2.15.11
2
+
3
+ * Fix `capify` failure on Ruby 3 due to removal of `File.exists?` (#2135) @mackuba
4
+
5
+ ## 2.15.10
6
+
7
+ * Fix Ruby 3.2 compatibility issues (@intrip)
8
+
1
9
  ## 2.15.9
2
10
 
3
11
  * Continue if `HOSTROLEFILTER=` is set
data/Gemfile CHANGED
@@ -9,5 +9,7 @@ gemspec
9
9
  #
10
10
  group :development do
11
11
  gem "rake"
12
+ gem "rexml"
12
13
  gem "pry"
14
+ gem "test-unit"
13
15
  end
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
@@ -248,7 +248,7 @@ module Capistrano
248
248
  prompt_host = nil
249
249
 
250
250
  Proc.new do |ch, stream, out|
251
- if out =~ /^Sorry, try again/
251
+ if out.to_s =~ /^Sorry, try again/
252
252
  if prompt_host.nil? || prompt_host == ch[:server]
253
253
  prompt_host = ch[:server]
254
254
  logger.important out, "#{stream} :: #{ch[:server]}"
@@ -256,7 +256,7 @@ module Capistrano
256
256
  end
257
257
  end
258
258
 
259
- if out =~ /^#{Regexp.escape(sudo_prompt)}/
259
+ if out.to_s =~ /^#{Regexp.escape(sudo_prompt)}/
260
260
  ch.send_data "#{self[:password]}\n"
261
261
  elsif fallback
262
262
  fallback.call(ch, stream, out)
@@ -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"
@@ -102,7 +102,7 @@ module Capistrano
102
102
 
103
103
  Logger.sorted_formatters.each do |formatter|
104
104
  if (formatter[:level] == level || formatter[:level].nil?)
105
- if message =~ formatter[:match] || line_prefix =~ formatter[:match]
105
+ if message =~ formatter[:match] || formatter[:match] =~ line_prefix.to_s
106
106
  color = formatter[:color] if formatter[:color]
107
107
  style = formatter[:style] || formatter[:attribute] # (support original cap colors)
108
108
  message.gsub!(formatter[:match], formatter[:replace]) if formatter[:replace]
@@ -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 = 9
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,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.9
4
+ version: 2.15.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
8
8
  - Lee Hambley
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-27 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
@@ -229,7 +229,7 @@ files:
229
229
  homepage: http://github.com/capistrano/capistrano
230
230
  licenses: []
231
231
  metadata: {}
232
- post_install_message:
232
+ post_install_message:
233
233
  rdoc_options: []
234
234
  require_paths:
235
235
  - lib
@@ -244,9 +244,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubyforge_project:
248
- rubygems_version: 2.6.3
249
- signing_key:
247
+ rubygems_version: 3.4.13
248
+ signing_key:
250
249
  specification_version: 3
251
250
  summary: Capistrano - Welcome to easy deployment with Ruby over SSH
252
251
  test_files: