adap 0.1.5 → 0.1.8

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: 6062f55568a4d2f91e7ede91b7419827b7767033adcbf264d8d8cbd64e8533f2
4
- data.tar.gz: 47ae89751e819d81ed42bcb13dcbd967221ba45cf62c9e0d7aa77bfcbff48c03
3
+ metadata.gz: 15cf0c457f1119adc8d5393c23791bf7033be7bc9c1afd8f1b157989cd1786b7
4
+ data.tar.gz: e39ccd38e93cb38d63a17368b9e481cb56977996a3cf401d100175b093fa667b
5
5
  SHA512:
6
- metadata.gz: ce373202bef4eff421528e8de4dcc56d19960834c31573f9d8d04db3f070d86f31bcdd5892c6081edbd5733fc4ee9ca4087e04aa99132201f885e5f443d89543
7
- data.tar.gz: f07477a60bced73b4a28e9d9b5e65f42043f781a92300bad8f5820d10d134bdbd6a19c390d00dc9b43f2b1ef07e289723331a648a4b6367d0036107fd27c61d3
6
+ metadata.gz: 7fc03fd6077f6f0b4961c5f5ca6e4b5ce97259463859c8f4d71ee5e087cf403f74c290677f2f5138a47395b533ed3fede89f1976b5010e0149f4ccabe9824174
7
+ data.tar.gz: 8a9195e6f81ae28dc7aa70b2d8ce51635f36fc89e087fc4cfdbd1e2b37e7f6e823cee40ee5dffd6e9277f4cf2881b38bb687bf88e37a9033c4df287401745a3b
@@ -0,0 +1,51 @@
1
+
2
+
3
+ name: Ruby
4
+
5
+ on:
6
+ workflow_dispatch: # Allows you to run this workflow manually from the Actions tab or GitHub CLI(gh workflow run)
7
+ inputs:
8
+ otp:
9
+ description: "One-time password for RubyGems.org"
10
+ required: true
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ release:
17
+ strategy:
18
+ matrix:
19
+ os: [ubuntu-24.04]
20
+ ruby: ['3.3']
21
+
22
+ runs-on: ${{ matrix.os }}
23
+ env:
24
+ GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
25
+ GEM_HOST_OTP_CODE: ${{ github.event.inputs.rubygems-otp-code }}
26
+ steps:
27
+ - name: Check out ${{ github.event.repository.owner.name }}/${{ github.event.repository.name }}
28
+ uses: actions/checkout@v4
29
+ with:
30
+ path: ${{ github.event.repository.name }}
31
+
32
+ - name: Set up Ruby
33
+ uses: ruby/setup-ruby@v1
34
+ with:
35
+ ruby-version: ${{ matrix.ruby }}
36
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
37
+
38
+ - name: Run tests
39
+ run: |
40
+ cd ${GITHUB_WORKSPACE}/${{ github.event.repository.name }}
41
+ bundle install --retry 3
42
+ bundle exec rake
43
+
44
+ - name: Push to rubygems.org
45
+ if: startsWith(github.ref, 'refs/tags/v')
46
+ run: |
47
+ echo "Pushing to rubygems.org. You need update the version in lib/adap/version.rb before pushing it."
48
+ echo "Detected version is \"$(grep VERSION lib/adap/version.rb)\""
49
+ cd ${GITHUB_WORKSPACE}/${{ github.event.repository.name }}
50
+ bundle exec rake release
51
+
@@ -62,5 +62,8 @@ jobs:
62
62
  - name: Push to rubygems.org
63
63
  if: startsWith(github.ref, 'refs/tags/v')
64
64
  run: |
65
- echo "DEMO: Push to rubygems.org"
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
66
69
 
data/lib/adap/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ModAdap
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.8"
3
3
  end
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.5
4
+ version: 0.1.8
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-07 00:00:00.000000000 Z
11
+ date: 2025-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,6 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".github/workflows/release.yml"
62
63
  - ".github/workflows/ruby.yml"
63
64
  - ".gitignore"
64
65
  - Gemfile