iri 0.6.0 → 0.7.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: ce27b75cc4402cfb28991f6f061b2191e298dde147d77bf6b5c6215b96d1cc83
4
- data.tar.gz: 2f01f12f02dbdc96f7923c2a1c2d0ea18ccf9d7c3ae44c001626fc16d96b60c1
3
+ metadata.gz: 564c361b6ff96ad33b06d606342683aeab545505bb5baf8f2ba7c34da333a7d5
4
+ data.tar.gz: b337674a82e1d37852642d793546cebfd1776cd855ee62b12f9bec5d4d92d77c
5
5
  SHA512:
6
- metadata.gz: 38bc3965b37e014551e3048ec24736d3c56f2810e2b2cc32c50ef199ea19ff96e8396fdc9299a1c5d0aaa360901e5f7fdc37844f43800eddc04513cbe80f4e1f
7
- data.tar.gz: e6bdbddd987e10546f8c05939b68dc85ca79961da4deed79fb73eabf00b35b0dfae0ce1324491ae1c01c61bcdaefdd1abd765c3a666572b7581e7d65e9e1998f
6
+ metadata.gz: 80de9feb3d57cb52b62c67af835b7dc0c98e4d83917fd9916940892e0fdf599038a3e0dd8f4ff36fe7e09489b159210dcc830f9df1b96b3b135edafed8f05335
7
+ data.tar.gz: c3052e3ea6c3fa4e3fcfa4cd4986c0374a59157adbd7d1a34b4981e5ef175e4e9f37e87652fd593aa4390325995ef3f77b10369cb13a21b2bc1b204e66d4ef1b
data/.rubocop.yml CHANGED
@@ -5,8 +5,7 @@ AllCops:
5
5
  NewCops: enable
6
6
 
7
7
  Metrics/ClassLength:
8
- Exclude:
9
- - 'test/*.rb'
8
+ Max: 200
10
9
  Layout/EmptyLineAfterGuardClause:
11
10
  Enabled: false
12
11
  Layout/MultilineMethodCallIndentation:
data/.rultor.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  docker:
2
- image: yegor256/rultor-image:1.20.0
2
+ image: yegor256/rultor-image:1.21.0
3
3
  assets:
4
4
  rubygems.yml: yegor256/home#assets/rubygems.yml
5
5
  install: |-
data/Gemfile CHANGED
@@ -23,9 +23,9 @@
23
23
  source 'https://rubygems.org'
24
24
  gemspec
25
25
 
26
- gem 'minitest', '5.18.0', require: false
26
+ gem 'minitest', '5.19.0', require: false
27
27
  gem 'rake', '13.0.6', require: false
28
28
  gem 'rdoc', '6.5.0', require: false
29
- gem 'rubocop', '1.52.0', require: false
30
- gem 'rubocop-rspec', '2.22.0', require: false
29
+ gem 'rubocop', '1.56.0', require: false
30
+ gem 'rubocop-rspec', '2.23.2', require: false
31
31
  gem 'simplecov', '0.22.0', require: false
data/iri.gemspec CHANGED
@@ -27,11 +27,13 @@ Gem::Specification.new do |s|
27
27
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
28
28
  s.required_ruby_version = '>=2.2'
29
29
  s.name = 'iri'
30
- s.version = '0.6.0'
30
+ s.version = '0.7.0'
31
31
  s.license = 'MIT'
32
32
  s.summary = 'Simple Immutable Ruby URI Builder'
33
- s.description = 'Class Iri helps you build a URI and then modify its \
34
- parts via a simple fluent interface.'
33
+ s.description = "Class Iri helps you build a URI and then modify its \
34
+ parts via a simple immutable fluent interface. It always returns a new \
35
+ object instead of changing the existing one. This makes the object \
36
+ safer and much easier for reuse."
35
37
  s.authors = ['Yegor Bugayenko']
36
38
  s.email = 'yegor256@gmail.com'
37
39
  s.homepage = 'https://github.com/yegor256/iri'
data/lib/iri.rb CHANGED
@@ -65,6 +65,11 @@ class Iri
65
65
  @uri.to_s
66
66
  end
67
67
 
68
+ # Inspect it, like a string can be inspected.
69
+ def inspect
70
+ @uri.to_s.inspect
71
+ end
72
+
68
73
  # Convert it to an object of class +URI+.
69
74
  def to_uri
70
75
  the_uri.clone
data/test/test_iri.rb CHANGED
@@ -60,6 +60,13 @@ class IriTest < Minitest::Test
60
60
  )
61
61
  end
62
62
 
63
+ def test_inspects_iri
64
+ assert_equal(
65
+ '"https://openai.com"',
66
+ Iri.new('https://openai.com').inspect
67
+ )
68
+ end
69
+
63
70
  def test_replaces_scheme
64
71
  assert_equal(
65
72
  'https://google.com/',
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-04 00:00:00.000000000 Z
11
+ date: 2023-08-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: |-
14
- Class Iri helps you build a URI and then modify its \
15
- parts via a simple fluent interface.
13
+ description: Class Iri helps you build a URI and then modify its parts via a simple
14
+ immutable fluent interface. It always returns a new object instead of changing the
15
+ existing one. This makes the object safer and much easier for reuse.
16
16
  email: yegor256@gmail.com
17
17
  executables: []
18
18
  extensions: []