rack-simple_user_agent 0.4.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/.github/dependabot.yml +14 -0
- data/.github/workflows/coverage.yml +23 -0
- data/.github/workflows/rubocop.yml +15 -0
- data/.github/workflows/test.yml +22 -0
- data/.gitignore +1 -1
- data/.rubocop.yml +9 -0
- data/.rubocop_todo.yml +20 -0
- data/CHANGELOG.md +1 -0
- data/CODE_OF_CONDUCT.md +79 -44
- data/Gemfile +10 -0
- data/LICENSE.txt +1 -1
- data/README.md +7 -2
- data/Rakefile +7 -5
- data/bin/console +3 -6
- data/lib/rack/simple_user_agent/detectors/android.rb +3 -1
- data/lib/rack/simple_user_agent/detectors/bot.rb +6 -4
- data/lib/rack/simple_user_agent/detectors/ios.rb +5 -3
- data/lib/rack/simple_user_agent/detectors/windows_phone.rb +3 -1
- data/lib/rack/simple_user_agent/detectors.rb +6 -4
- data/lib/rack/simple_user_agent/railtie.rb +3 -1
- data/lib/rack/simple_user_agent/version.rb +3 -1
- data/lib/rack/simple_user_agent.rb +4 -2
- data/rack-simple_user_agent.gemspec +13 -21
- metadata +16 -108
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1056a07fd58b2befd3416eff67b1adf9c38c9524b49501ff68c7759db4b95da4
|
4
|
+
data.tar.gz: 438663a0ad72835d65d0bd0b29328cd0325ebc1559504976fd8f7d45c0b4314b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8583d04857131dd70f563748d8a5cc049b130f2d0b394b16bafc307d7c920724da020d464c104d32ee7d86ac92499d9c242fd1677228ce64fea5feedab2a0da9
|
7
|
+
data.tar.gz: 28059ebbefa919cad0db8df4b96ec6506b3671b05b62fb8f648462d51feddeed22662fc2f0e4fed99278025f8ccc54cc5724c368fb8373e05564b7627adf1d96
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
github: toshimaru
|
@@ -0,0 +1,14 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/sample/sinatra"
|
5
|
+
schedule:
|
6
|
+
interval: monthly
|
7
|
+
reviewers:
|
8
|
+
- toshimaru
|
9
|
+
- package-ecosystem: github-actions
|
10
|
+
directory: "/"
|
11
|
+
schedule:
|
12
|
+
interval: monthly
|
13
|
+
reviewers:
|
14
|
+
- toshimaru
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: Coverage
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
coverage:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v3
|
14
|
+
- name: Set up Ruby
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 2.6
|
18
|
+
bundler-cache: true
|
19
|
+
- uses: paambaati/codeclimate-action@v3.0.0
|
20
|
+
env:
|
21
|
+
CC_TEST_REPORTER_ID: 40cc6409f7d531fa06fe880b7d7e4bd81ff89efcaa4dee782e03fb8fb3cdb902
|
22
|
+
with:
|
23
|
+
coverageCommand: bundle exec rake
|
@@ -0,0 +1,15 @@
|
|
1
|
+
name: RuboCop
|
2
|
+
|
3
|
+
on: [pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
rubocop:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@v3
|
10
|
+
- name: Set up Ruby
|
11
|
+
uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
ruby-version: 2.6
|
14
|
+
bundler-cache: true
|
15
|
+
- run: bundle exec rubocop
|
@@ -0,0 +1,22 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby: [2.5, 2.6, 2.7, '3.0', '3.1']
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v3
|
17
|
+
- name: Set up Ruby
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby }}
|
21
|
+
bundler-cache: true
|
22
|
+
- run: bundle exec rake
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2020-03-13 18:11:21 +0900 using RuboCop version 0.80.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 8
|
10
|
+
Style/Documentation:
|
11
|
+
Exclude:
|
12
|
+
- 'spec/**/*'
|
13
|
+
- 'test/**/*'
|
14
|
+
- 'lib/rack/simple_user_agent.rb'
|
15
|
+
- 'lib/rack/simple_user_agent/detectors.rb'
|
16
|
+
- 'lib/rack/simple_user_agent/detectors/android.rb'
|
17
|
+
- 'lib/rack/simple_user_agent/detectors/bot.rb'
|
18
|
+
- 'lib/rack/simple_user_agent/detectors/ios.rb'
|
19
|
+
- 'lib/rack/simple_user_agent/detectors/windows_phone.rb'
|
20
|
+
- 'lib/rack/simple_user_agent/railtie.rb'
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Changelog is maintained under [Github Releases](https://github.com/toshimaru/rack-simple_user_agent/releases).
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,49 +1,84 @@
|
|
1
|
-
# Contributor Code of Conduct
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
2
|
|
3
|
-
|
4
|
-
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
-
contribute through reporting issues, posting feature requests, updating
|
6
|
-
documentation, submitting pull requests or patches, and other activities.
|
3
|
+
## Our Pledge
|
7
4
|
|
8
|
-
We
|
9
|
-
experience for everyone, regardless of level of experience, gender, gender
|
10
|
-
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
-
body size, race, ethnicity, age, religion, or nationality.
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
12
6
|
|
13
|
-
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
14
8
|
|
15
|
-
|
16
|
-
|
17
|
-
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
18
24
|
* Public or private harassment
|
19
|
-
* Publishing
|
20
|
-
|
21
|
-
* Other
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
Conduct
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at me@toshimaru.net. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/Gemfile
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
5
|
# Specify your gem's dependencies in rack-simple_user_agent.gemspec
|
4
6
|
gemspec
|
7
|
+
|
8
|
+
gem 'minitest', '~> 5.0'
|
9
|
+
gem 'minitest-reporters'
|
10
|
+
gem 'rack-test'
|
11
|
+
gem 'rake'
|
12
|
+
gem 'rubocop'
|
13
|
+
gem 'rubocop-minitest'
|
14
|
+
gem 'simplecov', '~> 0.17.1'
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# Rack::SimpleUserAgent
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/rack-simple_user_agent.svg)](https://badge.fury.io/rb/rack-simple_user_agent)
|
4
|
-
|
5
|
-
|
4
|
+
![Test](https://github.com/toshimaru/rack-simple_user_agent/workflows/Test/badge.svg)
|
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)
|
6
7
|
[![Code Climate](https://codeclimate.com/github/toshimaru/rack-simple_user_agent/badges/gpa.svg)](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.
|
@@ -106,3 +107,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/toshim
|
|
106
107
|
## License
|
107
108
|
|
108
109
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
110
|
+
|
111
|
+
## Code of Conduct
|
112
|
+
|
113
|
+
Everyone interacting in the BundledGem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](./CODE_OF_CONDUCT.md).
|
data/Rakefile
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rake/testtask'
|
3
5
|
|
4
6
|
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs <<
|
6
|
-
t.libs <<
|
7
|
+
t.libs << 'test'
|
8
|
+
t.libs << 'lib'
|
7
9
|
t.test_files = FileList['test/**/*_test.rb']
|
8
10
|
end
|
9
11
|
|
10
|
-
task :
|
12
|
+
task default: :test
|
data/bin/console
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
|
-
require
|
4
|
-
require
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'rack/simple_user_agent'
|
5
6
|
|
6
7
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
8
|
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
require "pry"
|
11
|
-
Pry.start
|
@@ -1,21 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Rack
|
2
4
|
class SimpleUserAgent
|
3
5
|
module Detectors
|
4
6
|
module Bot
|
5
7
|
def from_googlebot?
|
6
|
-
user_agent_string.include?(
|
8
|
+
user_agent_string.include?('Googlebot')
|
7
9
|
end
|
8
10
|
|
9
11
|
def from_googlebot_news?
|
10
|
-
user_agent_string.include?(
|
12
|
+
user_agent_string.include?('Googlebot-News')
|
11
13
|
end
|
12
14
|
|
13
15
|
def from_googlebot_images?
|
14
|
-
user_agent_string.include?(
|
16
|
+
user_agent_string.include?('Googlebot-Image')
|
15
17
|
end
|
16
18
|
|
17
19
|
def from_googlebot_video?
|
18
|
-
user_agent_string.include?(
|
20
|
+
user_agent_string.include?('Googlebot-Video')
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Rack
|
2
4
|
class SimpleUserAgent
|
3
5
|
module Detectors
|
@@ -7,15 +9,15 @@ module Rack
|
|
7
9
|
end
|
8
10
|
|
9
11
|
def from_iphone?
|
10
|
-
user_agent_string.include?(
|
12
|
+
user_agent_string.include?('iPhone;')
|
11
13
|
end
|
12
14
|
|
13
15
|
def from_ipad?
|
14
|
-
user_agent_string.include?(
|
16
|
+
user_agent_string.include?('iPad;')
|
15
17
|
end
|
16
18
|
|
17
19
|
def from_ipod?
|
18
|
-
user_agent_string.include?(
|
20
|
+
user_agent_string.include?('iPod touch;')
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
@@ -1,7 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require
|
4
|
-
require
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rack/simple_user_agent/detectors/android'
|
4
|
+
require 'rack/simple_user_agent/detectors/bot'
|
5
|
+
require 'rack/simple_user_agent/detectors/ios'
|
6
|
+
require 'rack/simple_user_agent/detectors/windows_phone'
|
5
7
|
|
6
8
|
module Rack
|
7
9
|
class SimpleUserAgent
|
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Rack
|
2
4
|
class SimpleUserAgent
|
3
5
|
class Railtie < ::Rails::Railtie
|
4
|
-
initializer
|
6
|
+
initializer 'rack-simple_user_agent.configure_rails_initialization' do |app|
|
5
7
|
app.config.middleware.use Rack::SimpleUserAgent
|
6
8
|
|
7
9
|
ActiveSupport.on_load(:action_controller) do
|
@@ -1,5 +1,7 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rack/simple_user_agent/version'
|
4
|
+
require 'rack/simple_user_agent/detectors'
|
3
5
|
require 'rack/simple_user_agent/railtie' if defined?(Rails)
|
4
6
|
|
5
7
|
module Rack
|
@@ -1,30 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/rack/simple_user_agent/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
6
|
+
spec.name = 'rack-simple_user_agent'
|
7
7
|
spec.version = Rack::SimpleUserAgent::VERSION
|
8
|
-
spec.authors = [
|
9
|
-
spec.email = [
|
8
|
+
spec.authors = ['toshimaru']
|
9
|
+
spec.email = ['me@toshimaru.net']
|
10
10
|
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
11
|
+
spec.summary = 'Rack::SimpleUserAgent is stupidly simple UA detector'
|
12
|
+
spec.description = '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.'
|
13
|
+
spec.homepage = 'https://github.com/toshimaru/rack-simple_user_agent'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|sample)/}) }
|
17
|
-
spec.bindir =
|
17
|
+
spec.bindir = 'exe'
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
-
spec.require_paths = [
|
20
|
-
|
21
|
-
spec.required_ruby_version = ">= 2.2.2"
|
19
|
+
spec.require_paths = ['lib']
|
22
20
|
|
23
|
-
spec.
|
24
|
-
spec.add_development_dependency "rake", "~> 11.0"
|
25
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
26
|
-
spec.add_development_dependency "minitest-reporters"
|
27
|
-
spec.add_development_dependency "pry"
|
28
|
-
spec.add_development_dependency "rack-test"
|
29
|
-
spec.add_development_dependency "coveralls"
|
21
|
+
spec.required_ruby_version = '>= 2.5'
|
30
22
|
end
|
metadata
CHANGED
@@ -1,113 +1,15 @@
|
|
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: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toshimaru
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.11'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.11'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '11.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '11.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '5.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '5.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest-reporters
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: pry
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rack-test
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: coveralls
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
11
|
+
date: 2022-05-05 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
111
13
|
description: Rack::SimpleUserAgent is Rack::Request extension which detects user-agent
|
112
14
|
from user-agent string. No complicated logic for the detection, it simply(stupidly)
|
113
15
|
checks if user-agent includes particular string or not.
|
@@ -117,8 +19,15 @@ executables: []
|
|
117
19
|
extensions: []
|
118
20
|
extra_rdoc_files: []
|
119
21
|
files:
|
22
|
+
- ".github/FUNDING.yml"
|
23
|
+
- ".github/dependabot.yml"
|
24
|
+
- ".github/workflows/coverage.yml"
|
25
|
+
- ".github/workflows/rubocop.yml"
|
26
|
+
- ".github/workflows/test.yml"
|
120
27
|
- ".gitignore"
|
121
|
-
- ".
|
28
|
+
- ".rubocop.yml"
|
29
|
+
- ".rubocop_todo.yml"
|
30
|
+
- CHANGELOG.md
|
122
31
|
- CODE_OF_CONDUCT.md
|
123
32
|
- Gemfile
|
124
33
|
- LICENSE.txt
|
@@ -139,7 +48,7 @@ homepage: https://github.com/toshimaru/rack-simple_user_agent
|
|
139
48
|
licenses:
|
140
49
|
- MIT
|
141
50
|
metadata: {}
|
142
|
-
post_install_message:
|
51
|
+
post_install_message:
|
143
52
|
rdoc_options: []
|
144
53
|
require_paths:
|
145
54
|
- lib
|
@@ -147,16 +56,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
56
|
requirements:
|
148
57
|
- - ">="
|
149
58
|
- !ruby/object:Gem::Version
|
150
|
-
version: 2.
|
59
|
+
version: '2.5'
|
151
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
61
|
requirements:
|
153
62
|
- - ">="
|
154
63
|
- !ruby/object:Gem::Version
|
155
64
|
version: '0'
|
156
65
|
requirements: []
|
157
|
-
|
158
|
-
|
159
|
-
signing_key:
|
66
|
+
rubygems_version: 3.3.7
|
67
|
+
signing_key:
|
160
68
|
specification_version: 4
|
161
69
|
summary: Rack::SimpleUserAgent is stupidly simple UA detector
|
162
70
|
test_files: []
|