capistrano 3.17.2 → 3.18.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: 49e380f055cd6e5c80d3d11b522a65aec03336836359a2fda5a79fb5d8544f21
4
- data.tar.gz: 34b8c6ca202c4849091996a33e6f336468d0d256e688ff319a04c60f147650c9
3
+ metadata.gz: 9ab1e05034437bbe5d148d9447fe46f3bd0fa701006f1869771c43f63ae41645
4
+ data.tar.gz: 88e5bb8cc3226a711dedb82c07b947f7408933080fcf3e6363b56fb0c3eb1333
5
5
  SHA512:
6
- metadata.gz: 541c564e7762267590b9d4cf597b4883086fdc599e6be2a8fbb7d46352c977e4d9a170238b609f089c234bd8ef2afb6fc3e7368040be3b1fa96a35b6ce017363
7
- data.tar.gz: 278a3a3f5b7a52fef2e9cfab2c29dc5c6b1def9325e299a6675feb0d9e6e4396798b4733bd42c681db997a997e8a71a4d8c1538ee05a7548266d60d94dc62640
6
+ metadata.gz: 2015d9c6ebec1ba0f6d21da7694c74220e8ad6960d85661c731a449dcae0b60224ffd1ea77ebd43885e9155056015c24292e4a8e92260283f4642d9252974e4e
7
+ data.tar.gz: 350560886e9cb5ab72badb0ab5ad153a476ac87900a4dd26fae7990de10ee21c96e8abe1c4305ab0313e39a1adfa86c4cca582328f6c593c62c6df2118397779
@@ -1,5 +1,5 @@
1
- name-template: "$NEXT_PATCH_VERSION"
2
- tag-template: "v$NEXT_PATCH_VERSION"
1
+ name-template: "$RESOLVED_VERSION"
2
+ tag-template: "v$RESOLVED_VERSION"
3
3
  categories:
4
4
  - title: "⚠️ Breaking Changes"
5
5
  label: "⚠️ Breaking"
@@ -11,7 +11,15 @@ categories:
11
11
  label: "📚 Docs"
12
12
  - title: "🏠 Housekeeping"
13
13
  label: "🏠 Housekeeping"
14
+ version-resolver:
15
+ minor:
16
+ labels:
17
+ - "⚠️ Breaking"
18
+ - "✨ Feature"
19
+ default: patch
14
20
  change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
15
21
  no-changes-template: "- No changes"
16
22
  template: |
17
23
  $CHANGES
24
+
25
+ **Full Changelog:** https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
@@ -0,0 +1,88 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches: [master]
5
+ pull_request:
6
+ jobs:
7
+ spec:
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ ruby: ["2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "head"]
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
19
+ - name: rake spec
20
+ run: bundle exec rake spec
21
+ spec-legacy:
22
+ runs-on: ubuntu-20.04
23
+ strategy:
24
+ matrix:
25
+ ruby: ["2.0", "2.1", "2.2"]
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ - name: Set up Ruby
29
+ uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby }}
32
+ bundler-cache: true
33
+ - name: rake spec
34
+ run: bundle exec rake spec
35
+ spec-all:
36
+ runs-on: ubuntu-latest
37
+ needs: [spec, spec-legacy]
38
+ if: always()
39
+ steps:
40
+ - name: All tests ok
41
+ if: ${{ !(contains(needs.*.result, 'failure')) }}
42
+ run: exit 0
43
+ - name: Some tests failed
44
+ if: ${{ contains(needs.*.result, 'failure') }}
45
+ run: exit 1
46
+ rubocop:
47
+ runs-on: ubuntu-latest
48
+ steps:
49
+ - uses: actions/checkout@v4
50
+ - name: Set up Ruby
51
+ uses: ruby/setup-ruby@v1
52
+ with:
53
+ ruby-version: "ruby" # latest-stable
54
+ bundler-cache: true
55
+ - name: rake rubocop
56
+ run: bundle exec rake rubocop
57
+ danger:
58
+ runs-on: ubuntu-latest
59
+ steps:
60
+ - uses: actions/checkout@v4
61
+ - name: Set up Ruby
62
+ uses: ruby/setup-ruby@v1
63
+ with:
64
+ ruby-version: "ruby" # latest-stable
65
+ bundler-cache: true
66
+ - name: danger
67
+ env:
68
+ DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
69
+ run: bundle exec danger
70
+ features:
71
+ needs: [spec, spec-legacy]
72
+ runs-on: macos-12
73
+ steps:
74
+ - uses: actions/checkout@v4
75
+ - name: Cache Vagrant boxes
76
+ uses: actions/cache@v3
77
+ with:
78
+ path: ~/.vagrant.d/boxes
79
+ key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }}
80
+ restore-keys: |
81
+ ${{ runner.os }}-vagrant-
82
+ - name: Set up Ruby
83
+ uses: ruby/setup-ruby@v1
84
+ with:
85
+ ruby-version: "ruby" # latest-stable
86
+ bundler-cache: true
87
+ - name: rake features
88
+ run: bundle exec rake features
@@ -0,0 +1,18 @@
1
+ name: Release Drafter
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ permissions:
9
+ contents: write
10
+ pull-requests: read
11
+
12
+ jobs:
13
+ update_release_draft:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: release-drafter/release-drafter@v5
17
+ env:
18
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
data/DEVELOPMENT.md CHANGED
@@ -51,12 +51,6 @@ $ bundle exec rake features
51
51
  $ bundle exec rake features KEEP_RUNNING=1
52
52
  ```
53
53
 
54
- ### Report failing Cucumber features!
55
-
56
- Currently, the Capistrano CI build does *not* run the Cucumber suite. This means it is possible for a failing Cucumber feature to sneak in without being noticed by our continuous integration checks.
57
-
58
- **If you come across a failing Cucumber feature, this is a bug.** Please report it by opening a GitHub issue. Or even better: do your best to fix the feature and submit a pull request!
59
-
60
54
  ## Coding guidelines
61
55
 
62
56
  This project uses [RuboCop](https://github.com/bbatsov/rubocop) to enforce standard Ruby coding guidelines.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  # Capistrano: A deployment automation tool built on Ruby, Rake, and SSH.
3
3
 
4
- [![Gem Version](https://badge.fury.io/rb/capistrano.svg)](http://badge.fury.io/rb/capistrano) [![Build Status](https://circleci.com/gh/capistrano/capistrano/tree/master.svg?style=shield)](https://app.circleci.com/pipelines/github/capistrano/capistrano?branch=master) [![Code Climate](https://codeclimate.com/github/capistrano/capistrano/badges/gpa.svg)](https://codeclimate.com/github/capistrano/capistrano) [![CodersClan](https://img.shields.io/badge/get-support-blue.svg)](http://codersclan.net/?repo_id=325&source=small)
4
+ [![Gem Version](https://badge.fury.io/rb/capistrano.svg)](http://badge.fury.io/rb/capistrano) [![Build Status](https://github.com/capistrano/capistrano/actions/workflows/ci.yml/badge.svg)](https://github.com/capistrano/capistrano/actions/workflows/ci.yml) [![Code Climate](https://codeclimate.com/github/capistrano/capistrano/badges/gpa.svg)](https://codeclimate.com/github/capistrano/capistrano) [![CodersClan](https://img.shields.io/badge/get-support-blue.svg)](http://codersclan.net/?repo_id=325&source=small)
5
5
 
6
6
  Capistrano is a framework for building automated deployment scripts. Although Capistrano itself is written in Ruby, it can easily be used to deploy projects of any language or framework, be it Rails, Java, or PHP.
7
7
 
@@ -68,7 +68,7 @@ module Capistrano
68
68
  # works as expected.
69
69
  #
70
70
  def assert_valid_later(key, callable)
71
- validation_callback = lambda do
71
+ validation_callback = proc do
72
72
  value = callable.call
73
73
  assert_valid_now(key, value)
74
74
  value
@@ -24,7 +24,7 @@ set :repo_url, "git@example.com:me/my_repo.git"
24
24
  # append :linked_files, "config/database.yml", 'config/master.key'
25
25
 
26
26
  # Default value for linked_dirs is []
27
- # append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "tmp/webpacker", "public/system", "vendor", "storage"
27
+ # append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system", "vendor", "storage"
28
28
 
29
29
  # Default value for default_env is {}
30
30
  # set :default_env, { path: "/opt/ruby/bin:$PATH" }
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- VERSION = "3.17.2".freeze
2
+ VERSION = "3.18.0".freeze
3
3
  end
@@ -10,7 +10,7 @@ Vagrant.configure("2") do |config|
10
10
  primary.vm.network "forwarded_port", guest: 22, host: "222#{i}".to_i
11
11
  primary.vm.provision :shell, inline: "sudo apt-get -y install git-core"
12
12
 
13
- vagrantkey = open("https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub", "r", &:read)
13
+ vagrantkey = URI.open("https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub", "r", &:read)
14
14
 
15
15
  primary.vm.provision :shell,
16
16
  inline: <<-INLINE
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.17.2
4
+ version: 3.18.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: 2023-02-20 00:00:00.000000000 Z
12
+ date: 2023-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: airbrussh
@@ -78,11 +78,11 @@ executables:
78
78
  extensions: []
79
79
  extra_rdoc_files: []
80
80
  files:
81
- - ".circleci/config.yml"
82
81
  - ".github/issue_template.md"
83
82
  - ".github/pull_request_template.md"
84
83
  - ".github/release-drafter.yml"
85
- - ".github/workflows/push.yml"
84
+ - ".github/workflows/ci.yml"
85
+ - ".github/workflows/release-drafter.yml"
86
86
  - ".gitignore"
87
87
  - ".rubocop.yml"
88
88
  - CHANGELOG.md
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
- rubygems_version: 3.4.7
238
+ rubygems_version: 3.4.19
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: Capistrano - Welcome to easy deployment with Ruby over SSH
data/.circleci/config.yml DELETED
@@ -1,129 +0,0 @@
1
- version: 2.1
2
-
3
- executors:
4
- ruby:
5
- parameters:
6
- version:
7
- description: "Ruby version number"
8
- default: "3.1"
9
- type: string
10
- docker:
11
- - image: ruby:<< parameters.version >>
12
-
13
- commands:
14
- bundle_install:
15
- description: Install Ruby dependencies with Bundler
16
- parameters:
17
- version:
18
- description: "Ruby version number"
19
- default: "3.1"
20
- type: string
21
- steps:
22
- - restore_cache:
23
- keys:
24
- - bundle-v1-{{ arch }}-<< parameters.version >>
25
- - run:
26
- name: Install Ruby Dependencies
27
- command: |
28
- gem install bundler --conservative --no-document || gem install bundler -v '< 2' --no-document
29
- bundle config --local path vendor/bundle
30
- bundle check || (bundle install --jobs=4 --retry=3 && bundle clean)
31
- - save_cache:
32
- paths:
33
- - ./vendor/bundle
34
- key: bundle-v1-{{ arch }}-<< parameters.version >>-{{ checksum "Gemfile.lock" }}
35
- update_ssh_client:
36
- description: Install recent SSH client for compatibility with GitHub
37
- steps:
38
- - run:
39
- name: Install OpenSSH 8.1p1 if necessary
40
- command: |
41
- if $(ssh -V 2>&1 | grep -q -v OpenSSH_8); then
42
- apt-get update
43
- apt-get install -y --force-yes libssl-dev
44
- mkdir ~/tempdownload
45
- cd ~/tempdownload
46
- wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.1p1.tar.gz
47
- tar zxvf openssh-8.1p1.tar.gz
48
- cd openssh-8.1p1 && ./configure --prefix=/usr && make ssh && make install
49
- fi
50
-
51
- jobs:
52
- danger:
53
- executor: ruby
54
- steps:
55
- - checkout
56
- - bundle_install
57
- - run: bundle exec danger
58
-
59
- rubocop:
60
- executor: ruby
61
- steps:
62
- - checkout
63
- - bundle_install
64
- - run: bundle exec rubocop
65
-
66
- spec:
67
- parameters:
68
- version:
69
- description: "Ruby version number"
70
- default: "3.1"
71
- type: string
72
- executor:
73
- name: ruby
74
- version: << parameters.version >>
75
- steps:
76
- - update_ssh_client
77
- - checkout
78
- - bundle_install:
79
- version: << parameters.version >>
80
- - run: bundle exec rake spec
81
-
82
- workflows:
83
- version: 2
84
- commit-workflow:
85
- jobs:
86
- - danger
87
- - rubocop
88
- - spec:
89
- matrix:
90
- parameters:
91
- version:
92
- [
93
- "2.0",
94
- "2.1",
95
- "2.2",
96
- "2.3",
97
- "2.4",
98
- "2.5",
99
- "2.6",
100
- "2.7",
101
- "3.0",
102
- "3.1",
103
- ]
104
- cron-workflow:
105
- jobs:
106
- - rubocop
107
- - spec:
108
- matrix:
109
- parameters:
110
- version:
111
- [
112
- "2.0",
113
- "2.1",
114
- "2.2",
115
- "2.3",
116
- "2.4",
117
- "2.5",
118
- "2.6",
119
- "2.7",
120
- "3.0",
121
- "3.1",
122
- ]
123
- triggers:
124
- - schedule:
125
- cron: "0 13 * * 6"
126
- filters:
127
- branches:
128
- only:
129
- - master
@@ -1,12 +0,0 @@
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 }}