rack-simple_user_agent 0.6.0 → 1.1.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: 2850c8a28e3a3ea0f8a5cbe99445f9ad3c3473ea899605552541bb96271029cd
4
- data.tar.gz: d2a041c309d5f6137717cb19fa817887e0158ac6bf2d798243bcddfc72ed2d89
3
+ metadata.gz: fe6922c9e8223d122bc509b33f12adec836684127b8ecf43badb88cb993cf967
4
+ data.tar.gz: c67c157c3ce9c5cacddb7ecabf84bb140bee0e498b37db2fe7405f6ac31d6e38
5
5
  SHA512:
6
- metadata.gz: 01656e709cce86d7a7d99cb73ce47a2314cbf3e4b2dc0f1e8db71d424dc84acb143be7e741c6438fd06b55ab87b6bf0b26745d9915e92d6863612797ecf9e1aa
7
- data.tar.gz: 2f27ed3bb4edb1a8d1ef9f20a06460dd4b3188e3787e15c09d5ca081b243d4fdbbc7e610bf74a4be5221482924ab3e588197cda4666a17c615ed6d74b59acb82
6
+ metadata.gz: 4b9bb9a5af10b560bb8e574591a7fb211d67b8097c05b1309ce88f0afcb7efabb85401cbd1514fa001736970aa552f6e93ee733b63a14984b01ed8194cc4f4c1
7
+ data.tar.gz: 17ac4242d8cd4c41a5fb85c92901b9aa6c76ae218435ee63097ed54b5d7e1122b260b5c5c19c18d388417c016cd8f055eff36b8ba3ad67fa1366c22398ecc9ce
@@ -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
@@ -1,18 +1,23 @@
1
1
  name: Coverage
2
- on: [push]
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
3
9
  jobs:
4
- build:
10
+ coverage:
5
11
  runs-on: ubuntu-latest
6
- name: CodeClimate report
7
12
  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
13
+ - uses: actions/checkout@v3
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 3.2
18
+ bundler-cache: true
19
+ - uses: paambaati/codeclimate-action@v3.2.0
20
+ env:
21
+ CC_TEST_REPORTER_ID: 40cc6409f7d531fa06fe880b7d7e4bd81ff89efcaa4dee782e03fb8fb3cdb902
22
+ with:
23
+ coverageCommand: bundle exec rake
@@ -1,14 +1,15 @@
1
1
  name: RuboCop
2
+
2
3
  on: [pull_request]
4
+
3
5
  jobs:
4
- build:
6
+ rubocop:
5
7
  runs-on: ubuntu-latest
6
- name: rubocop
7
8
  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
- - run: bundle exec rubocop
9
+ - uses: actions/checkout@v3
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.2
14
+ bundler-cache: true
15
+ - run: bundle exec rubocop
@@ -1,17 +1,22 @@
1
1
  name: Test
2
- on: [push]
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
3
9
  jobs:
4
- build:
10
+ test:
5
11
  strategy:
6
12
  matrix:
7
- ruby: [2.4, 2.5, 2.6, 2.7]
13
+ ruby: ['2.7', '3.0', '3.1', '3.2']
8
14
  runs-on: ubuntu-latest
9
- name: Test
10
15
  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
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/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ inherit_from: .rubocop_todo.yml
3
3
  require: rubocop-minitest
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.4
6
+ TargetRubyVersion: 2.7
7
7
 
8
8
  Layout/LineLength:
9
9
  Enabled: false
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/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 toshi
3
+ Copyright (c) 2016-2023 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
@@ -107,3 +107,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/toshim
107
107
  ## License
108
108
 
109
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).
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  class SimpleUserAgent
5
- VERSION = '0.6.0'
5
+ VERSION = '1.1.0'
6
6
  end
7
7
  end
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'rack/simple_user_agent/version'
3
+ require_relative 'lib/rack/simple_user_agent/version'
6
4
 
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = 'rack-simple_user_agent'
@@ -20,5 +18,5 @@ Gem::Specification.new do |spec|
20
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
19
  spec.require_paths = ['lib']
22
20
 
23
- spec.required_ruby_version = '>= 2.4'
21
+ spec.required_ruby_version = '>= 2.7'
24
22
  end
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.6.0
4
+ version: 1.1.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: 2020-03-15 00:00:00.000000000 Z
11
+ date: 2023-01-25 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,6 +20,7 @@ extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
22
  - ".github/FUNDING.yml"
23
+ - ".github/dependabot.yml"
23
24
  - ".github/workflows/coverage.yml"
24
25
  - ".github/workflows/rubocop.yml"
25
26
  - ".github/workflows/test.yml"
@@ -47,7 +48,7 @@ homepage: https://github.com/toshimaru/rack-simple_user_agent
47
48
  licenses:
48
49
  - MIT
49
50
  metadata: {}
50
- post_install_message:
51
+ post_install_message:
51
52
  rdoc_options: []
52
53
  require_paths:
53
54
  - lib
@@ -55,15 +56,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
56
  requirements:
56
57
  - - ">="
57
58
  - !ruby/object:Gem::Version
58
- version: '2.4'
59
+ version: '2.7'
59
60
  required_rubygems_version: !ruby/object:Gem::Requirement
60
61
  requirements:
61
62
  - - ">="
62
63
  - !ruby/object:Gem::Version
63
64
  version: '0'
64
65
  requirements: []
65
- rubygems_version: 3.1.2
66
- signing_key:
66
+ rubygems_version: 3.4.1
67
+ signing_key:
67
68
  specification_version: 4
68
69
  summary: Rack::SimpleUserAgent is stupidly simple UA detector
69
70
  test_files: []