rack-user_agent 0.5.3 → 0.6.0
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 +46 -0
- data/.github/workflows/test.yml +5 -11
- data/CHANGELOG.md +4 -0
- data/lib/rack/user_agent/version.rb +1 -1
- data/rack-user_agent.gemspec +2 -0
- metadata +5 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '029834281c0a906ec52bb95f00d254510c78ebb8404f1a5356aa0299786a48fd'
|
|
4
|
+
data.tar.gz: 56f3f56c8ac67496f1485c6a1b225b41f14265a8e531d7499755d66b1f1cb2ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52d6d293404e6da6cedb73a566cebc6f6ebc00e1c4bdeceff77f1a53e25d69760a4f9a27b1baec5d157f3135e397b887eef18fdf803ed42c19564a7c94989d7c
|
|
7
|
+
data.tar.gz: 95fc30963d403185a5875221cfdcf3676d8f57cf4e9b593b3d9e608933ef88e58e501c9a9c7d3e377331ee318b84f17220942438c7688679cae968f1500142b6
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
push:
|
|
13
|
+
if: github.repository_owner == 'k0kubun'
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
environment:
|
|
17
|
+
name: rubygems.org
|
|
18
|
+
url: https://rubygems.org/gems/rack-user_agent
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
contents: write
|
|
22
|
+
id-token: write
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Harden Runner
|
|
26
|
+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
|
|
27
|
+
with:
|
|
28
|
+
egress-policy: audit
|
|
29
|
+
|
|
30
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
31
|
+
|
|
32
|
+
- name: Set up Ruby
|
|
33
|
+
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
34
|
+
with:
|
|
35
|
+
ruby-version: ruby
|
|
36
|
+
bundler-cache: true
|
|
37
|
+
|
|
38
|
+
- name: Publish to RubyGems
|
|
39
|
+
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
|
40
|
+
|
|
41
|
+
- name: Create GitHub release
|
|
42
|
+
run: |
|
|
43
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
|
44
|
+
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
45
|
+
env:
|
|
46
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -17,22 +17,16 @@ jobs:
|
|
|
17
17
|
fail-fast: false
|
|
18
18
|
matrix:
|
|
19
19
|
ruby:
|
|
20
|
-
- '2
|
|
21
|
-
- '
|
|
22
|
-
- '
|
|
23
|
-
- '3.0'
|
|
24
|
-
- '3.1'
|
|
20
|
+
- '3.2'
|
|
21
|
+
- '3.3'
|
|
22
|
+
- '3.4'
|
|
25
23
|
steps:
|
|
26
|
-
- uses: actions/checkout@
|
|
24
|
+
- uses: actions/checkout@v5
|
|
27
25
|
- name: Set up Ruby
|
|
28
26
|
uses: ruby/setup-ruby@v1
|
|
29
27
|
with:
|
|
30
28
|
ruby-version: ${{ matrix.ruby }}
|
|
31
|
-
|
|
32
|
-
with:
|
|
33
|
-
path: vendor/bundle
|
|
34
|
-
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
35
|
-
restore-keys: ${{ runner.os }}-gems-
|
|
29
|
+
bundler-cache: true
|
|
36
30
|
- name: bundle install
|
|
37
31
|
run: bundle config path vendor/bundle && bundle install -j$(nproc) --retry 3
|
|
38
32
|
- run: bundle exec rake
|
data/CHANGELOG.md
CHANGED
data/rack-user_agent.gemspec
CHANGED
|
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
spec.require_paths = ["lib"]
|
|
20
20
|
|
|
21
|
+
spec.required_ruby_version = '>= 3.2.0'
|
|
22
|
+
|
|
21
23
|
spec.add_dependency "rack", ">= 1.5"
|
|
22
24
|
spec.add_dependency "woothee", ">= 1.0.0"
|
|
23
25
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rack-user_agent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takashi Kokubun
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rack
|
|
@@ -115,6 +114,7 @@ executables: []
|
|
|
115
114
|
extensions: []
|
|
116
115
|
extra_rdoc_files: []
|
|
117
116
|
files:
|
|
117
|
+
- ".github/workflows/release.yml"
|
|
118
118
|
- ".github/workflows/test.yml"
|
|
119
119
|
- ".github_changelog_generator"
|
|
120
120
|
- ".gitignore"
|
|
@@ -139,7 +139,6 @@ homepage: https://github.com/k0kubun/rack-user_agent
|
|
|
139
139
|
licenses:
|
|
140
140
|
- MIT
|
|
141
141
|
metadata: {}
|
|
142
|
-
post_install_message:
|
|
143
142
|
rdoc_options: []
|
|
144
143
|
require_paths:
|
|
145
144
|
- lib
|
|
@@ -147,15 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
147
146
|
requirements:
|
|
148
147
|
- - ">="
|
|
149
148
|
- !ruby/object:Gem::Version
|
|
150
|
-
version:
|
|
149
|
+
version: 3.2.0
|
|
151
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
151
|
requirements:
|
|
153
152
|
- - ">="
|
|
154
153
|
- !ruby/object:Gem::Version
|
|
155
154
|
version: '0'
|
|
156
155
|
requirements: []
|
|
157
|
-
rubygems_version: 3.
|
|
158
|
-
signing_key:
|
|
156
|
+
rubygems_version: 3.6.7
|
|
159
157
|
specification_version: 4
|
|
160
158
|
summary: Rack::Request extension for handling User-Agent.
|
|
161
159
|
test_files:
|