accept_language 2.0.1 → 2.0.2
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/LICENSE.md +1 -1
- data/README.md +21 -7
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25f4296b38885118c1d127873d887a138bbfb6615ec0dc3d2db826e14e96e7d7
|
4
|
+
data.tar.gz: 9f2fac2c3818c94c5b7c7bc6d95655e3fefcb54c5ec5a3ba4ef28d05213fa00f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b138c701a374afec0e26b9560570b3f48490a1da1e79f42daa768aa03f038f969f4670e4af57a97c109192410df0b8c66bc39bcc33f7362cc7440be6d243b0e6
|
7
|
+
data.tar.gz: 4a149d54102620ef411b1c1966f159840e3dec65cf5a2e33e5e045154e1234ee759be0b6ddda4cc8577f778a62e753f96642e49c5fc99e22760e6335a9bfb7aa
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,22 @@
|
|
1
|
-
# Accept Language
|
1
|
+
# Accept Language 🌐
|
2
2
|
|
3
3
|
A tiny library for parsing the `Accept-Language` header from browsers (as defined in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.4)).
|
4
4
|
|
5
5
|
## Status
|
6
6
|
|
7
|
-
[](https://github.com/cyril/accept_language.rb/releases)
|
8
|
+
[](https://rubydoc.info/github/cyril/accept_language.rb/main)
|
9
|
+
[](https://github.com/cyril/accept_language.rb/actions?query=workflow%3Aci+branch%3Amain)
|
10
|
+
[](https://github.com/cyril/accept_language.rb/actions?query=workflow%3Arubocop+branch%3Amain)
|
11
|
+
[](https://github.com/cyril/accept_language.rb/raw/main/LICENSE.md)
|
12
|
+
|
13
|
+
## Why this tool?
|
14
|
+
|
15
|
+
- Thread-safe implementation.
|
16
|
+
- Small algorithm that can handle tricky cases.
|
17
|
+
- Match strings and symbols ignoring the case.
|
18
|
+
- Works also well without Rails, Rack, i18n.
|
19
|
+
- Comes with [BCP 47](https://www.rfc-editor.org/bcp/bcp47.txt) support.
|
10
20
|
|
11
21
|
## Installation
|
12
22
|
|
@@ -18,11 +28,15 @@ gem "accept_language"
|
|
18
28
|
|
19
29
|
And then execute:
|
20
30
|
|
21
|
-
|
31
|
+
```sh
|
32
|
+
bundle
|
33
|
+
```
|
22
34
|
|
23
35
|
Or install it yourself as:
|
24
36
|
|
25
|
-
|
37
|
+
```sh
|
38
|
+
gem install accept_language
|
39
|
+
```
|
26
40
|
|
27
41
|
## Usage
|
28
42
|
|
@@ -82,4 +96,4 @@ __AcceptLanguage__ uses [Semantic Versioning 2.0.0](https://semver.org/)
|
|
82
96
|
|
83
97
|
## License
|
84
98
|
|
85
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
99
|
+
The [gem](https://rubygems.org/gems/accept_language) is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accept_language
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: r_spec-clone
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -165,7 +165,8 @@ files:
|
|
165
165
|
homepage: https://github.com/cyril/accept_language.rb
|
166
166
|
licenses:
|
167
167
|
- MIT
|
168
|
-
metadata:
|
168
|
+
metadata:
|
169
|
+
rubygems_mfa_required: 'true'
|
169
170
|
post_install_message:
|
170
171
|
rdoc_options: []
|
171
172
|
require_paths:
|
@@ -174,15 +175,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
175
|
requirements:
|
175
176
|
- - ">="
|
176
177
|
- !ruby/object:Gem::Version
|
177
|
-
version: 2.7.
|
178
|
+
version: 2.7.5
|
178
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
180
|
requirements:
|
180
181
|
- - ">="
|
181
182
|
- !ruby/object:Gem::Version
|
182
183
|
version: '0'
|
183
184
|
requirements: []
|
184
|
-
rubygems_version: 3.1.
|
185
|
+
rubygems_version: 3.1.6
|
185
186
|
signing_key:
|
186
187
|
specification_version: 4
|
187
|
-
summary: Parser for Accept-Language request HTTP header
|
188
|
+
summary: "Parser for Accept-Language request HTTP header \U0001F310"
|
188
189
|
test_files: []
|