Skip to content

Commit

Permalink
Use main instead of master (#24)
Browse files Browse the repository at this point in the history
* Update README.md & .rubocop.yml

* Use main instead of master
  • Loading branch information
chubchenko authored Apr 11, 2024
1 parent acc2f01 commit 9b304de
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: build
on:
push:
branches:
- master
- main
pull_request:

schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: docs
on:
push:
branches:
- master
- main
paths:
- "**/*.md"
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: rubocop
on:
push:
branches:
- master
- main
pull_request:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inherit_gem:
AllCops:
Exclude:
- "bin/*"
TargetRubyVersion: 2.5
TargetRubyVersion: 3.0
NewCops: enable

############### Layout ###############
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Send `Capistrano` deployment status to `Slack` via the Incoming Webhooks integra

## Requirements

- Ruby >= 2.5
- Ruby >= 3.0
- Capistrano ~> 3.0
- Slack

Expand Down Expand Up @@ -90,10 +90,10 @@ set :slacky, false

This library aims to support and is [tested against][2] the following Ruby implementations:

- Ruby 2.5
- Ruby 2.6
- Ruby 2.7
- Ruby 3.0
- Ruby 3.1
- Ruby 3.2
- Ruby 3.3

If something doesn't work on one of these Ruby versions, it's a bug.

Expand Down
2 changes: 1 addition & 1 deletion capistrano-slacky.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/chubchenko/capistrano-slacky"
spec.metadata = {
"bug_tracker_uri" => "https://github.com/chubchenko/capistrano-slacky/issues",
"changelog_uri" => "https://github.com/chubchenko/capistrano-slacky/blob/master/CHANGELOG.md",
"changelog_uri" => "https://github.com/chubchenko/capistrano-slacky/blob/main/CHANGELOG.md",
"homepage_uri" => spec.homepage,
"source_code_uri" => "https://github.com/chubchenko/capistrano-slacky",
"github_repo" => "ssh://github.com/chubchenko/capistrano-slacky"
Expand Down
2 changes: 1 addition & 1 deletion spec/capistrano/slacky/facade/body_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
type: :mrkdwn, text: ">*Branch:*"
},
{
type: :mrkdwn, text: "`master`"
type: :mrkdwn, text: "`main`"
},
{
type: :mrkdwn, text: ">*Duration:*"
Expand Down
8 changes: 4 additions & 4 deletions spec/capistrano/slacky/messaging/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{type: :mrkdwn, text: ">*Stage:*"},
{type: :mrkdwn, text: "`production`"},
{type: :mrkdwn, text: ">*Branch:*"},
{type: :mrkdwn, text: "`master`"},
{type: :mrkdwn, text: "`main`"},
{type: :mrkdwn, text: ">*Duration:*"},
{type: :mrkdwn, text: a_string_matching(/`\d{2}:\d{2}`/)}
]
Expand Down Expand Up @@ -99,7 +99,7 @@
{type: :mrkdwn, text: ">*Stage:*"},
{type: :mrkdwn, text: "`production`"},
{type: :mrkdwn, text: ">*Branch:*"},
{type: :mrkdwn, text: "`master`"},
{type: :mrkdwn, text: "`main`"},
{type: :mrkdwn, text: ">*Duration:*"},
{type: :mrkdwn, text: a_string_matching(/`\d{2}:\d{2}`/)}
]
Expand Down Expand Up @@ -159,7 +159,7 @@
{type: :mrkdwn, text: ">*Stage:*"},
{type: :mrkdwn, text: "`production`"},
{type: :mrkdwn, text: ">*Branch:*"},
{type: :mrkdwn, text: "`master`"},
{type: :mrkdwn, text: "`main`"},
{type: :mrkdwn, text: ">*Duration:*"},
{type: :mrkdwn, text: a_string_matching(/`\d{2}:\d{2}`/)}
]
Expand Down Expand Up @@ -201,7 +201,7 @@
{type: :mrkdwn, text: ">*Stage:*"},
{type: :mrkdwn, text: "`production`"},
{type: :mrkdwn, text: ">*Branch:*"},
{type: :mrkdwn, text: "`master`"},
{type: :mrkdwn, text: "`main`"},
{type: :mrkdwn, text: ">*Duration:*"},
{type: :mrkdwn, text: a_string_matching(/`\d{2}:\d{2}`/)}
]
Expand Down
2 changes: 1 addition & 1 deletion spec/support/config/capistrano.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Set the branch name to be deployed from SCM.
Capistrano::Configuration.env.set(
:branch, "master"
:branch, "main"
)

# Set the user name.
Expand Down

0 comments on commit 9b304de

Please sign in to comment.