iri 0.10.0 → 0.11.0

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.
data/Gemfile.lock CHANGED
@@ -6,74 +6,91 @@ PATH
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.4.2)
10
- date (3.4.1)
9
+ ansi (1.5.0)
10
+ ast (2.4.3)
11
+ builder (3.3.0)
11
12
  docile (1.4.1)
12
- json (2.9.1)
13
- language_server-protocol (3.17.0.4)
14
- minitest (5.25.4)
15
- parallel (1.26.3)
16
- parser (3.3.7.0)
13
+ json (2.12.2)
14
+ language_server-protocol (3.17.0.5)
15
+ lint_roller (1.1.0)
16
+ minitest (5.25.5)
17
+ minitest-reporters (1.7.1)
18
+ ansi
19
+ builder
20
+ minitest (>= 5.0)
21
+ ruby-progressbar
22
+ parallel (1.27.0)
23
+ parser (3.3.8.0)
17
24
  ast (~> 2.4.1)
18
25
  racc
19
- psych (5.2.3)
20
- date
21
- stringio
26
+ prism (1.4.0)
22
27
  racc (1.8.1)
23
28
  rainbow (3.1.1)
24
- rake (13.2.1)
25
- rdoc (6.11.0)
26
- psych (>= 4.0.0)
29
+ rake (13.3.0)
27
30
  regexp_parser (2.10.0)
28
- rubocop (1.71.0)
31
+ rexml (3.4.1)
32
+ rubocop (1.75.8)
29
33
  json (~> 2.3)
30
- language_server-protocol (>= 3.17.0)
34
+ language_server-protocol (~> 3.17.0.2)
35
+ lint_roller (~> 1.1.0)
31
36
  parallel (~> 1.10)
32
37
  parser (>= 3.3.0.2)
33
38
  rainbow (>= 2.2.2, < 4.0)
34
39
  regexp_parser (>= 2.9.3, < 3.0)
35
- rubocop-ast (>= 1.36.2, < 2.0)
40
+ rubocop-ast (>= 1.44.0, < 2.0)
36
41
  ruby-progressbar (~> 1.7)
37
42
  unicode-display_width (>= 2.4.0, < 4.0)
38
- rubocop-ast (1.38.0)
39
- parser (>= 3.3.1.0)
40
- rubocop-minitest (0.36.0)
41
- rubocop (>= 1.61, < 2.0)
42
- rubocop-ast (>= 1.31.1, < 2.0)
43
- rubocop-performance (1.23.1)
44
- rubocop (>= 1.48.1, < 2.0)
45
- rubocop-ast (>= 1.31.1, < 2.0)
46
- rubocop-rspec (3.4.0)
47
- rubocop (~> 1.61)
43
+ rubocop-ast (1.44.1)
44
+ parser (>= 3.3.7.2)
45
+ prism (~> 1.4)
46
+ rubocop-minitest (0.38.1)
47
+ lint_roller (~> 1.1)
48
+ rubocop (>= 1.75.0, < 2.0)
49
+ rubocop-ast (>= 1.38.0, < 2.0)
50
+ rubocop-performance (1.25.0)
51
+ lint_roller (~> 1.1)
52
+ rubocop (>= 1.75.0, < 2.0)
53
+ rubocop-ast (>= 1.38.0, < 2.0)
54
+ rubocop-rake (0.7.1)
55
+ lint_roller (~> 1.1)
56
+ rubocop (>= 1.72.1)
57
+ rubocop-rspec (3.6.0)
58
+ lint_roller (~> 1.1)
59
+ rubocop (~> 1.72, >= 1.72.1)
48
60
  ruby-progressbar (1.13.0)
49
61
  simplecov (0.22.0)
50
62
  docile (~> 1.1)
51
63
  simplecov-html (~> 0.11)
52
64
  simplecov_json_formatter (~> 0.1)
65
+ simplecov-cobertura (2.1.0)
66
+ rexml
67
+ simplecov (~> 0.19)
53
68
  simplecov-html (0.13.1)
54
69
  simplecov_json_formatter (0.1.4)
55
- stringio (3.1.2)
56
70
  unicode-display_width (3.1.4)
57
71
  unicode-emoji (~> 4.0, >= 4.0.4)
58
72
  unicode-emoji (4.0.4)
73
+ yard (0.9.37)
59
74
 
60
75
  PLATFORMS
61
- arm64-darwin-22
62
76
  arm64-darwin-23
63
77
  arm64-darwin-24
78
+ ruby
64
79
  x64-mingw-ucrt
65
- x86_64-linux
66
80
 
67
81
  DEPENDENCIES
68
82
  iri!
69
- minitest (= 5.25.4)
70
- rake (= 13.2.1)
71
- rdoc (= 6.11.0)
72
- rubocop (= 1.71.0)
73
- rubocop-minitest (= 0.36.0)
74
- rubocop-performance (= 1.23.1)
75
- rubocop-rspec (= 3.4.0)
76
- simplecov (= 0.22.0)
83
+ minitest (~> 5.25)
84
+ minitest-reporters (~> 1.7)
85
+ rake (~> 13.2)
86
+ rubocop (~> 1.74)
87
+ rubocop-minitest (> 0)
88
+ rubocop-performance (> 0)
89
+ rubocop-rake (> 0)
90
+ rubocop-rspec (> 0)
91
+ simplecov (~> 0.22)
92
+ simplecov-cobertura (~> 2.1)
93
+ yard (~> 0.9)
77
94
 
78
95
  BUNDLED WITH
79
96
  2.5.16
data/LICENSES/MIT.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019-2025 Yegor Bugayenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included
13
+ in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Immutable URI Builder for Ruby
2
2
 
3
3
  [![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
4
- [![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/iri)](http://www.rultor.com/p/yegor256/iri)
4
+ [![DevOps By Rultor.com](https://www.rultor.com/b/yegor256/iri)](https://www.rultor.com/p/yegor256/iri)
5
5
  [![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
6
6
 
7
7
  [![rake](https://github.com/yegor256/iri/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/iri/actions/workflows/rake.yml)
8
- [![Gem Version](https://badge.fury.io/rb/iri.svg)](http://badge.fury.io/rb/iri)
8
+ [![Gem Version](https://badge.fury.io/rb/iri.svg)](https://badge.fury.io/rb/iri)
9
9
  [![Maintainability](https://api.codeclimate.com/v1/badges/7018d2fe438103828685/maintainability)](https://codeclimate.com/github/yegor256/iri/maintainability)
10
- [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/yegor256/iri/master/frames)
10
+ [![Yard Docs](https://img.shields.io/badge/yard-docs-blue.svg)](https://rubydoc.info/github/yegor256/iri/master/frames)
11
11
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/iri/blob/master/LICENSE.txt)
12
12
  [![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/iri.svg)](https://codecov.io/github/yegor256/iri?branch=master)
13
13
  [![Hits-of-Code](https://hitsofcode.com/github/yegor256/iri)](https://hitsofcode.com/view/github/yegor256/iri)
@@ -20,9 +20,9 @@ parts via a simple [fluent interface]:
20
20
  require 'iri'
21
21
  url = Iri.new('http://google.com/')
22
22
  .append('find').append('me') # -> http://google.com/find/me
23
- .add(q: 'books about OOP', limit: 50) # -> ?q=books+about+OOP&limit=50
24
- .del(:q) # remove this query parameter
25
- .del('limit', 'speed') # also remove these two
23
+ .with(q: 'books about OOP', limit: 50) # -> ?q=books+about+OOP&limit=50
24
+ .without(:q) # remove this query parameter
25
+ .without('limit', 'speed') # also remove these two
26
26
  .over(q: 'books about tennis', limit: 10) # replace these params
27
27
  .scheme('https') # replace 'http' with 'https'
28
28
  .host('localhost') # replace the host name
@@ -34,8 +34,8 @@ url = Iri.new('http://google.com/')
34
34
  .to_s # convert it to a string
35
35
  ```
36
36
 
37
- The full list of methods is
38
- [here](https://www.rubydoc.info/github/yegor256/iri/master/Iri).
37
+ See the
38
+ [full list of methods](https://www.rubydoc.info/github/yegor256/iri/master/Iri).
39
39
 
40
40
  Install it:
41
41
 
@@ -72,7 +72,7 @@ PS. See how I use it in this Sinatra web app:
72
72
 
73
73
  Read
74
74
  [these guidelines](https://www.yegor256.com/2014/04/15/github-guidelines.html).
75
- Make sure you build is green before you contribute
75
+ Make sure your build is green before you contribute
76
76
  your pull request. You will need to have
77
77
  [Ruby](https://www.ruby-lang.org/en/) 2.3+ and
78
78
  [Bundler](https://bundler.io/) installed. Then:
data/REUSE.toml ADDED
@@ -0,0 +1,36 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ version = 1
5
+ [[annotations]]
6
+ path = [
7
+ ".DS_Store",
8
+ ".gitattributes",
9
+ ".gitignore",
10
+ ".pdd",
11
+ "**.json",
12
+ "**.md",
13
+ "**.png",
14
+ "**.svg",
15
+ "**.txt",
16
+ "**/.DS_Store",
17
+ "**/.gitignore",
18
+ "**/.pdd",
19
+ "**/*.csv",
20
+ "**/*.jpg",
21
+ "**/*.json",
22
+ "**/*.md",
23
+ "**/*.pdf",
24
+ "**/*.png",
25
+ "**/*.svg",
26
+ "**/*.txt",
27
+ "**/*.vm",
28
+ "**/CNAME",
29
+ "**/Gemfile.lock",
30
+ "Gemfile.lock",
31
+ "README.md",
32
+ "renovate.json",
33
+ ]
34
+ precedence = "override"
35
+ SPDX-FileCopyrightText = "Copyright (c) 2025 Yegor Bugayenko"
36
+ SPDX-License-Identifier = "MIT"
data/Rakefile CHANGED
@@ -1,30 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2019-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'rubygems'
24
7
  require 'rake'
25
8
  require 'rake/clean'
26
9
 
27
- CLEAN = FileList['coverage']
10
+ CLEAN.include('coverage')
28
11
 
29
12
  def name
30
13
  @name ||= File.basename(Dir['*.gemspec'].first, '.*')
@@ -34,7 +17,7 @@ def version
34
17
  Gem::Specification.load(Dir['*.gemspec'].first).version
35
18
  end
36
19
 
37
- task default: %i[clean test rubocop copyright]
20
+ task default: %i[clean test rubocop yard]
38
21
 
39
22
  require 'rake/testtask'
40
23
  Rake::TestTask.new do |test|
@@ -43,23 +26,13 @@ Rake::TestTask.new do |test|
43
26
  test.verbose = false
44
27
  end
45
28
 
46
- require 'rdoc/task'
47
- RDoc::Task.new do |rdoc|
48
- rdoc.main = 'README.md'
49
- rdoc.rdoc_dir = 'rdoc'
50
- rdoc.rdoc_files.include('README.md', 'lib/**/*.rb')
29
+ require 'yard'
30
+ desc 'Build Yard documentation'
31
+ YARD::Rake::YardocTask.new do |t|
32
+ t.files = ['lib/**/*.rb']
51
33
  end
52
34
 
53
35
  require 'rubocop/rake_task'
54
36
  RuboCop::RakeTask.new do |task|
55
37
  task.fail_on_error = true
56
- task.requires << 'rubocop-rspec'
57
- end
58
-
59
- task :copyright do
60
- sh "grep -q -r '#{Date.today.strftime('%Y')}' \
61
- --include '*.rb' \
62
- --include '*.txt' \
63
- --include 'Rakefile' \
64
- ."
65
38
  end
data/iri.gemspec CHANGED
@@ -1,33 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # (The MIT License)
4
- #
5
- # Copyright (c) 2019-2025 Yegor Bugayenko
6
- #
7
- # Permission is hereby granted, free of charge, to any person obtaining a copy
8
- # of this software and associated documentation files (the 'Software'), to deal
9
- # in the Software without restriction, including without limitation the rights
10
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- # copies of the Software, and to permit persons to whom the Software is
12
- # furnished to do so, subject to the following conditions:
13
- #
14
- # The above copyright notice and this permission notice shall be included in all
15
- # copies or substantial portions of the Software.
16
- #
17
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2019-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
24
5
 
25
6
  require 'English'
26
7
  Gem::Specification.new do |s|
27
8
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
28
9
  s.required_ruby_version = '>=2.2'
29
10
  s.name = 'iri'
30
- s.version = '0.10.0'
11
+ s.version = '0.11.0'
31
12
  s.license = 'MIT'
32
13
  s.summary = 'Simple Immutable Ruby URI Builder'
33
14
  s.description = "Class Iri helps you build a URI and then modify its \