capistrano 3.10.1 → 3.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 404e54f1e5c948447a42f25d3747b65a2f1781adfb5ef3c4442e338cbce4aab1
4
- data.tar.gz: 2d7150c57e5cc6cbb9e2c99a8685beb96d44a64582167116db8726ced468910c
3
+ metadata.gz: f6647d6c14352788cccfed2366d573c2cc78fad42a844fe29cc5089965ebd905
4
+ data.tar.gz: 12683b59c56bd5956cdcfb1c922982de712860f0917ed3a530076ed1bc05a05c
5
5
  SHA512:
6
- metadata.gz: f06d16ce9d224b8b59fb80d201c964f056ae4eb529a154706d0a5289558b9e1ef701a83d02bcd5d73731c3ab4876e3b9c9ab07af1c31effd6635ddfa823f5e5a
7
- data.tar.gz: 40055c8e10dace6d5ddbefb04b6020449c147e07fa017b707541d79595525a31097c534c0c3524fad0b135e9eb3ccd0e21582e1b62ea0df2377661f2ca9c9a87
6
+ metadata.gz: 4d73f560cc72ef87fa5a949dc235a10762c9a9631de382b3003664703650571ec66264c17346d6c6a68f971e3efcbd2ca48a75b0233ed9790bee6374c748f197
7
+ data.tar.gz: adc5f9ac66f0186121bdaa9568bd39d8898d5812c8fb52123c409cd34215f0dccb1a4baebda018b7dc4cc536fff3eb1f747b649159059ff44632fabcc010ef73
@@ -11,15 +11,27 @@ All notable changes to this project will be documented in this file, in reverse
11
11
  **Capistrano uses a six-week release cadence.** Every six weeks, give or take, any changes in master will be published as a new rubygems version. If you'd like to use a feature or fix that is in master and you can't wait for the next planned release, put this in your project's Gemfile to use the master branch directly:
12
12
 
13
13
  ```ruby
14
- gem "capistrano", :github => "capistrano/capistrano"
14
+ gem "capistrano", github: "capistrano/capistrano", require: false
15
15
  ```
16
16
 
17
17
  ## [master]
18
18
 
19
- [master]: https://github.com/capistrano/capistrano/compare/v3.10.1...HEAD
19
+ [master]: https://github.com/capistrano/capistrano/compare/v3.10.2...HEAD
20
20
 
21
21
  * Your contribution here!
22
22
 
23
+ ## [`3.10.2`] (2018-04-15)
24
+
25
+ [`3.10.2`]: https://github.com/capistrano/capistrano/compare/v3.10.1...v3.10.2
26
+
27
+ ### Breaking changes:
28
+
29
+ * None
30
+
31
+ ### Fixes:
32
+
33
+ * [#1977](https://github.com/capistrano/capistrano/pull/1977): Remove append operator when writing the git file - [@mmiller1](https://github.com/mmiller1)
34
+
23
35
  ## [`3.10.1`] (2017-12-08)
24
36
 
25
37
  [`3.10.1`]: https://github.com/capistrano/capistrano/compare/v3.10.0...v3.10.1
@@ -1,6 +1,6 @@
1
1
  MIT License (MIT)
2
2
 
3
- Copyright (c) 2012-2017 Tom Clements, Lee Hambley
3
+ Copyright (c) 2012-2018 Tom Clements, Lee Hambley
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -103,11 +103,11 @@ Capistrano 3 expects a POSIX shell like Bash or Sh. Shells like tcsh, csh, and s
103
103
 
104
104
  ### Install the Capistrano gem
105
105
 
106
- Add Capistrano to your project's Gemfile:
106
+ 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"
110
+ gem "capistrano", "~> 3.10", require: false
111
111
  end
112
112
  ```
113
113
 
@@ -200,7 +200,7 @@ Contributions to Capistrano, in the form of code, documentation or idea, are gla
200
200
 
201
201
  MIT License (MIT)
202
202
 
203
- Copyright (c) 2012-2015 Tom Clements, Lee Hambley
203
+ Copyright (c) 2012-2018 Tom Clements, Lee Hambley
204
204
 
205
205
  Permission is hereby granted, free of charge, to any person obtaining a copy
206
206
  of this software and associated documentation files (the "Software"), to deal
@@ -47,10 +47,14 @@ module Capistrano
47
47
  def any?(key)
48
48
  value = fetch(key)
49
49
  if value && value.respond_to?(:any?)
50
- value.any?
51
- else
52
- !fetch(key).nil?
50
+ begin
51
+ return value.any?
52
+ rescue ArgumentError # rubocop:disable Lint/HandleExceptions
53
+ # Gracefully ignore values whose `any?` method doesn't accept 0 args
54
+ end
53
55
  end
56
+
57
+ !value.nil?
54
58
  end
55
59
 
56
60
  def is_question?(key)
@@ -238,7 +238,7 @@ namespace :deploy do
238
238
  task :set_current_revision do
239
239
  on release_roles(:all) do
240
240
  within release_path do
241
- execute :echo, "\"#{fetch(:current_revision)}\" >> REVISION"
241
+ execute :echo, "\"#{fetch(:current_revision)}\" > REVISION"
242
242
  end
243
243
  end
244
244
  end
@@ -21,7 +21,7 @@ set :repo_url, "git@example.com:me/my_repo.git"
21
21
  # set :pty, true
22
22
 
23
23
  # Default value for :linked_files is []
24
- # append :linked_files, "config/database.yml", "config/secrets.yml"
24
+ # append :linked_files, "config/database.yml"
25
25
 
26
26
  # Default value for linked_dirs is []
27
27
  # append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system"
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- VERSION = "3.10.1".freeze
2
+ VERSION = "3.10.2".freeze
3
3
  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.1
4
+ version: 3.10.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: 2017-12-08 00:00:00.000000000 Z
12
+ date: 2018-04-15 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.3
288
+ rubygems_version: 2.7.6
289
289
  signing_key:
290
290
  specification_version: 4
291
291
  summary: Capistrano - Welcome to easy deployment with Ruby over SSH