capistrano 2.15.8 → 2.15.10

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
- SHA1:
3
- metadata.gz: 25404ae990d8cd87aa0f95df00bd5c92eba20a79
4
- data.tar.gz: 5d4faf52933b2e2403b0af2197f7ef08a4ebd29a
2
+ SHA256:
3
+ metadata.gz: f986600872a063729f0240985dbfd69909eefafa12c2fc21bd2facb3f1af2964
4
+ data.tar.gz: 6d171b71a54a3f5c1d49e609a81704c7839b33b8d33428017024506113c2d321
5
5
  SHA512:
6
- metadata.gz: 7d7b6db6a6ccef452e1876832438f8b4ca1f03728fc193a8c4d03515fa13c2f1a69d7b42b7b96fb7a64b414e5d045713f7ef67f984d1561ff9e5a2992f62560a
7
- data.tar.gz: 2755b60b64493e09e63872b12d34650c5e9efc888fa00902bd98b3cb0b26365672fee0ff41b27c2542889527a12280895ed389487a7fe53f107798463ef6f342
6
+ metadata.gz: b5612f8f95dce8fa876597c8071b969f213c217afb0116c653ccb01a38f3f2bec5c1bfc712db32d6f67f649771e664de4d61ba1c5952fd1b2585837814a4626a
7
+ data.tar.gz: 256108d0340a68bce7ca25bdcecc41ea5c618b1ad2df98323e7b5ee6ecf26a7f4a930af1292b4d42a1778b824063d8a6bfe630a473be374f7055412d9768c0c0
data/CHANGELOG CHANGED
@@ -1,3 +1,21 @@
1
+ ## 2.15.10
2
+
3
+ * Fix Ruby 3.2 compatibility issues (@intrip)
4
+
5
+ ## 2.15.9
6
+
7
+ * Continue if `HOSTROLEFILTER=` is set
8
+ * Don't treat `run()` as a parallel task in logging
9
+
10
+ ## 2.15.8 / May 30, 2016
11
+
12
+ * Empty release bump
13
+
14
+ ## 2.15.7 / May 30, 2016
15
+
16
+ * Fix subversion authentication arguments
17
+ * Fix rescue block for asset_manifest_prefix
18
+
1
19
  ## 2.15.6 / June 17 2015
2
20
 
3
21
  * Handle new Sprockets manifest name (@skaes)
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
@@ -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)
@@ -320,7 +320,7 @@ module Capistrano
320
320
  branches += server_branches
321
321
  end
322
322
  branches
323
- end
323
+ end.compact.uniq
324
324
  end
325
325
 
326
326
  end
@@ -153,7 +153,7 @@ module Capistrano
153
153
  servers = find_servers_for_task(task, options)
154
154
 
155
155
  if servers.empty?
156
- if ENV['HOSTFILTER'] || task.options.merge(options)[:on_no_matching_servers] == :continue
156
+ if ENV['HOSTFILTER'] || ENV['HOSTROLEFILTER'] || task.options.merge(options)[:on_no_matching_servers] == :continue
157
157
  logger.info "skipping `#{task.fully_qualified_name}' because no servers matched"
158
158
  else
159
159
  unless dry_run
@@ -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]
@@ -2,7 +2,7 @@ module Capistrano
2
2
  class Version
3
3
  MAJOR = 2
4
4
  MINOR = 15
5
- PATCH = 8
5
+ PATCH = 10
6
6
 
7
7
  def self.to_s
8
8
  "#{MAJOR}.#{MINOR}.#{PATCH}"
@@ -243,6 +243,12 @@ class ConfigurationActionsInvocationTest < Test::Unit::TestCase
243
243
 
244
244
  def test_parallel_command_execution_with_matching_servers
245
245
  @config.expects(:execute_on_servers)
246
+
247
+ logger = mock('logger')
248
+ logger.stubs(:debug).with("executing multiple commands in parallel").once
249
+ logger.stubs(:trace).twice
250
+ @config.stubs(:logger).returns(logger)
251
+
246
252
  assert_block("should not raise Argument error") do
247
253
  begin
248
254
  @config.servers = [:app, :db]
@@ -258,6 +264,18 @@ class ConfigurationActionsInvocationTest < Test::Unit::TestCase
258
264
  end
259
265
  end
260
266
 
267
+ def test_run_only_logs_once
268
+ @config.servers = [:app, :db]
269
+
270
+ logger = mock('logger')
271
+ logger.stubs(:debug).with("executing \"ls\"")
272
+ @config.stubs(:logger).returns(logger)
273
+
274
+ @config.expects(:execute_on_servers)
275
+
276
+ @config.run("ls")
277
+ end
278
+
261
279
  private
262
280
 
263
281
  def make_config
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.8
4
+ version: 2.15.10
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-05-30 00:00:00.000000000 Z
12
+ date: 2023-05-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.12
248
+ signing_key:
250
249
  specification_version: 3
251
250
  summary: Capistrano - Welcome to easy deployment with Ruby over SSH
252
251
  test_files: