capistrano 3.19.0 → 3.19.2

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
2
  SHA256:
3
- metadata.gz: 394b09ce3f7d404792341024337f15b508055a5cff92fe9c3b3db0b30a195f86
4
- data.tar.gz: 94609866fe948bfa1e7f9ded8fc76f0622fc7123733285a82ac300dc772ccbef
3
+ metadata.gz: 89b84c86d1ca625c8f90da2f0467bf1d8e8d59ee2c96b2a2e6e4c52b6221b36f
4
+ data.tar.gz: 850d8bb74ee1aa87969afc8dfe0a33dd5020c8df0af83954b015772e40d2ff1a
5
5
  SHA512:
6
- metadata.gz: 03eca17ed3fd4484babfee22ed9bbb6a844eb79b6141471295a6cd15fe7423b01322fc57ec9c4771e08eebfd02ac51cca9ea8fb4df230dd1104ed94c739bad6a
7
- data.tar.gz: e622bfb56fc09785b8ca7c1cbb156c2c78348209acfe3b5ca7137d53f16a762c96e89a3a71d80f7ba9dfc29cd1c845cce69e5df8ea045da429252ce07a0dac64
6
+ metadata.gz: 537daaabf1d165c15f0e5662970f525a658bd23cbc422a6b8e5bf2cc7e9a029682c3e48ae5004040d1a794e052372966cbd6f8531ea1a47b17b713051bd2ed31
7
+ data.tar.gz: 4df6d30c77f06dac1f779eb1119e314b53fec30f412a648352e1cc5b163d9cb1b66391f7fb5c21bea4f334085a6956e5a4083396066caa2bbf91ba591b7e4f34
@@ -2,6 +2,7 @@ require "capistrano/scm/plugin"
2
2
  require "cgi"
3
3
  require "securerandom"
4
4
  require "shellwords"
5
+ require "stringio"
5
6
  require "uri"
6
7
 
7
8
  class Capistrano::SCM::Git < Capistrano::SCM::Plugin
@@ -80,7 +81,7 @@ class Capistrano::SCM::Git < Capistrano::SCM::Plugin
80
81
  end
81
82
 
82
83
  def fetch_revision_time
83
- backend.capture(:git, "log -1 --pretty=format:\"%ct\" #{fetch(:branch)}")
84
+ backend.capture(:git, "--no-pager log -1 --pretty=format:\"%ct\" #{fetch(:branch)}")
84
85
  end
85
86
 
86
87
  def git(*args)
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- VERSION = "3.19.0".freeze
2
+ VERSION = "3.19.2".freeze
3
3
  end
@@ -172,9 +172,9 @@ module Capistrano
172
172
  end
173
173
 
174
174
  describe "#fetch_revision_time" do
175
- it "should capture git log" do
175
+ it "should capture git log without a pager" do
176
176
  env.set(:branch, "branch")
177
- backend.expects(:capture).with(:git, "log -1 --pretty=format:\"%ct\" branch").returns("1715828406")
177
+ backend.expects(:capture).with(:git, "--no-pager log -1 --pretty=format:\"%ct\" branch").returns("1715828406")
178
178
  revision_time = subject.fetch_revision_time
179
179
  expect(revision_time).to eq("1715828406")
180
180
  end
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: 3.19.0
4
+ version: 3.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Clements
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-06-24 00:00:00.000000000 Z
12
+ date: 2024-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: airbrussh
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  - !ruby/object:Gem::Version
239
239
  version: '0'
240
240
  requirements: []
241
- rubygems_version: 3.5.8
241
+ rubygems_version: 3.5.22
242
242
  signing_key:
243
243
  specification_version: 4
244
244
  summary: Capistrano - Welcome to easy deployment with Ruby over SSH