adap 0.1.8 → 0.1.11
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 +4 -4
- data/.github/workflows/release.yml +8 -6
- data/.github/workflows/ruby.yml +0 -8
- data/README_FOR_DEVELOPER.md +48 -0
- data/lib/adap/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4d066d43955b785f767ef096ba10701eaa529d53887e43252a6e8afbe25e734
|
4
|
+
data.tar.gz: 9877d4024cc4f6a63edd63f793df411189d3a3b24fa5a921b21af77c9e01d76d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add8058e5b15e510ee04c22de47f2843e3a26794bbe8bf306d67d0b0b16d51444ce760722af8b44046dd449421922fbd0eb13b3333c0ea22bd414b8b9f4390ae
|
7
|
+
data.tar.gz: 39eb23a7bd6af61aee6baea593fb5f74465ae6b4fd46c5288450a5b10013feafc47444e03c20204e8374e044637eadf849db23ea0c31c1a28e130854241cfc5d
|
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
name: Ruby
|
1
|
+
name: Release
|
4
2
|
|
5
3
|
on:
|
6
4
|
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab or GitHub CLI(gh workflow run)
|
@@ -10,7 +8,7 @@ on:
|
|
10
8
|
required: true
|
11
9
|
|
12
10
|
permissions:
|
13
|
-
contents:
|
11
|
+
contents: write
|
14
12
|
|
15
13
|
jobs:
|
16
14
|
release:
|
@@ -22,7 +20,7 @@ jobs:
|
|
22
20
|
runs-on: ${{ matrix.os }}
|
23
21
|
env:
|
24
22
|
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
25
|
-
GEM_HOST_OTP_CODE: ${{
|
23
|
+
GEM_HOST_OTP_CODE: ${{ inputs.otp }}
|
26
24
|
steps:
|
27
25
|
- name: Check out ${{ github.event.repository.owner.name }}/${{ github.event.repository.name }}
|
28
26
|
uses: actions/checkout@v4
|
@@ -35,6 +33,11 @@ jobs:
|
|
35
33
|
ruby-version: ${{ matrix.ruby }}
|
36
34
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
37
35
|
|
36
|
+
- name: Configure Git to be able to push git tag to GitHub
|
37
|
+
run: |
|
38
|
+
git config --global user.name "${GITHUB_ACTOR}"
|
39
|
+
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
|
40
|
+
|
38
41
|
- name: Run tests
|
39
42
|
run: |
|
40
43
|
cd ${GITHUB_WORKSPACE}/${{ github.event.repository.name }}
|
@@ -42,7 +45,6 @@ jobs:
|
|
42
45
|
bundle exec rake
|
43
46
|
|
44
47
|
- name: Push to rubygems.org
|
45
|
-
if: startsWith(github.ref, 'refs/tags/v')
|
46
48
|
run: |
|
47
49
|
echo "Pushing to rubygems.org. You need update the version in lib/adap/version.rb before pushing it."
|
48
50
|
echo "Detected version is \"$(grep VERSION lib/adap/version.rb)\""
|
data/.github/workflows/ruby.yml
CHANGED
@@ -59,11 +59,3 @@ jobs:
|
|
59
59
|
bundle install --retry 3
|
60
60
|
bundle exec rake
|
61
61
|
|
62
|
-
- name: Push to rubygems.org
|
63
|
-
if: startsWith(github.ref, 'refs/tags/v')
|
64
|
-
run: |
|
65
|
-
echo "Pushing to rubygems.org. You need update the version in lib/adap/version.rb before pushing it."
|
66
|
-
echo "Detected version is \"$(grep VERSION lib/adap/version.rb)\""
|
67
|
-
cd ${GITHUB_WORKSPACE}/${{ github.event.repository.name }}
|
68
|
-
bundle exec rake release
|
69
|
-
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# To run workflow
|
2
|
+
|
3
|
+
# GitHub Actions
|
4
|
+
## For unit testing
|
5
|
+
When you push to any branch "master", "develop" or merge a PR to "master", the unit tests will run automatically.
|
6
|
+
Please check the progress in the Actions tab.
|
7
|
+
|
8
|
+
|
9
|
+
## For release (interactively)
|
10
|
+
First, you need to modify a version in `./lib/adap/version.py`.
|
11
|
+
Then, you can run the following command to trigger the release workflow.
|
12
|
+
|
13
|
+
```
|
14
|
+
$ vim lib/adap/version.rb
|
15
|
+
-> Update VERSION
|
16
|
+
```
|
17
|
+
|
18
|
+
Then create a commit and push it and create a PR.
|
19
|
+
After it was merged, you can run the following command to trigger the release workflow.
|
20
|
+
|
21
|
+
```
|
22
|
+
$ gh workflow run
|
23
|
+
? Select a workflow [Use arrows to move, type to filter]
|
24
|
+
> Ruby (release.yml) // <- Select "Ruby (release.yml)"
|
25
|
+
Ruby (ruby.yml)
|
26
|
+
Dependabot Updates (dependabot-updates)
|
27
|
+
|
28
|
+
? otp (required) // <- Input the OTP code
|
29
|
+
```
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```
|
34
|
+
$ gh run list --workflow=release.yml
|
35
|
+
STATUS TITLE WORKFLOW BRANCH EVENT ID ELAPSED AGE
|
36
|
+
* Ruby Ruby master workflow_dispatch 12673039585 10s less than a minute ago
|
37
|
+
```
|
38
|
+
|
39
|
+
|
40
|
+
## For release (non-interactively)
|
41
|
+
You can also trigger the release workflow non-interactively.
|
42
|
+
|
43
|
+
```
|
44
|
+
gh workflow run release.yml --ref=master --field otp=123456
|
45
|
+
```
|
46
|
+
|
47
|
+
`--field otp=123456` is required to input the OTP code.
|
48
|
+
You have to change `123456` to the actual OTP code.
|
data/lib/adap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tsutomu Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- Gemfile
|
66
66
|
- Gemfile.lock
|
67
67
|
- README.md
|
68
|
+
- README_FOR_DEVELOPER.md
|
68
69
|
- Rakefile
|
69
70
|
- adap.gemspec
|
70
71
|
- bin/console
|