link-header-parser 5.1.1 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +2 -2
- data/lib/link-header-parser.rb +1 -0
- data/lib/link_header_parser/link_header.rb +2 -2
- data/lib/link_header_parser/link_header_parameter.rb +1 -1
- data/lib/link_header_parser/version.rb +1 -1
- data/link-header-parser.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2165e863e28396bec9abf3bb0150d1d0c73e864386e9cdf4091f2457a39ba672
|
4
|
+
data.tar.gz: 68e633f7695c5012b8aae4932c097ae07fdd1bb9480d3ea8068962c70de2fd94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a924fcc7cda47c8c28c3f5b29ead3f677b0778ad826d0132eadc6db255087bc31c7cbd5763179ad888c632348748b694014ab0de361e5e85e0a7131659b6b9fe
|
7
|
+
data.tar.gz: 8d5eea369309a6af159a255c92b7a03850769df5bdd5e6523ecfc162b329b8ea27ce7a18a6de8965cb3985e3038fc7e6e886ead7c4a4bd2213c722bff3c680f6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
> [!NOTE]
|
4
|
+
> From v6.0.0, changes are documented using [GitHub Releases](https://github.com/jgarber623/link-header-parser-ruby/releases). For a given release, metadata on RubyGems.org will link to that version's Release page.
|
5
|
+
|
3
6
|
## 5.1.1 / 2024-01-01
|
4
7
|
|
5
8
|
- RuboCop: Style/WordArray (7b5964f)
|
data/README.md
CHANGED
@@ -8,9 +8,9 @@
|
|
8
8
|
|
9
9
|
## Getting Started
|
10
10
|
|
11
|
-
Before installing and using link-header-parser-ruby, you'll want to have [Ruby](https://www.ruby-lang.org)
|
11
|
+
Before installing and using link-header-parser-ruby, you'll want to have [Ruby](https://www.ruby-lang.org) 3.0 (or newer) installed. Using a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm) is recommended.
|
12
12
|
|
13
|
-
link-header-parser-ruby is developed using Ruby
|
13
|
+
link-header-parser-ruby is developed using Ruby 3.3.1 and is tested against additional Ruby versions using [GitHub Actions](https://github.com/jgarber623/link-header-parser-ruby/actions).
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
data/lib/link-header-parser.rb
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
module LinkHeaderParser
|
4
4
|
class LinkHeader
|
5
|
-
FIELD_VALUE_REGEXP_PATTERN = /^\s*<\s*(?<target_string>[^>]+)\s*>\s*(?<parameters>;\s*.*)
|
5
|
+
FIELD_VALUE_REGEXP_PATTERN = /^\s*<\s*(?<target_string>[^>]+)\s*>\s*(?<parameters>;\s*.*)$/
|
6
6
|
private_constant :FIELD_VALUE_REGEXP_PATTERN
|
7
7
|
|
8
|
-
PARAMETERS_REGEXP_PATTERN = /(?<!;)\s*[^;]
|
8
|
+
PARAMETERS_REGEXP_PATTERN = /(?<!;)\s*[^;]+/
|
9
9
|
private_constant :PARAMETERS_REGEXP_PATTERN
|
10
10
|
|
11
11
|
# The +String+ value used to create this {LinkHeader}.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module LinkHeaderParser
|
4
4
|
class LinkHeaderParameter
|
5
|
-
PARAMETER_REGEXP_PATTERN = /^(?<name>.+?)(?:="?(?<value>.*?)"?)
|
5
|
+
PARAMETER_REGEXP_PATTERN = /^(?<name>.+?)(?:="?(?<value>.*?)"?)?$/
|
6
6
|
private_constant :PARAMETER_REGEXP_PATTERN
|
7
7
|
|
8
8
|
# The +String+ value used to create this {LinkHeaderParameter}.
|
data/link-header-parser.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require_relative "lib/link_header_parser/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.required_ruby_version = ">=
|
6
|
+
spec.required_ruby_version = ">= 3.0"
|
7
7
|
|
8
8
|
spec.name = "link-header-parser"
|
9
9
|
spec.version = LinkHeaderParser::VERSION
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.metadata = {
|
25
25
|
"bug_tracker_uri" => "#{spec.homepage}/issues",
|
26
|
-
"changelog_uri" => "#{spec.homepage}/
|
26
|
+
"changelog_uri" => "#{spec.homepage}/releases/tag/v#{spec.version}",
|
27
27
|
"rubygems_mfa_required" => "true",
|
28
28
|
"source_code_uri" => "#{spec.homepage}/tree/v#{spec.version}"
|
29
29
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: link-header-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Parse HTTP Link headers.
|
14
14
|
email:
|
@@ -31,9 +31,9 @@ licenses:
|
|
31
31
|
- MIT
|
32
32
|
metadata:
|
33
33
|
bug_tracker_uri: https://github.com/jgarber623/link-header-parser-ruby/issues
|
34
|
-
changelog_uri: https://github.com/jgarber623/link-header-parser-ruby/
|
34
|
+
changelog_uri: https://github.com/jgarber623/link-header-parser-ruby/releases/tag/v6.0.1
|
35
35
|
rubygems_mfa_required: 'true'
|
36
|
-
source_code_uri: https://github.com/jgarber623/link-header-parser-ruby/tree/
|
36
|
+
source_code_uri: https://github.com/jgarber623/link-header-parser-ruby/tree/v6.0.1
|
37
37
|
post_install_message:
|
38
38
|
rdoc_options: []
|
39
39
|
require_paths:
|
@@ -42,14 +42,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
42
42
|
requirements:
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
45
|
+
version: '3.0'
|
46
46
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
requirements: []
|
52
|
-
rubygems_version: 3.
|
52
|
+
rubygems_version: 3.5.9
|
53
53
|
signing_key:
|
54
54
|
specification_version: 4
|
55
55
|
summary: Parse HTTP Link headers.
|