accept_language 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +1 -1
  3. data/README.md +21 -7
  4. metadata +8 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ac50eb44a0efc222a6155a3b34df19367f2a53fb62abbdffebf0f65534065a3
4
- data.tar.gz: 66bb74410f88b7fcdbddc1a1203992ff17f80c0468df1b6e9d7f6d47e600fd90
3
+ metadata.gz: 25f4296b38885118c1d127873d887a138bbfb6615ec0dc3d2db826e14e96e7d7
4
+ data.tar.gz: 9f2fac2c3818c94c5b7c7bc6d95655e3fefcb54c5ec5a3ba4ef28d05213fa00f
5
5
  SHA512:
6
- metadata.gz: 22dc9a87d06c5b2514baf72d635457f7cd3cb538c24366f4c585022b89e4a16589671de205752a3c0c5fb6694bd5b1f235545b16454eeff6e5926d71c33b2172
7
- data.tar.gz: cec4f53f39df95224b3007fa173287a41f3a488102ff3b3211d24a12ff5e7f2cd0a3872698bed95e017021936669a69294b0c65d94fee7cb95d2d253022ed19c
6
+ metadata.gz: b138c701a374afec0e26b9560570b3f48490a1da1e79f42daa768aa03f038f969f4670e4af57a97c109192410df0b8c66bc39bcc33f7362cc7440be6d243b0e6
7
+ data.tar.gz: 4a149d54102620ef411b1c1966f159840e3dec65cf5a2e33e5e045154e1234ee759be0b6ddda4cc8577f778a62e753f96642e49c5fc99e22760e6335a9bfb7aa
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019-2021 Cyril Kato
3
+ Copyright (c) 2019-2022 Cyril Kato
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,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
- [![Gem Version](https://badge.fury.io/rb/accept_language.svg)](https://badge.fury.io/rb/accept_language)
8
- [![Build Status](https://travis-ci.org/cyril/accept_language.rb.svg?branch=master)](https://travis-ci.org/cyril/accept_language.rb)
9
- [![Inline Docs](https://inch-ci.org/github/cyril/accept_language.rb.svg)](https://inch-ci.org/github/cyril/accept_language.rb)
7
+ [![Version](https://img.shields.io/github/v/tag/cyril/accept_language.rb?label=Version&logo=github)](https://github.com/cyril/accept_language.rb/releases)
8
+ [![Yard documentation](https://img.shields.io/badge/Yard-documentation-blue.svg?logo=github)](https://rubydoc.info/github/cyril/accept_language.rb/main)
9
+ [![CI](https://github.com/cyril/accept_language.rb/workflows/CI/badge.svg?branch=main)](https://github.com/cyril/accept_language.rb/actions?query=workflow%3Aci+branch%3Amain)
10
+ [![RuboCop](https://github.com/cyril/accept_language.rb/workflows/RuboCop/badge.svg?branch=main)](https://github.com/cyril/accept_language.rb/actions?query=workflow%3Arubocop+branch%3Amain)
11
+ [![License](https://img.shields.io/github/license/cyril/accept_language.rb?label=License&logo=github)](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
- $ bundle
31
+ ```sh
32
+ bundle
33
+ ```
22
34
 
23
35
  Or install it yourself as:
24
36
 
25
- $ gem install accept_language
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.1
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: 2021-05-03 00:00:00.000000000 Z
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: rspec
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.0
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.2
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: []