capistrano 3.10.2 → 3.11.0

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: f6647d6c14352788cccfed2366d573c2cc78fad42a844fe29cc5089965ebd905
4
- data.tar.gz: 12683b59c56bd5956cdcfb1c922982de712860f0917ed3a530076ed1bc05a05c
3
+ metadata.gz: f1881e1201f433bc48dbc66746fc18c7a2935a8f9fb6ebd1a1738d2ef0b76ead
4
+ data.tar.gz: f568e1ce7457104688457d96651ae1fe6e3278eeaf5b690736ecbd8632c5c678
5
5
  SHA512:
6
- metadata.gz: 4d73f560cc72ef87fa5a949dc235a10762c9a9631de382b3003664703650571ec66264c17346d6c6a68f971e3efcbd2ca48a75b0233ed9790bee6374c748f197
7
- data.tar.gz: adc5f9ac66f0186121bdaa9568bd39d8898d5812c8fb52123c409cd34215f0dccb1a4baebda018b7dc4cc536fff3eb1f747b649159059ff44632fabcc010ef73
6
+ metadata.gz: 5048e39674899c372e7d591935ac6c4a399678adb42ee5b5ab593d471c6a91dc611b280267a3718c5967c1eeb31b94dcc6a3257e358de5df2a95ac72c9392132
7
+ data.tar.gz: fe376f99e76a3743abc79358325afb84a33ce544c6f13b2b2491f324d67c7ad4e7c3b1c28ac421ae64ed26ffe82620837d78ce75433c16adec74fa6f8123123e
@@ -16,10 +16,16 @@ gem "capistrano", github: "capistrano/capistrano", require: false
16
16
 
17
17
  ## [master]
18
18
 
19
- [master]: https://github.com/capistrano/capistrano/compare/v3.10.2...HEAD
19
+ [master]: https://github.com/capistrano/capistrano/compare/v3.11.0...HEAD
20
20
 
21
21
  * Your contribution here!
22
22
 
23
+ ## [`3.11.0`] (2018-06-02)
24
+
25
+ * [#1972](https://github.com/capistrano/capistrano/pull/1972): fallback ask to default when used in non interactive session
26
+
27
+ [`3.11.0`]: https://github.com/capistrano/capistrano/compare/v3.10.2...v3.11.0
28
+
23
29
  ## [`3.10.2`] (2018-04-15)
24
30
 
25
31
  [`3.10.2`]: https://github.com/capistrano/capistrano/compare/v3.10.1...v3.10.2
data/README.md CHANGED
@@ -107,7 +107,7 @@ Add Capistrano to your project's Gemfile using `require: false`:
107
107
 
108
108
  ``` ruby
109
109
  group :development do
110
- gem "capistrano", "~> 3.10", require: false
110
+ gem "capistrano", "~> 3.11", require: false
111
111
  end
112
112
  ```
113
113
 
@@ -36,6 +36,8 @@ module Capistrano
36
36
  end
37
37
 
38
38
  def gets
39
+ return unless $stdin.tty?
40
+
39
41
  if echo?
40
42
  $stdin.gets
41
43
  else
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- VERSION = "3.10.2".freeze
2
+ VERSION = "3.11.0".freeze
3
3
  end
@@ -57,6 +57,17 @@ module Capistrano
57
57
  expect(question.call).to eq(branch)
58
58
  end
59
59
  end
60
+
61
+ context "tty unavailable" do
62
+ before do
63
+ $stdin.expects(:gets).never
64
+ $stdin.expects(:tty?).returns(false)
65
+ end
66
+
67
+ it "returns the default as the value" do
68
+ expect(question.call).to eq(default)
69
+ end
70
+ end
60
71
  end
61
72
  end
62
73
  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.10.2
4
+ version: 3.11.0
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: 2018-04-15 00:00:00.000000000 Z
12
+ date: 2018-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: airbrussh
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  version: '0'
286
286
  requirements: []
287
287
  rubyforge_project:
288
- rubygems_version: 2.7.6
288
+ rubygems_version: 2.7.7
289
289
  signing_key:
290
290
  specification_version: 4
291
291
  summary: Capistrano - Welcome to easy deployment with Ruby over SSH