rack-simple_user_agent 1.2.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e673bdf75b3674e3e910f0b6a5ac7b4bb6fc37dce40e86b1c5731bacfb58ec9
4
- data.tar.gz: 6fed5774ad907fb57ec9816f344c7f6d16cef66a7a050dc95e58c5c46e05ebdb
3
+ metadata.gz: d4d0511d9debff4d9ac1d9187af3ae6e1d020f210431e8d2aad7924530c89a74
4
+ data.tar.gz: 6ea764e66face46415c4f1e83d9dc87a5da96696faed369b448d7428632dfad9
5
5
  SHA512:
6
- metadata.gz: 7613a2825326c139b3e05b1472a6b54bb64b4f3e0788d7f3c899d39a17e4a4ee1b2738b66a49aa97c8b77ba3784a4a20b2fc66c21f63e229471c8715b810d0ba
7
- data.tar.gz: ddb3d728acb4b57ad82673ba01c06d330e8ee42a83e639a77dd4ec0b77e97970e4a6f75a3453e58cf49bf1a9a4607777afcebd81e977b76819a32ef981040a86
6
+ metadata.gz: 308d77d19e98cb4b6a6c62be86f949afe4f7b8b210cb66fd6d99c1f17f88662f83475316213bcb0e5a5751a34e925d08c1df6eb5a6381555fce68f4a88915338
7
+ data.tar.gz: ded3caa39f01b76afe3f191e04e6582d7e151cd5262b0915c704232ae8e5fa38b41d5bdb8f69957d58f911505d2e47407adb20d0c9eb823b25e74502d88fe298
@@ -6,18 +6,25 @@ on:
6
6
  - main
7
7
  pull_request:
8
8
 
9
+ permissions:
10
+ actions: write
11
+ contents: read
12
+
9
13
  jobs:
10
14
  coverage:
11
- runs-on: ubuntu-latest
15
+ runs-on: ubuntu-slim
16
+ permissions:
17
+ id-token: write
12
18
  steps:
13
- - uses: actions/checkout@v4
19
+ - uses: actions/checkout@v7
14
20
  - name: Set up Ruby
15
21
  uses: ruby/setup-ruby@v1
16
22
  with:
17
- ruby-version: 3.4
23
+ ruby-version: "4.0"
18
24
  bundler-cache: true
19
- - uses: paambaati/codeclimate-action@v9.0.0
20
- env:
21
- CC_TEST_REPORTER_ID: 40cc6409f7d531fa06fe880b7d7e4bd81ff89efcaa4dee782e03fb8fb3cdb902
25
+ - name: Run tests
26
+ run: bundle exec rake
27
+ - uses: qltysh/qlty-action/coverage@v2
22
28
  with:
23
- coverageCommand: bundle exec rake
29
+ oidc: true
30
+ files: coverage/.resultset.json
@@ -4,12 +4,12 @@ on: [pull_request]
4
4
 
5
5
  jobs:
6
6
  rubocop:
7
- runs-on: ubuntu-latest
7
+ runs-on: ubuntu-slim
8
8
  steps:
9
- - uses: actions/checkout@v4
9
+ - uses: actions/checkout@v7
10
10
  - name: Set up Ruby
11
11
  uses: ruby/setup-ruby@v1
12
12
  with:
13
- ruby-version: 3.4
13
+ ruby-version: "4.0"
14
14
  bundler-cache: true
15
15
  - run: bundle exec rubocop
@@ -10,10 +10,10 @@ jobs:
10
10
  test:
11
11
  strategy:
12
12
  matrix:
13
- ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
14
- runs-on: ubuntu-latest
13
+ ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0"]
14
+ runs-on: ubuntu-slim
15
15
  steps:
16
- - uses: actions/checkout@v4
16
+ - uses: actions/checkout@v7
17
17
  - name: Set up Ruby
18
18
  uses: ruby/setup-ruby@v1
19
19
  with:
data/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/rack-simple_user_agent.svg)](https://badge.fury.io/rb/rack-simple_user_agent)
4
4
  ![Test](https://github.com/toshimaru/rack-simple_user_agent/workflows/Test/badge.svg)
5
5
  ![RuboCop](https://github.com/toshimaru/rack-simple_user_agent/workflows/RuboCop/badge.svg)
6
- [![Test Coverage](https://api.codeclimate.com/v1/badges/576b6f673fc00d07da0d/test_coverage)](https://codeclimate.com/github/toshimaru/rack-simple_user_agent/test_coverage)
7
- [![Code Climate](https://codeclimate.com/github/toshimaru/rack-simple_user_agent/badges/gpa.svg)](https://codeclimate.com/github/toshimaru/rack-simple_user_agent)
6
+ [![Code Coverage](https://qlty.sh/gh/toshimaru/projects/rack-simple_user_agent/coverage.svg)](https://qlty.sh/gh/toshimaru/projects/rack-simple_user_agent)
7
+ [![Maintainability](https://qlty.sh/gh/toshimaru/projects/rack-simple_user_agent/maintainability.svg)](https://qlty.sh/gh/toshimaru/projects/rack-simple_user_agent)
8
8
 
9
9
  `Rack::SimpleUserAgent` is `Rack::Request` extension which detects user-agent from user-agent string. No complicated logic for the detection, it simply(stupidly) checks if user-agent includes particular string or not.
10
10
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  class SimpleUserAgent
5
- VERSION = '1.2.0'
5
+ VERSION = '1.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-simple_user_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Rack::SimpleUserAgent is Rack::Request extension which detects user-agent
13
13
  from user-agent string. No complicated logic for the detection, it simply(stupidly)
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubygems_version: 3.6.2
64
+ rubygems_version: 4.0.10
65
65
  specification_version: 4
66
66
  summary: Rack::SimpleUserAgent is stupidly simple UA detector
67
67
  test_files: []