capistrano 3.9.0 → 3.15.0

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.
Files changed (54) hide show
  1. checksums.yaml +5 -5
  2. data/.github/pull_request_template.md +0 -4
  3. data/.github/release-drafter.yml +17 -0
  4. data/.github/workflows/push.yml +12 -0
  5. data/.rubocop.yml +1 -0
  6. data/.travis.yml +10 -7
  7. data/CHANGELOG.md +1 -589
  8. data/DEVELOPMENT.md +1 -1
  9. data/Dangerfile +1 -1
  10. data/Gemfile +33 -1
  11. data/LICENSE.txt +1 -1
  12. data/README.md +7 -3
  13. data/RELEASING.md +3 -3
  14. data/Rakefile +5 -0
  15. data/capistrano.gemspec +8 -3
  16. data/features/deploy.feature +16 -0
  17. data/features/step_definitions/assertions.rb +2 -2
  18. data/features/step_definitions/setup.rb +6 -4
  19. data/lib/capistrano/configuration/host_filter.rb +1 -2
  20. data/lib/capistrano/configuration/question.rb +18 -3
  21. data/lib/capistrano/configuration/role_filter.rb +1 -2
  22. data/lib/capistrano/configuration.rb +7 -3
  23. data/lib/capistrano/doctor/servers_doctor.rb +1 -1
  24. data/lib/capistrano/doctor/variables_doctor.rb +10 -3
  25. data/lib/capistrano/dsl/paths.rb +2 -2
  26. data/lib/capistrano/dsl.rb +1 -1
  27. data/lib/capistrano/i18n.rb +4 -0
  28. data/lib/capistrano/immutable_task.rb +3 -2
  29. data/lib/capistrano/scm/git.rb +6 -4
  30. data/lib/capistrano/scm/tasks/git.rake +7 -7
  31. data/lib/capistrano/tasks/deploy.rake +16 -6
  32. data/lib/capistrano/templates/deploy.rb.erb +6 -3
  33. data/lib/capistrano/templates/stage.rb.erb +1 -1
  34. data/lib/capistrano/version.rb +1 -1
  35. data/spec/integration/dsl_spec.rb +5 -3
  36. data/spec/lib/capistrano/application_spec.rb +16 -40
  37. data/spec/lib/capistrano/configuration/host_filter_spec.rb +10 -5
  38. data/spec/lib/capistrano/configuration/plugin_installer_spec.rb +1 -1
  39. data/spec/lib/capistrano/configuration/question_spec.rb +39 -10
  40. data/spec/lib/capistrano/configuration/scm_resolver_spec.rb +3 -2
  41. data/spec/lib/capistrano/doctor/environment_doctor_spec.rb +1 -1
  42. data/spec/lib/capistrano/doctor/gems_doctor_spec.rb +1 -1
  43. data/spec/lib/capistrano/doctor/servers_doctor_spec.rb +1 -1
  44. data/spec/lib/capistrano/doctor/variables_doctor_spec.rb +1 -1
  45. data/spec/lib/capistrano/dsl/paths_spec.rb +30 -0
  46. data/spec/lib/capistrano/dsl/task_enhancements_spec.rb +6 -6
  47. data/spec/lib/capistrano/dsl_spec.rb +5 -5
  48. data/spec/lib/capistrano/immutable_task_spec.rb +1 -1
  49. data/spec/lib/capistrano/plugin_spec.rb +2 -2
  50. data/spec/lib/capistrano/scm/git_spec.rb +16 -5
  51. data/spec/lib/capistrano/version_validator_spec.rb +23 -0
  52. data/spec/spec_helper.rb +13 -0
  53. data/spec/support/test_app.rb +8 -3
  54. metadata +15 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a4ae57e87cafad9fe7cb1307d847f5f3bd9d7ccb
4
- data.tar.gz: e6ea828e10e6863b07c9fcd685a334464a3a3890
2
+ SHA256:
3
+ metadata.gz: 3f0b8e22a26ba92d6cf7d062d7b1fd2571add774ff9522a8282080e25e0c885a
4
+ data.tar.gz: 822a124b873390bd677370e4194103c94e756e0422feb1de5f3bdd0553a85315
5
5
  SHA512:
6
- metadata.gz: 49fd63f868fdc87cefd58e047dc22c2b05cd95211a7a99080a010f627c3f32944539a16876ade7496257d4a8b71e18fc099a57ec126abf3f2efa7d2991d36c41
7
- data.tar.gz: 35064cfd5c3da3a39e8ca044aa1eae03b8b0fbbea3c22a08fb08d5c2755b1fe18f7be8f2e7bccc431214d166f0d953e5c112d026b818a462105761528f3478cc
6
+ metadata.gz: fa22266dc215f03041ba72b0b36a2dc88df951fea9426912c2aa34f8683daa622f0acffeb801768ed0cc82571eeebfd9bce11e0f6708b997f44d446d10d53ba4
7
+ data.tar.gz: 338e679cf1601854f6d5f2f692693550fbd7d46d94add967df47770f830926bf55c170e09b748076b330f53f305be1dec990139c49b8a0a4c43527e573d9a9da
@@ -13,14 +13,10 @@ to keep the conversation linked together.
13
13
  - [ ] Did you run `bundle exec rubocop -a` to fix linter issues?
14
14
  - [ ] If relevant, did you create a test?
15
15
  - [ ] Did you confirm that the RSpec tests pass?
16
- - [ ] If you are fixing a bug or introducing a new feature, did you add a CHANGELOG entry?
17
16
 
18
17
  ### Other Information
19
18
 
20
19
  If there's anything else that's important and relevant to your pull
21
20
  request, mention that information here.
22
21
 
23
- If you are updating any of the CHANGELOG files or are asked to update the
24
- CHANGELOG files by reviewers, please add the CHANGELOG entry at the top of the file where indicated.
25
-
26
22
  Thanks for helping improve Capistrano!
@@ -0,0 +1,17 @@
1
+ name-template: "$NEXT_PATCH_VERSION"
2
+ tag-template: "v$NEXT_PATCH_VERSION"
3
+ categories:
4
+ - title: "⚠️ Breaking Changes"
5
+ label: "⚠️ Breaking"
6
+ - title: "✨ New Features"
7
+ label: "✨ Feature"
8
+ - title: "🐛 Bug Fixes"
9
+ label: "🐛 Bug Fix"
10
+ - title: "📚 Documentation"
11
+ label: "📚 Docs"
12
+ - title: "🏠 Housekeeping"
13
+ label: "🏠 Housekeeping"
14
+ change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
15
+ no-changes-template: "- No changes"
16
+ template: |
17
+ $CHANGES
@@ -0,0 +1,12 @@
1
+ on: push
2
+ name: Push
3
+ jobs:
4
+ draftRelease:
5
+ name: Draft Release
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@master
9
+ - name: Draft Release
10
+ uses: toolmantim/release-drafter@v5.2.0
11
+ env:
12
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
data/.rubocop.yml CHANGED
@@ -8,6 +8,7 @@ Lint/AmbiguousBlockAssociation:
8
8
  false
9
9
  Metrics/BlockLength:
10
10
  Exclude:
11
+ - "*.gemspec"
11
12
  - "spec/**/*"
12
13
  - "lib/**/*.rake"
13
14
  Style/BarePercentLiterals:
data/.travis.yml CHANGED
@@ -1,7 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.1
4
- - 2.3.1
3
+ - 3.0
4
+ - 2.7
5
+ - 2.6
6
+ - 2.5
7
+ - 2.4
8
+ - 2.3
5
9
  - 2.2
6
10
  - 2.1
7
11
  - 2.0
@@ -14,14 +18,13 @@ matrix:
14
18
  include:
15
19
  - rvm: rbx-2
16
20
  script: bundle exec rake spec
17
- # Run Danger only once, on 2.3.1
18
- - rvm: 2.3.1
21
+ # Run Danger only once, on 2.5
22
+ - rvm: 2.5
19
23
  before_script: bundle exec danger
20
24
 
21
25
  script: bundle exec rake spec rubocop
22
26
  install: bundle install --jobs=1
23
27
  cache: bundler
24
28
  branches:
25
- except:
26
- - legacy-v2
27
- sudo: false
29
+ only:
30
+ - master