capistrano 3.19.0 → 3.19.2
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 +4 -4
- data/lib/capistrano/scm/git.rb +2 -1
- data/lib/capistrano/version.rb +1 -1
- data/spec/lib/capistrano/scm/git_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89b84c86d1ca625c8f90da2f0467bf1d8e8d59ee2c96b2a2e6e4c52b6221b36f
|
4
|
+
data.tar.gz: 850d8bb74ee1aa87969afc8dfe0a33dd5020c8df0af83954b015772e40d2ff1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 537daaabf1d165c15f0e5662970f525a658bd23cbc422a6b8e5bf2cc7e9a029682c3e48ae5004040d1a794e052372966cbd6f8531ea1a47b17b713051bd2ed31
|
7
|
+
data.tar.gz: 4df6d30c77f06dac1f779eb1119e314b53fec30f412a648352e1cc5b163d9cb1b66391f7fb5c21bea4f334085a6956e5a4083396066caa2bbf91ba591b7e4f34
|
data/lib/capistrano/scm/git.rb
CHANGED
@@ -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)
|
data/lib/capistrano/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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
|