capistrano-itamae 1.0.1 → 1.0.3

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: 00d5786ed91b10aee2f797d48ff0f3cf34992a4a4f43aaca0bf765f84ef53b15
4
- data.tar.gz: a7198ab779f2c0b060d70adda2f7e081536209fc80550e0a9112670c6410a500
3
+ metadata.gz: 9afcd64420d5f62f8a313526951fc5aa856a24a58289fe09532ab05b0107e66c
4
+ data.tar.gz: 2997fbaeea47d13504882143dd3b953a43b1009cb7b6e3ecfc39e75d7a695786
5
5
  SHA512:
6
- metadata.gz: 719c4583ea98c62fe737bba19c5e5dd4c33d13c47349610ec8f4e3d390f4ab4ec185c769a03bef20ca8bd47d78d03a38d716c6cfe5803f157ee147171adc6523
7
- data.tar.gz: 9afec7b52cecb4c2707216bda56fd9b325968ab82d77896a3d6d9261b790ca8a2177e0162179e09212a65275bb67d182f3fe345497c1f216abd27ae94edd6a41
6
+ metadata.gz: e81f27db21ce302fdde1ca01908b3cf29f8a65e1ea3940f2f5f4b0d277d87a3f672f7e50c417c896a06bd85bff777845edee929659db6ab7a8d24971da126374
7
+ data.tar.gz: 0576657e92ea5ecaa8b0c601f8f989118ffc86d7a12164bce0df662102574389788d16138588352e8cb6c511bf3da0b5ead56776b73280bd3d45627d71cd10c5
@@ -0,0 +1,12 @@
1
+ # c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: github-actions
6
+ directory: /
7
+ schedule:
8
+ interval: weekly
9
+ cooldown:
10
+ default-days: 7
11
+ assignees:
12
+ - sue445
@@ -0,0 +1,41 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ release:
8
+ if: github.repository == 'sue445/capistrano-itamae'
9
+ runs-on: ubuntu-latest
10
+
11
+ environment:
12
+ name: rubygems.org
13
+ url: https://rubygems.org/gems/capistrano-itamae
14
+
15
+ permissions:
16
+ contents: write
17
+ id-token: write
18
+
19
+ steps:
20
+ - name: Harden Runner
21
+ uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
22
+ with:
23
+ egress-policy: audit
24
+
25
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26
+
27
+ - name: Set up Ruby
28
+ uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
29
+ with:
30
+ bundler-cache: true
31
+ ruby-version: ruby
32
+
33
+ - name: Publish to RubyGems
34
+ uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
35
+
36
+ - name: Create GitHub release
37
+ run: |
38
+ tag_name="$(git describe --tags --abbrev=0)"
39
+ gh release create "${tag_name}" --verify-tag --generate-notes
40
+ env:
41
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -2,92 +2,46 @@ name: test
2
2
 
3
3
  on:
4
4
  push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
5
12
  schedule:
6
13
  - cron: "0 10 * * 5" # JST 19:00 (Fri)
7
14
 
8
- env:
9
- CI: "true"
10
-
11
15
  jobs:
12
16
  test:
13
- runs-on: ${{ matrix.runner }}
17
+ runs-on: ubuntu-latest
14
18
 
15
19
  strategy:
16
20
  fail-fast: false
17
21
 
18
22
  matrix:
19
23
  ruby:
20
- - 2.3.0
21
- - 2.4.0
22
- - 2.5.0
23
- - 2.6.0
24
- - 2.7.0
25
- - 2.8.0-dev
26
- include:
27
- - ruby: 2.3.0
28
- runner: ubuntu-16.04
29
- - ruby: 2.4.0
30
- runner: ubuntu-latest
31
- - ruby: 2.5.0
32
- runner: ubuntu-latest
33
- - ruby: 2.6.0
34
- runner: ubuntu-latest
35
- - ruby: 2.7.0
36
- runner: ubuntu-latest
37
- - ruby: 2.8.0-dev
38
- runner: ubuntu-latest
24
+ # - "2.3"
25
+ - "2.4"
26
+ - "2.5"
27
+ - "2.6"
28
+ - "2.7"
29
+ - "3.0"
30
+ - "3.1"
31
+ - "3.2"
32
+ - "3.3"
33
+ - "3.4"
39
34
 
40
35
  steps:
41
- - uses: actions/checkout@v2
42
-
43
- - name: Set up rbenv
44
- uses: masa-iwasaki/setup-rbenv@1.1.0
45
-
46
- - name: Cache RBENV_ROOT
47
- uses: actions/cache@v1
48
- id: cache_rbenv
49
- with:
50
- path: ~/.rbenv/versions
51
- key: v1-rbenv-${{ runner.os }}-${{ matrix.ruby }}
52
- if: "!endsWith(matrix.ruby, '-dev')"
53
-
54
- - name: Reinstall libssl-dev
55
- run: |
56
- set -xe
57
- sudo apt-get remove -y libssl-dev
58
- sudo apt-get install -y libssl-dev=1.0.2g-1ubuntu4.15
59
- if: matrix.runner == 'ubuntu-16.04'
60
-
61
- - name: Install Ruby
62
- run: |
63
- set -xe
64
- eval "$(rbenv init -)"
65
- rbenv install -s $RBENV_VERSION
36
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
66
37
 
67
- gem install bundler --no-document -v 1.17.3 || true
68
- env:
69
- RBENV_VERSION: ${{ matrix.ruby }}
70
- continue-on-error: ${{ endsWith(matrix.ruby, '-dev') }}
71
-
72
- - name: Cache vendor/bundle
73
- uses: actions/cache@v1
74
- id: cache_gem
38
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
75
39
  with:
76
- path: vendor/bundle
77
- key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
78
- restore-keys: |
79
- v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
80
- continue-on-error: ${{ endsWith(matrix.ruby, '-dev') }}
40
+ ruby-version: ${{ matrix.ruby }}
41
+ bundler-cache: true
42
+ cache-version: ${{ matrix.gemfile }}
81
43
 
82
- - name: bundle update
83
- run: |
84
- set -xe
85
- eval "$(rbenv init -)"
86
- bundle config path vendor/bundle
87
- bundle update --jobs $(nproc) --retry 3
88
- env:
89
- RBENV_VERSION: ${{ matrix.ruby }}
90
- continue-on-error: ${{ endsWith(matrix.ruby, '-dev') }}
44
+ - run: bundle update --jobs $(nproc) --retry 3
91
45
 
92
46
  - name: Setup sandbox server
93
47
  working-directory: spec/integration
@@ -100,21 +54,16 @@ jobs:
100
54
  working-directory: spec/integration
101
55
  run: |
102
56
  set -xe
103
- eval "$(rbenv init -)"
104
57
  bundle exec rake spec
105
- env:
106
- RBENV_VERSION: ${{ matrix.ruby }}
107
- continue-on-error: ${{ endsWith(matrix.ruby, '-dev') }}
108
58
 
109
59
  - name: Slack Notification (not success)
110
- uses: homoluctus/slatify@v2.0.0
60
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
111
61
  if: "! success()"
62
+ continue-on-error: true
112
63
  with:
113
- job_name: ${{ format('*build* ({0})', matrix.ruby) }}
114
- type: ${{ job.status }}
115
- icon_emoji: ":octocat:"
116
- url: ${{ secrets.SLACK_WEBHOOK }}
117
- token: ${{ secrets.GITHUB_TOKEN }}
64
+ status: ${{ job.status }}
65
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
66
+ matrix: ${{ toJson(matrix) }}
118
67
 
119
68
  notify:
120
69
  needs:
@@ -124,11 +73,9 @@ jobs:
124
73
 
125
74
  steps:
126
75
  - name: Slack Notification (success)
127
- uses: homoluctus/slatify@v2.0.0
76
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
128
77
  if: always()
78
+ continue-on-error: true
129
79
  with:
130
- job_name: '*build*'
131
- type: ${{ job.status }}
132
- icon_emoji: ":octocat:"
133
- url: ${{ secrets.SLACK_WEBHOOK }}
134
- token: ${{ secrets.GITHUB_TOKEN }}
80
+ status: ${{ job.status }}
81
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/capistrano-itamae/compare/v1.0.1...master)
2
+ [full changelog](http://github.com/sue445/capistrano-itamae/compare/v1.0.3...master)
3
+
4
+ ## [v1.0.3](https://github.com/sue445/capistrano-itamae/releases/tag/v1.0.3)
5
+ [full changelog](http://github.com/sue445/capistrano-itamae/compare/v1.0.2...v1.0.3)
6
+
7
+ * Release gem from GitHub Actions
8
+ * https://github.com/sue445/capistrano-itamae/pull/50
9
+
10
+ ## v1.0.2
11
+ [full changelog](http://github.com/sue445/capistrano-itamae/compare/v1.0.1...v1.0.2)
12
+
13
+ * Enable MFA requirement for gem releasing
14
+ * https://github.com/sue445/capistrano-itamae/pull/37
3
15
 
4
16
  ## v1.0.1
5
17
  [full changelog](http://github.com/sue445/capistrano-itamae/compare/v1.0.0...v1.0.1)
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Run [itamae](https://github.com/itamae-kitchen/itamae) in capistrano task
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/capistrano-itamae.svg)](https://badge.fury.io/rb/capistrano-itamae)
6
- [![Build Status](https://github.com/sue445/capistrano-itamae/workflows/test/badge.svg?branch=master)](https://github.com/sue445/capistrano-itamae/actions?query=workflow%3Atest)
6
+ [![test](https://github.com/sue445/capistrano-itamae/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/capistrano-itamae/actions/workflows/test.yml)
7
7
  [![Code Climate](https://codeclimate.com/github/sue445/capistrano-itamae/badges/gpa.svg)](https://codeclimate.com/github/sue445/capistrano-itamae)
8
8
 
9
9
  ## Installation
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/capistrano-itamae"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
21
+
17
22
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
23
  spec.bindir = "exe"
19
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -23,6 +28,8 @@ Gem::Specification.new do |spec|
23
28
  spec.add_dependency "capistrano", ">= 3.5.0"
24
29
  spec.add_dependency "itamae"
25
30
 
31
+ spec.add_development_dependency "bcrypt_pbkdf", ">= 1.0", "< 2.0"
32
+ spec.add_development_dependency "ed25519", ">= 1.2", "< 2.0"
26
33
  spec.add_development_dependency "pry-byebug"
27
34
  spec.add_development_dependency "rake", ">= 11.0"
28
35
  spec.add_development_dependency "serverspec"
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Itamae
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2020-01-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -52,6 +51,46 @@ dependencies:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: bcrypt_pbkdf
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '1.0'
61
+ - - "<"
62
+ - !ruby/object:Gem::Version
63
+ version: '2.0'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '1.0'
71
+ - - "<"
72
+ - !ruby/object:Gem::Version
73
+ version: '2.0'
74
+ - !ruby/object:Gem::Dependency
75
+ name: ed25519
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '1.2'
81
+ - - "<"
82
+ - !ruby/object:Gem::Version
83
+ version: '2.0'
84
+ type: :development
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '1.2'
91
+ - - "<"
92
+ - !ruby/object:Gem::Version
93
+ version: '2.0'
55
94
  - !ruby/object:Gem::Dependency
56
95
  name: pry-byebug
57
96
  requirement: !ruby/object:Gem::Requirement
@@ -101,6 +140,8 @@ executables: []
101
140
  extensions: []
102
141
  extra_rdoc_files: []
103
142
  files:
143
+ - ".github/dependabot.yml"
144
+ - ".github/workflows/release_gem.yml"
104
145
  - ".github/workflows/test.yml"
105
146
  - ".gitignore"
106
147
  - CHANGELOG.md
@@ -119,8 +160,11 @@ files:
119
160
  homepage: https://github.com/sue445/capistrano-itamae
120
161
  licenses:
121
162
  - MIT
122
- metadata: {}
123
- post_install_message:
163
+ metadata:
164
+ homepage_uri: https://github.com/sue445/capistrano-itamae
165
+ source_code_uri: https://github.com/sue445/capistrano-itamae
166
+ changelog_uri: https://github.com/sue445/capistrano-itamae/blob/master/CHANGELOG.md
167
+ rubygems_mfa_required: 'true'
124
168
  rdoc_options: []
125
169
  require_paths:
126
170
  - lib
@@ -135,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
179
  - !ruby/object:Gem::Version
136
180
  version: '0'
137
181
  requirements: []
138
- rubygems_version: 3.1.2
139
- signing_key:
182
+ rubygems_version: 3.6.7
140
183
  specification_version: 4
141
184
  summary: Run itamae in capistrano task
142
185
  test_files: []