rack-simple_user_agent 0.5.0 → 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/coverage.yml +18 -0
- data/.github/workflows/test.yml +17 -0
- data/.gitignore +1 -1
- data/.rubocop.yml +1 -1
- data/Gemfile +1 -1
- data/README.md +3 -2
- data/lib/rack/simple_user_agent/version.rb +1 -1
- data/rack-simple_user_agent.gemspec +1 -1
- metadata +5 -4
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2850c8a28e3a3ea0f8a5cbe99445f9ad3c3473ea899605552541bb96271029cd
|
4
|
+
data.tar.gz: d2a041c309d5f6137717cb19fa817887e0158ac6bf2d798243bcddfc72ed2d89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01656e709cce86d7a7d99cb73ce47a2314cbf3e4b2dc0f1e8db71d424dc84acb143be7e741c6438fd06b55ab87b6bf0b26745d9915e92d6863612797ecf9e1aa
|
7
|
+
data.tar.gz: 2f27ed3bb4edb1a8d1ef9f20a06460dd4b3188e3787e15c09d5ca081b243d4fdbbc7e610bf74a4be5221482924ab3e588197cda4666a17c615ed6d74b59acb82
|
@@ -0,0 +1,18 @@
|
|
1
|
+
name: Coverage
|
2
|
+
on: [push]
|
3
|
+
jobs:
|
4
|
+
build:
|
5
|
+
runs-on: ubuntu-latest
|
6
|
+
name: CodeClimate report
|
7
|
+
steps:
|
8
|
+
- uses: actions/checkout@v2
|
9
|
+
- name: Set up Ruby
|
10
|
+
uses: actions/setup-ruby@v1
|
11
|
+
with:
|
12
|
+
ruby-version: 2.6
|
13
|
+
- run: bundle install
|
14
|
+
- uses: paambaati/codeclimate-action@v2.5.4
|
15
|
+
env:
|
16
|
+
CC_TEST_REPORTER_ID: 40cc6409f7d531fa06fe880b7d7e4bd81ff89efcaa4dee782e03fb8fb3cdb902
|
17
|
+
with:
|
18
|
+
coverageCommand: bundle exec rake
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: Test
|
2
|
+
on: [push]
|
3
|
+
jobs:
|
4
|
+
build:
|
5
|
+
strategy:
|
6
|
+
matrix:
|
7
|
+
ruby: [2.4, 2.5, 2.6, 2.7]
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
name: Test
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v2
|
12
|
+
- name: Set up Ruby
|
13
|
+
uses: actions/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: ${{ matrix.ruby }}
|
16
|
+
- run: bundle install
|
17
|
+
- run: bundle exec rake
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -5,10 +5,10 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in rack-simple_user_agent.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem 'coveralls'
|
9
8
|
gem 'minitest', '~> 5.0'
|
10
9
|
gem 'minitest-reporters'
|
11
10
|
gem 'rack-test'
|
12
11
|
gem 'rake'
|
13
12
|
gem 'rubocop'
|
14
13
|
gem 'rubocop-minitest'
|
14
|
+
gem 'simplecov', '~> 0.17.1'
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# Rack::SimpleUserAgent
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/rack-simple_user_agent)
|
4
|
-
|
5
|
-
|
4
|
+

|
5
|
+

|
6
|
+
[](https://codeclimate.com/github/toshimaru/rack-simple_user_agent/test_coverage)
|
6
7
|
[](https://codeclimate.com/github/toshimaru/rack-simple_user_agent)
|
7
8
|
|
8
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.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-simple_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
|
- toshimaru
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rack::SimpleUserAgent is Rack::Request extension which detects user-agent
|
14
14
|
from user-agent string. No complicated logic for the detection, it simply(stupidly)
|
@@ -20,11 +20,12 @@ extensions: []
|
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
22
|
- ".github/FUNDING.yml"
|
23
|
+
- ".github/workflows/coverage.yml"
|
23
24
|
- ".github/workflows/rubocop.yml"
|
25
|
+
- ".github/workflows/test.yml"
|
24
26
|
- ".gitignore"
|
25
27
|
- ".rubocop.yml"
|
26
28
|
- ".rubocop_todo.yml"
|
27
|
-
- ".travis.yml"
|
28
29
|
- CHANGELOG.md
|
29
30
|
- CODE_OF_CONDUCT.md
|
30
31
|
- Gemfile
|
@@ -54,7 +55,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
55
|
requirements:
|
55
56
|
- - ">="
|
56
57
|
- !ruby/object:Gem::Version
|
57
|
-
version: '2.
|
58
|
+
version: '2.4'
|
58
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
60
|
requirements:
|
60
61
|
- - ">="
|