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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d17b05b4f47abe83f942072f6d17519665ace1a3b77d9c368b37e037e649f3c
4
- data.tar.gz: 88917f5b6f3766824c5dcd91d16789e79bf40f447ecc1a964ae80dda70b1a037
3
+ metadata.gz: 1056a07fd58b2befd3416eff67b1adf9c38c9524b49501ff68c7759db4b95da4
4
+ data.tar.gz: 438663a0ad72835d65d0bd0b29328cd0325ebc1559504976fd8f7d45c0b4314b
5
5
  SHA512:
6
- metadata.gz: c65413d498da4d2be2ae3fe4bffac3c590161c0caa0bde19c51e2a3163c8fbfdb3e384cdfe3b80050a766beb92e3d925ce1dc41d7ed11c40fc3e750cc60175c9
7
- data.tar.gz: f2d796ccab64e4a434e9fb8a931f36f59debda46e9c55e0dfed1cdc864c1d9318006a6fb7cbd0889cb7c0e1165afb113348f1958b7c363c4ff4fc150e8bb314b
6
+ metadata.gz: 8583d04857131dd70f563748d8a5cc049b130f2d0b394b16bafc307d7c920724da020d464c104d32ee7d86ac92499d9c242fd1677228ce64fea5feedab2a0da9
7
+ data.tar.gz: 28059ebbefa919cad0db8df4b96ec6506b3671b05b62fb8f648462d51feddeed22662fc2f0e4fed99278025f8ccc54cc5724c368fb8373e05564b7627adf1d96
@@ -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
@@ -1,4 +1,4 @@
1
- /.bundle/
1
+ .bundle/
2
2
  /.yardoc
3
3
  /Gemfile.lock
4
4
  /_yardoc/
data/.rubocop.yml ADDED
@@ -0,0 +1,9 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ require: rubocop-minitest
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.5
7
+
8
+ Layout/LineLength:
9
+ Enabled: false
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
- As contributors and maintainers of this project, and in the interest of
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 are committed to making participation in this project a harassment-free
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
- Examples of unacceptable behavior by participants include:
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
14
8
 
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
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 other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
22
-
23
- Project maintainers have the right and responsibility to remove, edit, or
24
- reject comments, commits, code, wiki edits, issues, and other contributions
25
- that are not aligned to this Code of Conduct, or to ban temporarily or
26
- permanently any contributor for other behaviors that they deem inappropriate,
27
- threatening, offensive, or harmful.
28
-
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
33
-
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer at me@toshimaru.net. All
39
- complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
43
-
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
47
-
48
- [homepage]: http://contributor-covenant.org
49
- [version]: http://contributor-covenant.org/version/1/3/0/
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 toshi
3
+ Copyright (c) 2016-2022 Toshimaru
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
- [![Build Status](https://travis-ci.org/toshimaru/rack-simple_user_agent.svg)](https://travis-ci.org/toshimaru/rack-simple_user_agent)
5
- [![Coverage Status](https://coveralls.io/repos/github/toshimaru/rack-simple_user_agent/badge.svg)](https://coveralls.io/github/toshimaru/rack-simple_user_agent)
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
- require "bundler/gem_tasks"
2
- require "rake/testtask"
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 << "test"
6
- t.libs << "lib"
7
+ t.libs << 'test'
8
+ t.libs << 'lib'
7
9
  t.test_files = FileList['test/**/*_test.rb']
8
10
  end
9
11
 
10
- task :default => :test
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 "bundler/setup"
4
- require "rack/simple_user_agent"
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,9 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Rack
2
4
  class SimpleUserAgent
3
5
  module Detectors
4
6
  module Android
5
7
  def from_android?
6
- user_agent_string.include?("Android")
8
+ user_agent_string.include?('Android')
7
9
  end
8
10
 
9
11
  def from_android_tablet?
@@ -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?("Googlebot")
8
+ user_agent_string.include?('Googlebot')
7
9
  end
8
10
 
9
11
  def from_googlebot_news?
10
- user_agent_string.include?("Googlebot-News")
12
+ user_agent_string.include?('Googlebot-News')
11
13
  end
12
14
 
13
15
  def from_googlebot_images?
14
- user_agent_string.include?("Googlebot-Image")
16
+ user_agent_string.include?('Googlebot-Image')
15
17
  end
16
18
 
17
19
  def from_googlebot_video?
18
- user_agent_string.include?("Googlebot-Video")
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?("iPhone;")
12
+ user_agent_string.include?('iPhone;')
11
13
  end
12
14
 
13
15
  def from_ipad?
14
- user_agent_string.include?("iPad;")
16
+ user_agent_string.include?('iPad;')
15
17
  end
16
18
 
17
19
  def from_ipod?
18
- user_agent_string.include?("iPod touch;")
20
+ user_agent_string.include?('iPod touch;')
19
21
  end
20
22
  end
21
23
  end
@@ -1,9 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Rack
2
4
  class SimpleUserAgent
3
5
  module Detectors
4
6
  module WindowsPhone
5
7
  def from_windows_phone?
6
- user_agent_string.include?("Windows Phone")
8
+ user_agent_string.include?('Windows Phone')
7
9
  end
8
10
  end
9
11
  end
@@ -1,7 +1,9 @@
1
- require "rack/simple_user_agent/detectors/android"
2
- require "rack/simple_user_agent/detectors/bot"
3
- require "rack/simple_user_agent/detectors/ios"
4
- require "rack/simple_user_agent/detectors/windows_phone"
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 "rack-simple_user_agent.configure_rails_initialization" do |app|
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
+ # frozen_string_literal: true
2
+
1
3
  module Rack
2
4
  class SimpleUserAgent
3
- VERSION = "0.4.0"
5
+ VERSION = '1.0.0'
4
6
  end
5
7
  end
@@ -1,5 +1,7 @@
1
- require "rack/simple_user_agent/version"
2
- require "rack/simple_user_agent/detectors"
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
- lib = File.expand_path('../lib', __FILE__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'rack/simple_user_agent/version'
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 = "rack-simple_user_agent"
6
+ spec.name = 'rack-simple_user_agent'
7
7
  spec.version = Rack::SimpleUserAgent::VERSION
8
- spec.authors = ["toshimaru"]
9
- spec.email = ["me@toshimaru.net"]
8
+ spec.authors = ['toshimaru']
9
+ spec.email = ['me@toshimaru.net']
10
10
 
11
- spec.summary = %q{Rack::SimpleUserAgent is stupidly simple UA detector}
12
- spec.description = %q{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"
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 = "exe"
17
+ spec.bindir = 'exe'
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
- spec.require_paths = ["lib"]
20
-
21
- spec.required_ruby_version = ">= 2.2.2"
19
+ spec.require_paths = ['lib']
22
20
 
23
- spec.add_development_dependency "bundler", "~> 1.11"
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.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: 2018-11-03 00:00:00.000000000 Z
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
- - ".travis.yml"
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.2.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
- rubyforge_project:
158
- rubygems_version: 2.7.6
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: []
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - 2.2.5
5
- - 2.3.7
6
- - 2.4.5
7
- - 2.5.3
8
- before_install: gem update bundler